Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12373] CLI: Authentication library errors if ~/.titanium folder does not exist

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-01-22T18:33:47.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02
ComponentsCLI
Labelsqe-port
ReporterChris Barber
AssigneeChris Barber
Created2013-01-22T18:31:25.000+0000
Updated2013-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)

Comments

  1. Olga Romero 2013-01-22

    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

JSON Source