Page 1 of 1

Incorrect (IMH) error message with unbindable IP address

Posted: September 5th, 2011, 6:20 am
by sander
I filled out "2.3.4.5" as the SABnzbd Host, and saved the config. On restarting I get an error (good) which is not correct:

SABnzbd.py 0.6.8

SABnzbd needs a free tcp/ip port for its internal web server.
Port 9090 on 2.3.4.5 was tried , but it is not available.
Some other software uses the port or SABnzbd is already running.

Please restart SABnzbd with a different port number.

Open a Terminal window and type the line (example):
/home/sander/SABnzbd-0.6.8/SABnzbd.py --server 2.3.4.5:9091

If you get this error message again, please try a different number.

Program did not start!
I have a problem with SABnzbd only mentioning a *port* problem, whereas the problem is with the IP address.

So my suggestion for the error message would be:
SABnzbd.py 0.6.8

SABnzbd needs a free tcp/ip port for its internal web server.
Port 9090 on 2.3.4.5 was tried , but it is not available.
Some other software uses the port, SABnzbd is already running or the IP address is not valid.

Please restart SABnzbd with a different port number and/or different IP address.

Open a Terminal window and type the line (example):
/home/sander/SABnzbd-0.6.8/SABnzbd.py --server 2.3.4.5:9091
or
/home/sander/SABnzbd-0.6.8/SABnzbd.py --server 127.0.0.1:9091
or
/home/sander/SABnzbd-0.6.8/SABnzbd.py --server localhost:9091

If you get this error message again, please try a different port number or IP address.

Program did not start!
Or even better: it looks like there the exception already knows it's an *address* problem (not a port problem). If so, please say so in the SABnzbd error message
Exception in thread HTTPServer Thread-9:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/sander/SABnzbd-0.6.8/cherrypy/process/servers.py", line 75, in _start_http_thread
self.httpserver.start()
File "/home/sander/SABnzbd-0.6.8/cherrypy/wsgiserver/__init__.py", line 1644, in start
raise socket.error, msg
error: [Errno 99] Cannot assign requested address
Last but not least, I still think it would be best if SABnzbd would auto-correct itself to 127.0.0.1 / localhost with a free port...

Re: Incorrect (IMH) error message with unbindable IP address

Posted: September 5th, 2011, 7:03 am
by shypike
We cannot handle every crazy situation.
There are even more errors possible, some of which we cannot even detect properly.
127.0.0.1 isn't very useful for headless systems like servers.
There's room for improvement, but it isn't a simple as you suggest.

Re: Incorrect (IMH) error message with unbindable IP address

Posted: September 5th, 2011, 2:17 pm
by sander
OK. Thanks.