[TIMOB-26462] iOS: Build throws unhelpful error when connecting to log server if localhost does not resolve
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-10-18T13:11:51.000+0000 |
Affected Version/s | Release 7.4.0, Release 7.3.1 |
Fix Version/s | Release 7.5.0 |
Components | CLI, iOS |
Labels | n/a |
Reporter | Simon Buckingham |
Assignee | Ewan Harris |
Created | 2018-10-16T13:11:07.000+0000 |
Updated | 2018-11-13T13:19:02.000+0000 |
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.
When I try and compile after the change with:
$appc ti build -p ios --target simulator ...
I can't because of the error:
[ERROR] Another process is currently bound to port 46032
[ERROR] Set a unique between 1024 and 65535 in the section of the tiapp.xml
I 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).
I have tried restarting the simulator, my terminal (quitting processes) and restarting my computer.
[~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) Does 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?Ewan Harris. Thanks for such a prompt reply. Yes there was a load of gunk in my /etc/hosts file. Been doing a lot of local web development. Setting the localhost values you suggest seems to work. Thanks a bunch.
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.
https://github.com/appcelerator/titanium_mobile/pull/10384
Updated verbiage is merged to master for eventual 7.5.0 release.
*Closing ticket* Verified fix in SDK Version
7.5.0.v20181018133006
. *FR Passed (Test steps):*Edited the
/etc/hosts
file (removed localhost mapping)Built a Titanium application to an iOS simulator
Able to see a more helpful error message
*Test Environment*