{ "id": "126561", "key": "AC-2585", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-11T21:56:48.000+0000", "created": "2014-02-19T06:31:26.000+0000", "labels": [ "3.2.1", "CLI", "Titanium", "longjohn.js" ], "versions": [], "issuelinks": [ { "id": "36595", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "128949", "key": "TIMOB-16842", "fields": { "summary": "CLI: iOS: Add error checking when parsing developer certs from keychain", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-03-08T07:41:39.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": [], "description": "I cannot get any projects to build under Titanium SDK 3.2.1.GA. I updated 3 separate systems and I can't build out a project in TitaniumStudio or the Titanium CLI on any of them. My preferred method for the past year has been the CLI. All attempts are returning the exact same error:\r\n\r\nti build\r\n\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184\r\n throw e;\r\n ^\r\n[object Object]\r\n\r\nI've tried building current projects that work fine in 3.1.3.GA. I've tried creating brand new projects (which works fine) and then building them, same error. I've run through the setup to make sure everything was filled out and get the error when selecting Check Environment or iOS settings.\r\n\r\nI don't ever get more robust errors like I've seen in other tickets, it's always ended with [object Object] and no details about what's throwing the error exactly. If I switch my default SDK back to 3.1.3 and change it in tiapp.xml back to 3.1.3 everything works fine.\r\n\r\nI am running ti CLI on 3 different machines all with exactly the same issue, so I must have something setup wrong on all 3 machines.\r\n\r\nI've dug in a little deeper and if I type 'ti -v' at the command prompt I get back 3.2.1, and if I type 'which ti' I get back /usr/local/bin/ti. Now if I type 'ls -la /usr/local/bin/ti' I get back:\r\n\r\nlrwxr-xr-x 1 root admin 41 Feb 19 01:11 /usr/local/bin/ti -> ../lib/node_modules/titanium/bin/titanium\r\n\r\nAnd finally if I type in '/usr/lib/node_modules/titanium/bin/titanium -v' I get back 3.1.2, which makes absolutely no sense to me. Why would 'ti -v' give me 3.2.1 but when I use the full path to where the 'ti' command is linked it gives me back 3.1.2? I must have messed something up along the way but I'm not necessarily sure how it relates to the longjohn error I'm seeing and what I need to do to fix it. I've uninstalled and reinstalled the titanium cli through npm several times and haven't seen changes in any of the behavior above.", "attachment": [], "flagged": false, "summary": "Longjohn error on 3 separate machines when building with 3.2.1.GA", "creator": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "environment": "Mac OSX Mavericks\r\nNode 0.10.13\r\nTitanium CLI 3.2.1\r\nTitanium SDK 3.2.1\r\nTitaniumStudio 3.2.1\r\nXcode 5.0.2", "comment": { "comments": [ { "id": "293804", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please attach the output of the following command:\r\n\r\n1. ti info\r\n2. ti config\r\n3. ti sdk\r\n4. npm list -g titanium\r\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-19T20:05:52.000+0000", "updated": "2014-02-20T03:49:42.000+0000" }, { "id": "294024", "author": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-20T22:46:16.000+0000", "updated": "2014-02-20T22:46:16.000+0000" }, { "id": "294118", "author": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-21T15:03:40.000+0000", "updated": "2014-02-21T15:03:40.000+0000" }, { "id": "294269", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do you have Geny Motion emulator installed on this machine?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-22T19:35:38.000+0000", "updated": "2014-02-22T19:35:38.000+0000" }, { "id": "294276", "author": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "body": "I installed it after I started getting this error because a Google search suggested that it might be the cause for the issue. It's the same issue before and after installation.", "updateAuthor": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-23T02:44:02.000+0000", "updated": "2014-02-23T02:44:02.000+0000" }, { "id": "294277", "author": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "body": "I don't know if this helps, but if I run ti setup and then select either 2) check or 8) ios I get the error, but everything else seems to work as expected.", "updateAuthor": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-23T04:17:46.000+0000", "updated": "2014-02-23T04:17:46.000+0000" }, { "id": "294278", "author": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "body": "And I have installed Genymotion and have installed the Moto X 4.4.2 Virtual Device. I also ran:\n\nti config genymotion.enabled true\n\nper the instructions found here:\n\nhttp://www.appcelerator.com/blog/2013/12/using-genymotion-with-titanium-3-2/\n\nSame issue before I ran the ti config command and after, I don't know if there is anything else I need to do to get Genymotion working correctly.", "updateAuthor": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-23T04:24:55.000+0000", "updated": "2014-02-23T04:24:55.000+0000" }, { "id": "294302", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is likely to be related to Geny Motion emulator. Is it possible to remove Geny Motion emulator completely from this machine and see if you still run into this issue? Please let us also know if it is a Windows or OSX machine. I understand that you had mentioned Maverics earlier but I just want to confirm that since you are using multiple machines.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T05:22:42.000+0000", "updated": "2014-02-24T05:22:42.000+0000" }, { "id": "294316", "author": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "body": "Well I removed genymotion and genymotion shell apps but I\"m still getting the same error. Do I need to remove the ti config for genymotion? How do I do that?\n\nAll 3 machines are OSX, but I'm only having issues on the one machine now.\n\nIs there a faster process I can use? This is taking a large amount of time with the back and forth. I have a paid account, is there a number I can call to talk to somebody about this to help resolve it faster?", "updateAuthor": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-24T06:31:31.000+0000", "updated": "2014-02-24T06:31:31.000+0000" }, { "id": "294322", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am glad you brought it up. There is a direct help desk line for the paid accounts and it would be much better to pursue this case there. I am assigning this ticket to the person who leads help desk efforts and would assist you further.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T06:43:28.000+0000", "updated": "2014-02-24T06:43:28.000+0000" }, { "id": "294325", "author": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "body": "Great! Thanks for the help!", "updateAuthor": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-24T06:50:49.000+0000", "updated": "2014-02-24T06:50:49.000+0000" }, { "id": "297246", "author": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "body": "I upgraded to 3.2.2.GA and I'm still having this issue. What number can I call to try and resolve this over the phone?", "updateAuthor": { "name": "thisishuey", "key": "thisishuey", "displayName": "Jeff \"Huey\" Huelsbeck", "active": true, "timeZone": "America/New_York" }, "created": "2014-03-14T14:54:26.000+0000", "updated": "2014-03-14T14:54:26.000+0000" }, { "id": "299032", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "It's possible that the Titanium CLI config file has become corrupt or missing some required settings. Please do the following:\n\n{code}\nmv ~/.titanium/config.json ~/.titanium/config.json.orig\nti setup quick\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-27T20:43:47.000+0000", "updated": "2014-03-27T20:43:47.000+0000" }, { "id": "300721", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The cause was a iPhone distribution cert that node-forge was unable to parse. I've created a separate ticket to improve error handling when this situation arises.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-11T21:56:48.000+0000", "updated": "2014-04-11T21:56:48.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }