Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-1261

Windows: Unable to create arrow app.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      Issue Description:
      When I try to create an arrow app, I get the following error:
      ERROR | You are not logged in. Please login again.
      I've tried the login action using appc logout -D followed by appc login command but still I cannot create an arrow app.

      Reproduction Step:
      1. Type this command on your command line and it'll show the error:
      appc new -t arrow

      Here's the error log:

      V:\>appc new -t arrow -l trace
      Appcelerator Command-Line Interface, version 6.2.3
      Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.
       
      2017-08-29T08:21:58.446Z | TRACE | set environment to {"registry":"https://software.appcelerator.com","baseurl":"https://platform.appcelerator.com"}
      2017-08-29T08:21:58.462Z | TRACE | checking credentials for existing session
      2017-08-29T08:21:58.555Z | TRACE | Attempting to load session info from config file
      2017-08-29T08:21:58.571Z | TRACE | check if session is invalidated
      2017-08-29T08:21:59.368Z | TRACE | refresh session expiry to: 1504599719802
      2017-08-29T08:21:59.540Z | TRACE | session expiry 1504599719802 false
      2017-08-29T08:21:59.540Z | TRACE | Arrow Cloud config file: V:\.acs
      2017-08-29T08:21:59.649Z | TRACE | found Arrow Cloud login { mid: 'dd4e6d334af9372165755efb8facafc51122a0a4',
      publishPort: 443,
      publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
      username: 'alexandre.barnault2@soprasteria.com',
      cookie: [ 'connect.sid=s%3AYYFn83Ztetv7owEGXr9F7woc.DrQT%2BtFIuSTnJ%2BtmYojls98z03sRtYVq7pF10eL4u9U; Path=/; Expires=Tue, 12 Sep 2017 07:27:16 GMT; HttpOnly' ],
      defaultEP:
      { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
      publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
      2017-08-29T08:21:59.649Z | TRACE | Arrow Cloud cookie expiry [ 1505201236000 ]
      2017-08-29T08:21:59.649Z | TRACE | session already loaded in opts.session
      2017-08-29T08:21:59.649Z | TRACE | getCredentials() session:
      {
      "ipaddress": "10.20.10.108",
      "username": "alexandre.barnault2@soprasteria.com",
      "password": "<OMITTED>",
      "session": "<OMITTED>",
      "nonce": "<OMITTED>",
      "environment": {
      "name": "production",
      "isProduction": true,
      "acsBaseUrl": "https://api.cloud.appcelerator.com",
      "acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com",
      "nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com"
      },
      "token": "<OMITTED>",
      "fingerprint": "dd4e6d334af9372165755efb8facafc51122a0a4",
      "fingerprint_description": "Windows Machine ID: 5a350860-9550-40eb-aae1-69689e1be995",
      "org_id": 569661269732370,
      "expiry": 1504599719802
      }
      2017-08-29T08:21:59.680Z | TRACE | loading plugins for command "new"
      2017-08-29T08:21:59.774Z | TRACE | new search paths:
      [
      "d:\\Profiles\\albarnault\\.appcelerator\\install\\6.2.3\\package",
      "d:\\Profiles\\albarnault\\.appcelerator\\install\\6.2.3\\package\\node_modules",
      "V:\\node_modules",
      "d:\\Profiles\\albarnault\\.appcelerator\\.npm\\lib\\node_modules"
      ]
      2017-08-29T08:21:59.774Z | DEBUG | [PLUGIN-LOAD] 0ms d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\appc.js
      2017-08-29T08:22:00.009Z | DEBUG | [PLUGIN-LOAD] 235ms d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\appc-cli-titanium\appc.js
      2017-08-29T08:22:00.024Z | DEBUG | new plugin: d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\appc-cli-titanium
      2017-08-29T08:22:00.024Z | DEBUG | [PLUGIN-LOAD] 0ms d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\appc.js
      2017-08-29T08:22:00.102Z | DEBUG | new plugin: d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow
      2017-08-29T08:22:00.102Z | TRACE | loading plugin "titanium" for command "new" CLI options via function
      2017-08-29T08:22:00.102Z | TRACE | loading plugin "arrow" for command "new" CLI options via array
      2017-08-29T08:22:00.102Z | TRACE | Duplicate option "services" for command "new", removing...
      2017-08-29T08:22:00.102Z | TRACE | Duplicate option "id" for command "new", removing...
      2017-08-29T08:22:00.102Z | TRACE | Duplicate option "name" for command "new", removing...
      2017-08-29T08:22:00.118Z | TRACE | executing command "new" with the following plugins:
      ["titanium","arrow"]
      2017-08-29T08:22:00.165Z | TRACE | session already loaded in opts.session
      2017-08-29T08:22:00.165Z | TRACE | "C:\Program Files\nodejs\node.exe" "d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\titanium\bin\titanium" sdk -o json
      2017-08-29T08:22:00.634Z | TRACE | checking for titanium, result:
      { activeSDK: '6.1.2.GA',
      defaultInstallLocation: 'C:\\ProgramData\\Titanium',
      installLocations:
      [ 'C:\\ProgramData\\Titanium',
      'd:\\Profiles\\albarnault\\AppData\\Roaming\\Titanium',
      'C:\\ProgramData\\Application Data\\Titanium' ],
      installed:
      { '6.1.2.GA': 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.1.2.GA',
      '6.1.1.GA': 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.1.1.GA' },
      sdks:
      { '6.1.2.GA':
      { name: '6.1.2.GA',
      manifest: [Object],
      path: 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.1.2.GA' },
      '6.1.1.GA':
      { name: '6.1.1.GA',
      manifest: [Object],
      path: 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.1.1.GA' } } }
      ? What's the project name? arrowproject
      2017-08-29T08:22:11.151Z | DEBUG | Handle ACS registration...
      using filter { versions: 
      { http_parser: '2.7.0',
      node: '6.10.3',
      v8: '5.1.281.101',
      uv: '1.9.1',
      zlib: '1.2.11',
      ares: '1.10.1-DEV',
      icu: '58.2',
      modules: '48',
      openssl: '1.0.2k' },
      pkg: 
      { _args: [ [Object] ],
      _from: 'arrow@>=2.0.2 <2.1.0',
      _id: 'arrow@2.0.2',
      _inCache: true,
      _location: '/arrow',
      _phantomChildren: 
      { 'appc-platform-sdk': '2.3.0',
      async: '1.5.2',
      chalk: '1.1.3',
      commander: '2.9.0',
      debug: '2.6.8',
      ejs: '2.5.6',
      fsevents: '1.1.2',
      ip: '1.1.5',
      lodash: '3.10.1',
      mkdirp: '0.5.1',
      request: '2.81.0',
      semver: '5.3.0' },
      _requested: 
      { raw: 'arrow@https://registry.npmjs.org/arrow/-/arrow-2.0.2.tgz',
      scope: null,
      escapedName: 'arrow',
      name: 'arrow',
      rawSpec: 'https://registry.npmjs.org/arrow/-/arrow-2.0.2.tgz',
      spec: 'https://registry.npmjs.org/arrow/-/arrow-2.0.2.tgz',
      type: 'remote' },
      _requiredBy: [ '/' ],
      _resolved: 'https://registry.npmjs.org/arrow/-/arrow-2.0.2.tgz',
      _shasum: '128e6193cae51495bfd36a91f827d66ba2721ec9',
      _shrinkwrap: '[Circular]',
      _spec: 'arrow@https://registry.npmjs.org/arrow/-/arrow-2.0.2.tgz',
      _where: '/private/var/folders/z9/f1ccch7j0vn8p5qrlw3rkty40000gq/T/appc-publish1501799305441/package',
      author: { name: 'Jeff Haynie' },
      bugs: { url: 'https://jira.appcelerator.org/browse/API' },
      contributors: 
      [ [Object],
      [Object],
      [Object],
      [Object],
      [Object],
      [Object],
      [Object],
      [Object],
      [Object],
      [Object],
      [Object],
      [Object],
      [Object] ],
      dependencies: 
      { acs: '^2.0.4',
      'appc-logger': '^1.2.2',
      'appc-marked': '^0.3.6',
      'appcelerator-saml': '^0.5.0',
      'arrow-admin': '^1.0.5',
      'arrow-admin-api': '^1.0.8',
      'arrow-admin-ui': '^1.0.8',
      'arrow-endpoint': '^1.0.4',
      'arrow-flow': '^1.0.4',
      'arrow-flow-invoke': '^1.0.3',
      'arrow-objectmodel': '~0.2.24',
      'arrow-orm': '^0.6.16',
      async: '^1.5.0',
      'body-parser': '^1.14.2',
      chalk: '^1.1.3',
      'client-sessions': '^0.7.0',
      compression: '^1.6.0',
      'connect-busboy': '0.0.2',
      'cookie-parser': '^1.4.0',
      debug: '^2.2.0',
      'dev-null': '^0.1.1',
      ejs: '^2.3.4',
      express: '^4.13.3',
      'express-ipfilter': '^0.2.3',
      'forever-monitor': '^1.7.0',
      handlebars: '^4.0.5',
      'highlight.js': '^9.0.0',
      isipaddress: '0.0.2',
      'js-yaml': '^3.4.6',
      json2csv: '^3.0.1',
      'ldapauth-fork': '2.5.4',
      lodash: '^3.10.1',
      moment: '^2.10.6',
      mustache: '^2.2.1',
      numeral: '^1.5.3',
      'openapi-doc': '^1.0.7',
      pluralize: '^1.2.1',
      request: '^2.81.0',
      'require-uncached': '^1.0.3',
      'tar.gz': '^1.0.2',
      'uuid-v4': '^0.1.0',
      wrench: '^1.5.8',
      xml: '1.0.0' },
      description: 'API Builder Tools',
      devDependencies: 
      { ajv: '^5.0.0',
      'appc-inquirer': '~0.1.6',
      'appc.composite': 'git+https://github.com/appcelerator/appc.composite.git',
      'arrow-react-engine': '~1.0.7',
      bytes: '^2.2.0',
      commander: '^2.9.0',
      grunt: '^1.0.1',
      'grunt-appc-js': '^1.0.19',
      'grunt-cli': '^1.2.0',
      'grunt-contrib-clean': '^1.0.0',
      'grunt-mocha-istanbul': '^5.0.2',
      istanbul: '^0.4.1',
      mocha: '^3.2.0',
      nsp: '^2.6.3',
      'nsp-formatter-writefile': '^1.1.0',
      'optional-dev-dependency': '^2.0.1',
      'ps-node': '0.0.5',
      retire: '^1.2.12',
      rimraf: '^2.5.4',
      should: '^11.2.0',
      'simple-mock': '^0.7.3',
      'swagger-parser': '^3.4.1',
      'tree-kill': '^1.1.0' },
      homepage: 'https://github.com/appcelerator/arrow#readme',
      keywords: 
      [ 'appc-cli-plugin',
      'arrow',
      'api builder',
      'axway',
      'appcelerator' ],
      license: 'SEE LICENSE IN LICENSE',
      main: 'index.js',
      maintainers: [ [Object] ],
      name: 'arrow',
      optionalDependencies: {},
      optionalDevDependencies: 
      { 'appc-pubsub': '^0.2.1',
      bunyan: '^1.8.5',
      heapdump: '^0.3.7',
      'memwatch-next': '^0.3.0' },
      readme: '# API Builder Tools\n\n> API Builder Tools is an opinionated framework for building cloud based applications.\n\n## Related Projects\n\nThe following are related projects:\n\n- [Admin](https://github.com/appcelerator/arrow-admin/) - Arrow Admin UI\n- [ORM](https://github.com/appcelerator/arrow-orm) - Arrow ORM system\n- [Object Model](https://github.com/appcelerator/arrow-objectmodel) - Arrow Object Model\n- [CLI](https://github.com/appcelerator/appc-cli) - AppC CLI\n- [Documentation](https://github.com/appcelerator/arrow-docgen) - API Documentation Generator\n- [Registry Server](https://github.com/appcelerator/appc-registry-server) - Registry Server\n- [Logger](https://github.com/appcelerator/appc-logger) - AppC Logger\n- [Platform SDK](https://github.com/appcelerator/appc-platform-sdk) - Appcelerator Platform SDK for Node\n\n## Running the Tests\n\nMake sure you log in before running the tests.\n\n## Speeding Up the Tests\n\nWant to run the unit tests even faster? Try this on OS X to mount a 512MB RAM Disk and use it for testing:\n\n diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1048576`\n export ARROW_TMP_ROOT=/Volumes/ramdisk\n\n## Licensing\n\nThis code is closed source and Confidential and Proprietary to Appcelerator, Inc. All Rights Reserved. This code MUST not be modified, copied or otherwise redistributed without express written permission of Appcelerator. This file is licensed as part of the Appcelerator Platform and governed under the terms of the Appcelerator license agreement. Your right to use this software terminates when you terminate your Appcelerator subscription.\n',
      readmeFilename: 'README.md',
      repository: 
      { type: 'git',
      url: 'git+https://github.com/appcelerator/arrow.git' },
      scripts: 
      { build: 'npm test && npm run security',
      lint: 'grunt lint',
      pretest: 'optional-dev-dependency',
      'release:major': 'npm version major && npm run release:publish && git push --follow-tags',
      'release:minor': 'npm version minor && npm run release:publish && git push --follow-tags',
      'release:npm': 'curl -X GET http://registry.ecd.axway.int:8081/artifactory/local-npm/$npm_package_name/-/$npm_package_name-$npm_package_version.tgz 2>/dev/null > $npm_package_name-$npm_package_version.tgz && npm publish --registry https://registry.npmjs.org ./$npm_package_name-$npm_package_version.tgz && rm ./$npm_package_name-$npm_package_version.tgz',
      'release:patch': 'npm version patch && npm run release:publish && git push --follow-tags',
      'release:prerelease': 'npm version prerelease && npm run release:publish && git push --follow-tags',
      'release:publish': 'git add -A && git push && git push --tags && npm publish',
      security: 'retire --exitwith 0 --outputpath scan-retire.txt && nsp check --output writefile --warn-only',
      test: 'grunt' },
      version: '2.0.2' },
      apikey_production: 'T6Un0CJ9OyCJqJdY5FnKjJCnqVaCJx6M',
      apikey_preproduction: 'iB0O8wTpFjU0yTKHvjhn3q32iQNP3lez',
      apikey_development: '0UVtchQnzmkvm069MwC5gaC6wYmUxL5T',
      isTest: false,
      session: 
      { encryptionKey: 'dO83hxXd9wFiT/7JYztgfUBFyzLeWJiersUlYQ70mac=',
      signatureKey: 'G/T7mOCx97m5CETTOObhZSbna+5dffTD3r1G6R44JdGWTLJVvKMc0DAU2ilhEKWMjtCocmKrL/2kPOqmbftbhg==',
      secret: 'GZrw1oBLJgZ07I5ypmDaytIwx8nhAKSm' },
      cookieSecret: '/oD+X3XvUIbkwL/CLVyA7f7mc1wNDeKJ',
      username: '',
      org_id: '',
      author: '',
      type: 'api',
      name: 'arrowproject',
      dir: 'V:\\arrowproject',
      description: '' }
      api arrowproject generated to V:\arrowproject
      2017-08-29T08:22:23.717Z | TRACE | done with plugin { Error: You are not logged in. Please login again.
      at loadConfig (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:23:11)
      at getCredentials (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:128:4)
      at sendHTTPRequest (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:144:2)
      at ArrowCloudApp.getDetails (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:265:2)
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\plugin\new.js:63:9
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:145:21
      at getCredentials (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:131:11)
      at sendHTTPRequest (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:144:2)
      at ArrowCloudApp.create (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:290:2)
      at acsNew (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\plugin\new.js:52:8)
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\plugin\new.js:114:3
      at finishCallback (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\command\new.js:286:4)
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\async\lib\async.js:726:13
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\async\lib\async.js:52:16
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\async\lib\async.js:269:32
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\async\lib\async.js:44:16 errcode: 'loggedout' }
      2017-08-29T08:22:36.103Z | ERROR | Error: You are not logged in. Please login again.
      at loadConfig (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:23:11)
      at getCredentials (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:128:4)
      at sendHTTPRequest (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:144:2)
      at ArrowCloudApp.getDetails (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:265:2)
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\plugin\new.js:63:9
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:145:21
      at getCredentials (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:131:11)
      at sendHTTPRequest (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:144:2)
      at ArrowCloudApp.create (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\cloud\index.js:290:2)
      at acsNew (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\plugin\new.js:52:8)
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\plugin\new.js:114:3
      at finishCallback (d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\arrow\lib\command\new.js:286:4)
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\async\lib\async.js:726:13
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\async\lib\async.js:52:16
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\async\lib\async.js:269:32
      at d:\Profiles\albarnault\.appcelerator\install\6.2.3\package\node_modules\async\lib\async.js:44:16
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jnaher Jebun Naher
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code