[TIMOB-12373] CLI: Authentication library errors if ~/.titanium folder does not exist
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-01-22T18:33:47.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02 |
Components | CLI |
Labels | qe-port |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-01-22T18:31:25.000+0000 |
Updated | 2013-01-22T22:54:11.000+0000 |
Description
The following error occurs when ~/.titanium doesn't already exist. Simply create the directory if it doesn't exist.
[ERROR] Error: ENOENT, no such file or directory '/Users/USERNAME/.titanium/auth_session.json'
at Object.fs.openSync [as openSync] (fs.js:338:18)
at Object.fs.writeFileSync [as writeFileSync] (fs.js:756:15)
at createLoggedOutSessionFile (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/auth.js:255:5)
at Object.exports.status [as status] (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/auth.js:200:12)
at processConf (/usr/local/lib/node_modules/titanium/lib/cli.js:802:25)
at loadCommand (/usr/local/lib/node_modules/titanium/lib/cli.js:887:3)
at /usr/local/lib/node_modules/titanium/lib/cli.js:1003:10
at async.parallel.results (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:454:21)
at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:185:13)
at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13)
---------------------------------------------
at Object.exports.execFile [as execFile] (child_process.js:590:9)
at exports.exec (child_process.js:477:18)
at detectLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:53:4)
at setLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:60:3)
at /usr/local/lib/node_modules/titanium/lib/titanium.js:83:3
at Object.<anonymous> (/usr/local/lib/node_modules/titanium/lib/titanium.js:85:3)
at Module.Module._compile [as _compile] (module.js:449:26)
at Object.Module._extensions..js [as .js] (module.js:467:10)
Closing. Tested and verified fix with: Mac OSX 10.8.2 Mountain Lion CLI 3.0.23 Steps: Deleted folder ~/.titanium Ran ti -v Actual result: ~/.titanium was created, no Error