Open answerquest opened 6 years ago
http://localhost:5000/
again in the browser (note: port number at end may vary on different systems). The program is up and working.To really terminate the program, ref: How to know what program is listening on a given port?
$ lsof -i :5000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
GTFSManag 7757 nikhil 3u IPv6 96051 0t0 TCP *:5000 (LISTEN)
GTFSManag 7757 nikhil 4u IPv4 96052 0t0 TCP *:5000 (LISTEN)
$ kill 7757
<no response but program is terminated, confirmed by being able to run it again>
Problem with Quickfix : If the target user was capable of this then I'd rather make them run the program from python 3 itself and not bother making a binary to begin with. :P
The binary should force 'Execute in Terminal' option. Don't allow terminal-less execution. Or, spawn the terminal upon execution.
A fix for #87 precludes this too, so the program-wont-run situation won't be caused anymore. However, if user regularly keeps running the program then soon many port numbers will be occupied plus memory wastage etc. Longfix yet to find.
This is in an Ubuntu OS, and concerns Linux executable that is under development and hasn't been released yet as of release v1.4.2 (and you're going to see why).
Steps:
Loaded dependencies, starting static GTFS Manager program. Traceback (most recent call last): File "GTFSManager.py", line 1258, in
app.listen(port)
File "site-packages/tornado/web.py", line 1986, in listen
File "site-packages/tornado/tcpserver.py", line 144, in listen
File "site-packages/tornado/netutil.py", line 163, in bind_sockets
OSError: [Errno 98] Address already in use
[9559] Failed to execute script GTFSManager