[TIMOB-17509] Android SDK not loading due to EPERM failure
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-08-26T21:43:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.0.0 |
Components | Android, CLI |
Labels | n/a |
Reporter | Eduardo Gomez |
Assignee | Feon Sua Xin Miao |
Created | 2014-07-18T21:55:45.000+0000 |
Updated | 2017-03-16T22:49:04.000+0000 |
Description
Issue description
After 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.Steps to reproduce
On Appcelerator Dashboard tab hit "Android SDK" to complete setup process (AppcStudio_InstallingAndroid_1.jpg).
Use Platform Configurations dialog to install required SDKs (2.3.3 is checked. AppcStudio_InstallingAndroid_2.jpg).
Upon completion everything seems Ok. AppcStudio_InstallingAndroid_3.jpg
A popup over windows remains static saying API 10 must be installed and suddenly Android isn't fully loaded (AppcStudio_InstallingAndroid_4.jpg).
Attachments
File | Date | Size |
---|---|---|
AppcStudio_InstallingAndroid_1.jpg | 2014-07-18T21:55:45.000+0000 | 245282 |
AppcStudio_InstallingAndroid_2.jpg | 2014-07-18T21:55:45.000+0000 | 195877 |
AppcStudio_InstallingAndroid_3.jpg | 2014-07-18T21:55:45.000+0000 | 172762 |
AppcStudio_InstallingAndroid_4.jpg | 2014-07-18T21:55:45.000+0000 | 189199 |
AppcStudioData.txt | 2014-07-18T21:55:45.000+0000 | 281281 |
MacOSX_1.png | 2014-07-18T21:59:03.000+0000 | 93147 |
MacOSX_2.png | 2014-07-18T21:59:03.000+0000 | 125295 |
A few questions: 1) What is the output of "ti info"? 2) There are a number of suspicious networking errors. I don't believe the Android SDK downloaded fully.
Are they running as Admin?
1) ti info output: https://gist.github.com/egomez99/ad40831dff7a7491b2dc 2) 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!"):
3) 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? In regards to the issue reported on Mac OSX, I will attach logs as soon as I have them. Thanks.
[~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?
[~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.
[~cbarber] I would still like us to fail more gracefully in this circumstance.
[~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.
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.
[~ingo] Sounds like we need a new ticket.
[~pinnamuri] yes, please move.
PR: https://github.com/appcelerator/titanium_mobile/pull/6963 On Windows, to test: 1. Set permissions on
C:\Program Files\Common Files
to Administrator only 2. Runti info
3. The process shouldn't crash withError: EPERM
PR merged to master.
Closing ticket as fixed.