nathan icon indicating copy to clipboard operation
nathan copied to clipboard

Init Script fails due to custom port

Open ingm4r opened this issue 8 years ago • 2 comments

Running the init script it tries do download a configuration:

Downloading lastest configuration...
GET http://repo.mseclab.com:9080/nathan/current...
Impossible to download the file -> <urlopen error [Errno 110] Connection timed out>

The response of the webserver is only one string:

NRL001

In most business environments such ports are blocked, please move to 80/443. Moreover after the script is restarted the android sdk is downloaded again, the previous download is not reused.

ingm4r avatar Nov 04 '16 08:11 ingm4r

Hi,

The response is correct because in the first request the current version is returned (actually NRL001).

Thanks for your hint: the web server has been moved on port 80.

For the last point, the init command checks if sdk/ folder exists and then checks that emulator command works correctly. Only if the two checks fail, the script restart to download the SDK. Probably the SDK files were not been completed and the script restarted to download (related to 9080 port?).

robgas avatar Nov 04 '16 14:11 robgas

Hi, yes I noticed that the first response is only the version number and downloaded the remaining files manually. As for buffering the SDK: No, the SDK-Download was complete and also sucessfully extracted but the download started again for each run. I will see if I can reproduce this issue or if that was related to the custom port.

ingm4r avatar Nov 07 '16 19:11 ingm4r