Page 1 of 1

Ubuntu 11 Server and Sabnzbd 6.0 startup problem....

Posted: May 27th, 2011, 1:36 pm
by neves
Hi there, I've been using sabnzbd 5xx for a while on my ubuntu server without problems, however i recently upgraded Ubuntu to 11.04 and sabnzbd to 6.0.

Now sabnzbd wont start after a cold boot, instead I get the following error :

Exception in thread HTTPServer Thread-10:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1629, in start
    raise socket.error, msg
error: [Errno 99] Cannot assign requested address

Now I googled the error and found it had something to do with the hosts line in the sabnzbd.ini file. I reset this line to 0.0.0.0 and sabnzbd started straight after a cold boot. Great. Except the next time I switch on the server the same error occurs again.

I've tried uninstalling and reinstalling but with the same result. Any ideas?

Re: Ubuntu 11 Server and Sabnzbd 6.0 startup problem....

Posted: May 27th, 2011, 2:39 pm
by shypike
It looks like your Ubuntu installation has some DNS issues.
Do you need external access?
If not, use "localhost", otherwise try an empty host name.
As a last resort use the true IP address of your system.
Not recommended, because it might change over time.

Re: Ubuntu 11 Server and Sabnzbd 6.0 startup problem....

Posted: May 27th, 2011, 3:13 pm
by neves
Yeah i'm afraid I need external access, so the localhost solution is a no go. I'll try the empty host name next. I did wonder if it was ubuntu, however other programs eg. webmin work fine off my LAN using the ip address that sabnzbd seems to be having problems with.

EDIT: nope, empty host name didn't work. trying to change the port didn't work either, just kept returning to :8080

So.... server is on LAN IP 192.168.0.4

This is accessible to other services running on the server (eg webmin), however not to sabnzbd from a cold boot.
Rebooting the server allows sabnzb to work fine on the above IP address
Restarting sabnzbd itself allows it to work on the above IP address.
Editing the host to 0.0.0.0 allows sabnzbd to work straight from a cold boot, however after the initial boot the .ini file reverts to a host of 192.168.0.4 after a reboot or cold boot.
LOCALHOST or blank host does not allow the server to be accessible from the LAN.