{ "id": "172442", "key": "TIMOB-26462", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-10-18T13:11:51.000+0000", "created": "2018-10-16T13:11:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "20183", "description": "", "name": "Release 7.4.0", "archived": false, "released": true, "releaseDate": "2018-09-17" }, { "id": "20220", "name": "Release 7.3.1", "archived": false, "released": true, "releaseDate": "2018-08-30" } ], "issuelinks": [ { "id": "56990", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "172603", "key": "TIMOB-26551", "fields": { "summary": "iOS: \"Cannot read property 'code' of undefined\" error thrown if log server connection times out", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2018-11-13T13:19:02.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I sometimes have to change my internet provider as I have two and sometimes one goes down. Typically this is changing from Virgin ethernet to Talk Talk wi-fi. Obviously the IP address of my machine changes.\r\n\r\nWhen I try and compile after the change with:\r\n\r\n$appc ti build -p ios --target simulator ...\r\n\r\nI can't because of the error:\r\n\r\n[ERROR] Another process is currently bound to port 46032\r\n[ERROR] Set a unique between 1024 and 65535 in the section of the tiapp.xml\r\n\r\nI have no idea what to set the value to. One shouldn't have to do this anyway. This is only a relatively recent problem as it didn't used to happen (not sure at which version it changed).\r\n\r\nI have tried restarting the simulator, my terminal (quitting processes) and restarting my computer.", "attachment": [], "flagged": false, "summary": "iOS: Build throws unhelpful error when connecting to log server if localhost does not resolve", "creator": { "name": "icecandyent", "key": "icecandyent", "displayName": "Simon Buckingham", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "icecandyent", "key": "icecandyent", "displayName": "Simon Buckingham", "active": true, "timeZone": "Europe/London" }, "environment": "OS X 10.13.4, Ti SDK 7.1/7.3/7.4, appc 7.0.6", "comment": { "comments": [ { "id": "442663", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~icecandyent], thanks for the report. I think it's possible this is similar to TIMOB-25872, where localhost is not resolving as expected. I've seen UK ISPs do similar behaviour before (BT was sniping localhost, and .int domains for me)\r\n\r\nDoes this only cause issues for you on one ISP? Could you check your {{/etc/hosts}} file, there should be some entries like below mapping localhost. If they don't exist could you try adding them and seeing if the issue still occurs?\r\n\r\n{code}\r\n127.0.0.1\tlocalhost\r\n::1 localhost\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-10-16T19:36:45.000+0000", "updated": "2018-10-16T19:36:45.000+0000" }, { "id": "442686", "author": { "name": "icecandyent", "key": "icecandyent", "displayName": "Simon Buckingham", "active": true, "timeZone": "Europe/London" }, "body": "Ewan Harris. Thanks for such a prompt reply.\r\n\r\nYes there was a load of gunk in my /etc/hosts file. Been doing a lot of local web development.\r\nSetting the localhost values you suggest seems to work. Thanks a bunch.", "updateAuthor": { "name": "icecandyent", "key": "icecandyent", "displayName": "Simon Buckingham", "active": true, "timeZone": "Europe/London" }, "created": "2018-10-17T10:03:55.000+0000", "updated": "2018-10-17T10:03:55.000+0000" }, { "id": "442752", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Awesome, glad it works. I'll move this ticket over to TIMOB, we really should be erroring with information that can guide you how to fix this issue here.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-10-18T10:35:07.000+0000", "updated": "2018-10-18T10:35:07.000+0000" }, { "id": "442753", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/10384", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-10-18T10:43:42.000+0000", "updated": "2018-10-18T10:43:42.000+0000" }, { "id": "442764", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Updated verbiage is merged to master for eventual 7.5.0 release.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-10-18T14:28:38.000+0000", "updated": "2018-10-18T14:28:38.000+0000" }, { "id": "442787", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket* Verified fix in SDK Version {{7.5.0.v20181018133006}}.\r\n\r\n*FR Passed (Test steps):*\r\n# Edited the {{/etc/hosts}} file (removed localhost mapping)\r\n# Built a Titanium application to an iOS simulator \r\n# Able to see a more helpful error message\r\n{code:java}\r\n[ERROR] Unable to connect to log server on localhost\r\n[ERROR] Please ensure your /etc/hosts file contains a valid entry for `localhost`\r\n{code}\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.1.0.201808080937\r\niPhone 7 plus Sim (iOS 12)\r\nAPPC CLI: 7.0.7-master.4\r\nOperating System Name: Mac OS Mojave\r\nOperating System Version: 10.14\r\nNode.js Version: 8.9.1\r\nXcode 10.0\r\n{code}", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-19T09:43:01.000+0000", "updated": "2018-10-19T09:43:01.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }