{ "id": "133401", "key": "TIMOB-17509", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-26T21:43:18.000+0000", "created": "2014-07-18T21:55:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2017-03-16T22:49:04.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h6.Issue description \r\nAfter upgrading Appcelerator Studio the Android SDK isn't properly detected. This prevents developers to deploy applications. Forgive me if this is a dupe of another ticket. \r\n\r\nh6.Steps to reproduce\r\n# On Appcelerator Dashboard tab hit \"Android SDK\" to complete setup process (AppcStudio_InstallingAndroid_1.jpg). \r\n# Use Platform Configurations dialog to install required SDKs (2.3.3 is checked. AppcStudio_InstallingAndroid_2.jpg). \r\n# Upon completion everything seems Ok. AppcStudio_InstallingAndroid_3.jpg\r\n# A popup over windows remains static saying API 10 must be installed and suddenly Android isn't fully loaded (AppcStudio_InstallingAndroid_4.jpg).", "attachment": [ { "id": "49887", "filename": "AppcStudio_InstallingAndroid_1.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T21:55:45.000+0000", "size": 245282, "mimeType": "image/jpeg" }, { "id": "49888", "filename": "AppcStudio_InstallingAndroid_2.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T21:55:45.000+0000", "size": 195877, "mimeType": "image/jpeg" }, { "id": "49889", "filename": "AppcStudio_InstallingAndroid_3.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T21:55:45.000+0000", "size": 172762, "mimeType": "image/jpeg" }, { "id": "49890", "filename": "AppcStudio_InstallingAndroid_4.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T21:55:45.000+0000", "size": 189199, "mimeType": "image/jpeg" }, { "id": "49891", "filename": "AppcStudioData.txt", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T21:55:45.000+0000", "size": 281281, "mimeType": "text/plain" }, { "id": "49892", "filename": "MacOSX_1.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T21:59:03.000+0000", "size": 93147, "mimeType": "image/png" }, { "id": "49893", "filename": "MacOSX_2.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T21:59:03.000+0000", "size": 125295, "mimeType": "image/png" } ], "flagged": false, "summary": "Android SDK not loading due to EPERM failure", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio Version: 3.3.0.201407111535\r\nJRE Version: 1.7.0_40\r\nHost OS: Windows 7\r\nOS Version: 6.1\r\nOS Arch: x86", "closedSprints": [ { "id": 377, "state": "closed", "name": "2015 Sprint 08 Tooling", "startDate": "2015-04-10T16:22:00.000Z", "endDate": "2015-04-25T00:00:00.000Z", "completeDate": "2015-04-30T19:39:26.044Z", "originBoardId": 121 }, { "id": 478, "state": "closed", "name": "2015 Sprint 17 Tooling", "startDate": "2015-08-17T16:09:49.717Z", "endDate": "2015-08-29T01:09:00.000Z", "completeDate": "2015-09-10T19:57:06.855Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "314922", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A few questions:\r\n\r\n1) What is the output of \"ti info\"?\r\n2) There are a number of suspicious networking errors. I don't believe the Android SDK downloaded fully.\r\n\r\n{code}\r\nnpm ERR! SyntaxError: Unexpected token <\r\nnpm ERR! \r\nnpm ERR! \r\nnpm ERR! \r\nnpm ERR! \r\nnpm ERR! \r\nnpm ERR! 200 OK\r\nnpm ERR! \r\nnpm ERR! \r\nnpm ERR!

Error 200 OK

\r\nnpm ERR!

OK

\r\nnpm ERR!

Guru Meditation:

\r\nnpm ERR!

XID: 724797158

\r\nnpm ERR!
\r\nnpm ERR!

Varnish cache server

\r\nnpm ERR! \r\nnpm ERR! \r\nnpm ERR! \r\nnpm ERR! at Object.parse (native)\r\nnpm ERR! at RegClient. (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\npm-registry-client\\lib\\request.js:241:23)\r\nnpm ERR! at Request.self.callback (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\request\\request.js:123:22)\r\nnpm ERR! at Request.EventEmitter.emit (events.js:98:17)\r\nnpm ERR! at Request. (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\request\\request.js:893:14)\r\nnpm ERR! at Request.EventEmitter.emit (events.js:117:20)\r\nnpm ERR! at IncomingMessage. (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\request\\request.js:844:12)\r\nnpm ERR! at IncomingMessage.EventEmitter.emit (events.js:117:20)\r\nnpm ERR! at _stream_readable.js:920:16\r\nnpm ERR! at process._tickCallback (node.js:415:13)\r\nnpm ERR! If you need help, you may report this *entire* log,\r\nnpm ERR! including the npm and node versions, at:\r\nnpm ERR! \r\n{code}\r\n\r\nAre they running as Admin?\r\n{code}\r\nnpm ERR! System Windows_NT 6.1.7600\r\nnpm ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"-g\" \"install\" \"titanium\" \"--color\" \"false\"\r\nnpm ERR! cwd C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Appcelerator\r\nnpm ERR! node -v v0.10.25\r\nnpm ERR! npm -v 1.3.24\r\nnpm ERR! path C:\\Users\\josedejesus\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\moment\\lang\\el.js\r\nnpm ERR! fstream_path C:\\Users\\josedejesus\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\moment\\lang\\el.js\r\nnpm ERR! fstream_type File\r\nnpm ERR! fstream_class FileWriter\r\nnpm ERR! code ENOENT\r\nnpm ERR! errno 34\r\nnpm ERR! fstream_stack C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\fstream\\lib\\writer.js:284:26\r\nnpm ERR! fstream_stack Object.oncomplete (fs.js:107:15)\r\nnpm ERR! Error: EPERM, open 'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Appcelerator\\npm-debug.log'\r\nnpm ERR! { [Error: EPERM, open 'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Appcelerator\\npm-debug.log']\r\nnpm ERR! errno: 50,\r\nnpm ERR! code: 'EPERM',\r\nnpm ERR! path: 'C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Appcelerator\\\\npm-debug.log' }\r\nnpm ERR! \r\nnpm ERR! Please try running this command again as root/Administrator.\r\n{code}\r\n\r\n{code}\r\n!ENTRY org.eclipse.equinox.p2.transport.ecf 2 0 2014-07-08 13:24:34.652\r\n!MESSAGE Connection to http://download.appcelerator.com/appcelerator/appc-studio/standalone/update/stable/p2.index failed on download.appcelerator.com. Retry attempt 0 started\r\n!STACK 0\r\njava.net.UnknownHostException: download.appcelerator.com\r\n{code}\r\n\r\n{code}\r\n!ENTRY com.aptana.core.epl 2 0 2014-07-15 21:58:12.458\r\n!MESSAGE Connection to https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-16_r01.zip failed on dl-ssl.google.com. Retry attempt 0 started\r\n!STACK 0\r\njava.net.UnknownHostException: dl-ssl.google.com\r\n{code}", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T23:49:06.000+0000", "updated": "2014-07-18T23:49:06.000+0000" }, { "id": "314952", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "1) ti info output: https://gist.github.com/egomez99/ad40831dff7a7491b2dc\r\n2) It turns out the Android installation was incomplete due Firewall restrictions. Logs from SDK manager revealed the following (despite the fact Studio shows on the configuration details \"The Android SDK is installed correctly!\"):\r\n{code}\r\nFailed to fetch URL https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml/addon.xml, reason: IO Unknown Host dl-ssl.google.com\r\n{code}\r\n3) About their account it does seem to have administrative priviledges (since is listed as Administrator user). Should they just give themselves permissions to that particular folder?\r\n\r\nIn regards to the issue reported on Mac OSX, I will attach logs as soon as I have them. Thanks.\r\n", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-20T01:50:08.000+0000", "updated": "2014-07-20T01:50:08.000+0000" }, { "id": "315039", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~egomez] #1 is this issue, supposedly solved in 3.2.3: TIMOB-16074. [~cbarber] they appear to be continuing to get it in 3.3.0.GA. Thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-21T16:28:36.000+0000", "updated": "2014-07-21T16:28:36.000+0000" }, { "id": "315322", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~egomez] Regarding the EPERM issue from the gist, this most certainly is a permission issue. They will need to go into the security settings for the \"Archivos comunes\" folder and fix the permissions.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-07-22T19:51:45.000+0000", "updated": "2014-07-22T19:51:45.000+0000" }, { "id": "315333", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] I would still like us to fail more gracefully in this circumstance.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-22T20:31:08.000+0000", "updated": "2014-07-22T20:31:08.000+0000" }, { "id": "315343", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~ingo] There are currently 81 places across the CLI, SDK, and node-appc where we read a directory and that does NOT include 3rd party dependencies. That's a lot of places to add try/catches to.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-07-22T21:08:37.000+0000", "updated": "2014-07-22T21:08:37.000+0000" }, { "id": "315346", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sure, but I can't imagine that all of them are as likely to have permission issues. There must be some likely culprits (i.e. ones that have purposely failed before and have reports) that we could start with.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-22T21:12:12.000+0000", "updated": "2014-07-22T21:12:12.000+0000" }, { "id": "315350", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~ingo] Sounds like we need a new ticket.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-07-22T21:15:56.000+0000", "updated": "2014-07-22T21:15:56.000+0000" }, { "id": "319087", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~pinnamuri] yes, please move.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-18T15:42:11.000+0000", "updated": "2014-08-18T15:42:11.000+0000" }, { "id": "357320", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6963\r\n\r\nOn Windows, to test:\r\n1. Set permissions on {{C:\\Program Files\\Common Files}} to Administrator only\r\n2. Run {{ti info}}\r\n3. The process shouldn't crash with {{Error: EPERM}}", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-07-08T22:14:45.000+0000", "updated": "2015-07-08T22:19:34.000+0000" }, { "id": "361312", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged to master.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-26T21:43:18.000+0000", "updated": "2015-08-26T21:43:18.000+0000" }, { "id": "413425", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:49:04.000+0000", "updated": "2017-03-16T22:49:04.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }