{ "id": "170464", "key": "DAEMON-190", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [ { "id": "18407", "description": "", "name": "Appc Daemon 1.0.0", "archived": false, "released": true, "releaseDate": "2017-12-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-27T18:21:53.000+0000", "created": "2017-11-27T13:41:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18407", "description": "", "name": "Appc Daemon 1.0.0", "archived": false, "released": true, "releaseDate": "2017-12-05" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-11-27T18:21:53.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15049", "name": "appcd", "description": "Bootstrap, appcd CLI commands (start, stop, restart, exec, logcat, config, status)" }, { "id": "15612", "name": "appcd-nodejs" } ], "description": "h5.Description\r\n\r\n*This error should have bubbled through to the cli I think*\r\n\r\nStarting the daemon when the node binaries are not downloaded on Windows doesn't work first time, logs below. Looking at appcd-nodejs it only handles EXTBUSY which I think is unixy, windows is EBUSY\r\n\r\n{code}\r\nC:\\Users\\Archibald Thornburnt>appc appcd start --debug\r\nAppcelerator Command-Line Interface, version 7.0.0-master.44\r\nCopyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.\r\n\r\n2017-11-27T13:32:58.805Z cli-kit:context Adding command: config\r\n2017-11-27T13:32:58.992Z cli-kit:context Adding command: dump\r\n2017-11-27T13:32:58.992Z cli-kit:context Adding command: exec\r\n2017-11-27T13:32:58.992Z cli-kit:context Adding command: logcat\r\n2017-11-27T13:32:58.992Z cli-kit:context Adding command: restart\r\n2017-11-27T13:32:59.008Z cli-kit:context Adding command: start\r\n2017-11-27T13:32:59.008Z cli-kit:context Adding command: status\r\n2017-11-27T13:32:59.008Z cli-kit:context Adding command: stop\r\n2017-11-27T13:32:59.008Z cli-kit:context Adding command: help\r\n2017-11-27T13:32:59.008Z cli-kit:context Context Lookup:\r\n2017-11-27T13:32:59.008Z cli-kit:context Commands:\r\n2017-11-27T13:32:59.008Z cli-kit:context config => config\r\n2017-11-27T13:32:59.008Z cli-kit:context dump => dump\r\n2017-11-27T13:32:59.008Z cli-kit:context exec => exec\r\n2017-11-27T13:32:59.008Z cli-kit:context logcat => logcat\r\n2017-11-27T13:32:59.008Z cli-kit:context restart => restart\r\n2017-11-27T13:32:59.008Z cli-kit:context start => start\r\n2017-11-27T13:32:59.008Z cli-kit:context status => status\r\n2017-11-27T13:32:59.008Z cli-kit:context stop => stop\r\n2017-11-27T13:32:59.008Z cli-kit:context help => help\r\n2017-11-27T13:32:59.008Z cli-kit:context Options:\r\n2017-11-27T13:32:59.008Z cli-kit:context --config => config\r\n2017-11-27T13:32:59.008Z cli-kit:context --config-file => config-file\r\n2017-11-27T13:32:59.008Z cli-kit:context --colors => colors\r\n2017-11-27T13:32:59.008Z cli-kit:context --help => help\r\n2017-11-27T13:32:59.008Z cli-kit:context --version => version\r\n2017-11-27T13:32:59.008Z cli-kit:context -h => help\r\n2017-11-27T13:32:59.008Z cli-kit:context -v => version\r\n2017-11-27T13:32:59.008Z cli-kit:context Parsing: [ 'start', '--debug' ]\r\n2017-11-27T13:32:59.008Z cli-kit:context Parsing argument: start\r\n2017-11-27T13:32:59.008Z cli-kit:context Found command: start\r\n2017-11-27T13:32:59.008Z cli-kit:context Parsing argument: --debug\r\n2017-11-27T13:32:59.008Z cli-kit:context Descending into next context's parser\r\n2017-11-27T13:32:59.023Z cli-kit:context Context Lookup:\r\n2017-11-27T13:32:59.023Z cli-kit:context Options:\r\n2017-11-27T13:32:59.023Z cli-kit:context --debug => debug\r\n2017-11-27T13:32:59.023Z cli-kit:context Parsing: [ { type: 'command',\r\n2017-11-27T13:32:59.023Z cli-kit:context command:\r\n2017-11-27T13:32:59.023Z cli-kit:context Command {\r\n2017-11-27T13:32:59.023Z cli-kit:context _events: Map {},\r\n2017-11-27T13:32:59.023Z cli-kit:context _links: [Array],\r\n2017-11-27T13:32:59.023Z cli-kit:context desc: 'starts the Appc Daemon if it\\'s not already running',\r\n2017-11-27T13:32:59.023Z cli-kit:context options: [Array],\r\n2017-11-27T13:32:59.023Z cli-kit:context action: [AsyncFunction: action],\r\n2017-11-27T13:32:59.023Z cli-kit:context parent: [Object],\r\n2017-11-27T13:32:59.023Z cli-kit:context title: 'start',\r\n2017-11-27T13:32:59.023Z cli-kit:context args: [],\r\n2017-11-27T13:32:59.023Z cli-kit:context commands: {},\r\n2017-11-27T13:32:59.023Z cli-kit:context groups: [Object],\r\n2017-11-27T13:32:59.023Z cli-kit:context lookup: [Object],\r\n2017-11-27T13:32:59.023Z cli-kit:context camelCase: true,\r\n2017-11-27T13:32:59.023Z cli-kit:context name: 'start',\r\n2017-11-27T13:32:59.023Z cli-kit:context aliases: {} } },\r\n2017-11-27T13:32:59.023Z cli-kit:context { type: 'unknown option', orig: '--debug' } ]\r\n2017-11-27T13:32:59.023Z cli-kit:context Parsing argument: --debug\r\n2017-11-27T13:32:59.023Z cli-kit:context Found option: debug\r\n2017-11-27T13:32:59.023Z cli-kit:context Negated? false\r\n2017-11-27T13:32:59.023Z cli-kit:context Finalizing parsing\r\n2017-11-27T13:32:59.023Z cli-kit:context Processing default options and environment variables for 2 contexts\r\n2017-11-27T13:32:59.023Z cli-kit:context Filling argv and _\r\n2017-11-27T13:32:59.023Z cli-kit:context Mixing in environment variable values\r\n2017-11-27T13:32:59.039Z appcd:config Loading JavaScript config file: C:\\Users\\Archibald Thornburnt\\.appcelerator\\install\\7.0.0-master.44\\package\\node_modules\\appcd-core\\conf\\default.js\r\n2017-11-27T13:32:59.117Z appcd:config Parsing AST...\r\n2017-11-27T13:32:59.148Z appcd:config Loading JSON config file: C:\\Users\\Archibald Thornburnt\\.appcelerator\\install\\7.0.0-master.44\\package\\node_modules\\appcd-core\\conf\\preprod.json\r\n2017-11-27T13:32:59.148Z appcd:common {\r\n2017-11-27T13:32:59.148Z appcd:common \"core\": {\r\n2017-11-27T13:32:59.148Z appcd:common \"enforceNodeVersion\": true,\r\n2017-11-27T13:32:59.148Z appcd:common \"v8\": {\r\n2017-11-27T13:32:59.148Z appcd:common \"memory\": \"auto\"\r\n2017-11-27T13:32:59.148Z appcd:common }\r\n2017-11-27T13:32:59.148Z appcd:common },\r\n2017-11-27T13:32:59.148Z appcd:common \"home\": \"~/.appcelerator/appcd\",\r\n2017-11-27T13:32:59.148Z appcd:common \"network\": {\r\n2017-11-27T13:32:59.148Z appcd:common \"agentOptions\": null,\r\n2017-11-27T13:32:59.148Z appcd:common \"caFile\": null,\r\n2017-11-27T13:32:59.148Z appcd:common \"certFile\": null,\r\n2017-11-27T13:32:59.148Z appcd:common \"httpProxy\": null,\r\n2017-11-27T13:32:59.148Z appcd:common \"httpsProxy\": null,\r\n2017-11-27T13:32:59.148Z appcd:common \"keyFile\": null,\r\n2017-11-27T13:32:59.148Z appcd:common \"passphrase\": null,\r\n2017-11-27T13:32:59.148Z appcd:common \"strictSSL\": true\r\n2017-11-27T13:32:59.148Z appcd:common },\r\n2017-11-27T13:32:59.148Z appcd:common \"plugins\": {\r\n2017-11-27T13:32:59.148Z appcd:common \"autoReload\": true,\r\n2017-11-27T13:32:59.148Z appcd:common \"defaultInactivityTimeout\": 3600000\r\n2017-11-27T13:32:59.148Z appcd:common },\r\n2017-11-27T13:32:59.148Z appcd:common \"server\": {\r\n2017-11-27T13:32:59.148Z appcd:common \"agentPollInterval\": 1000,\r\n2017-11-27T13:32:59.148Z appcd:common \"daemonize\": true,\r\n2017-11-27T13:32:59.148Z appcd:common \"group\": null,\r\n2017-11-27T13:32:59.148Z appcd:common \"hostname\": \"127.0.0.1\",\r\n2017-11-27T13:32:59.148Z appcd:common \"pidFile\": \"~/.appcelerator/appcd/appcd.pid\",\r\n2017-11-27T13:32:59.148Z appcd:common \"port\": 1732,\r\n2017-11-27T13:32:59.148Z appcd:common \"user\": null\r\n2017-11-27T13:32:59.148Z appcd:common },\r\n2017-11-27T13:32:59.148Z appcd:common \"telemetry\": {\r\n2017-11-27T13:32:59.148Z appcd:common \"enabled\": true,\r\n2017-11-27T13:32:59.148Z appcd:common \"eventsDir\": \"~/.appcelerator/appcd/telemetry\",\r\n2017-11-27T13:32:59.148Z appcd:common \"sendBatchSize\": 10,\r\n2017-11-27T13:32:59.148Z appcd:common \"sendInterval\": 60000,\r\n2017-11-27T13:32:59.148Z appcd:common \"sendTimeout\": 60000,\r\n2017-11-27T13:32:59.148Z appcd:common \"url\": \"https://api.appcelerator.com/p/v1/app-track\"\r\n2017-11-27T13:32:59.148Z appcd:common },\r\n2017-11-27T13:32:59.148Z appcd:common \"appcd\": {\r\n2017-11-27T13:32:59.148Z appcd:common \"guid\": \"14c84daf-b01e-486c-96d3-b8f66da44481\"\r\n2017-11-27T13:32:59.148Z appcd:common },\r\n2017-11-27T13:32:59.148Z appcd:common \"environment\": {\r\n2017-11-27T13:32:59.148Z appcd:common \"name\": \"preprod\",\r\n2017-11-27T13:32:59.148Z appcd:common \"title\": \"Pre-production\"\r\n2017-11-27T13:32:59.148Z appcd:common }\r\n2017-11-27T13:32:59.148Z appcd:common }\r\n\r\n2017-11-27T13:32:59.195Z appcd:nodejs Checking C:\\Users\\Archibald Thornburnt\\.appcelerator\\appcd\\node\\v8.9.1\\win32\\x64\\node.exe\r\n2017-11-27T13:32:59.227Z appcd:nodejs Downloading https://nodejs.org/dist/v8.9.1/node-v8.9.1-win-x64.zip => C:\\Users\\ARCHIB~1\\AppData\\Local\\Temp\\node-v8.9.1-win-x64.zip\r\n2017-11-27T13:32:59.227Z appcd:dispatcher Searching for route handler: /appcd/config/network\r\n2017-11-27T13:32:59.351Z appcd:dispatcher Route not found: /appcd/config/network\r\n2017-11-27T13:33:00.053Z appcd:request GET https://nodejs.org/dist/v8.9.1/node-v8.9.1-win-x64.zip 200 (16.11 MB)\r\n2017-11-27T13:33:01.819Z appcd:nodejs Downloaded 16,892,891 bytes\r\n2017-11-27T13:33:01.819Z appcd:nodejs Creating C:\\Users\\Archibald Thornburnt\\.appcelerator\\appcd\\node\\v8.9.1\\win32\\x64\r\n2017-11-27T13:33:01.819Z appcd:nodejs Extracting zip file: C:\\Users\\ARCHIB~1\\AppData\\Local\\Temp\\node-v8.9.1-win-x64.zip\r\n2017-11-27T13:33:01.850Z appcd:nodejs Found node executable (23,089,816 bytes)\r\n2017-11-27T13:33:02.116Z appcd:nodejs Spawning: C:\\Users\\Archibald Thornburnt\\.appcelerator\\appcd\\node\\v8.9.1\\win32\\x64\\node.exe --max_old_space_size=3000 --inspect \"C:\\Users\\Archibald Thornburnt\\.appcelerator\\install\\7.0.0-master.44\\package\\node_modules\\appcd-core\\dist\\main.js\" # {\"stdio\":[\"inherit\",\"inherit\",\"inherit\",\"ipc\"]}\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Remove ~/.appcelerator/appcd/node\r\n# {{set SNOOPLOGG=*}}\r\n# {{appcd start --debug}}\r\n\r\nh5.Actual\r\n\r\nDaemon doesnt start\r\n\r\nh5.Expected\r\n\r\nDaemon should start", "attachment": [], "flagged": false, "summary": "Windows: Daemon doesn't start first time when downloading node binary", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 976, "state": "closed", "name": "2017 Sprint 24 Tooling", "startDate": "2017-11-19T19:00:51.738Z", "endDate": "2017-12-03T19:00:00.000Z", "completeDate": "2017-12-04T23:20:34.438Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "431299", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~cbarber] is appcd-nodejs correct in returning the error to the spawnNode call [here|https://github.com/appcelerator/appc-daemon/blob/master/packages/appcd-nodejs/src/nodejs.js#L446] rather than throwing? ", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-27T13:46:01.000+0000", "updated": "2017-11-27T13:46:01.000+0000" }, { "id": "431300", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/appc-daemon/pull/195", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-27T13:51:30.000+0000", "updated": "2017-11-27T13:51:30.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }