Page 1 of 1

SABnzbd Failes After IP Change

Posted: August 27th, 2012, 9:14 am
by codeblue2k
My router changed and I had to replace it. So this lead to my Ubuntu server receiving a new IP address. Now SABnzbd wont start.

When I start the service it says OK, but the web interface does not come up.

If I run "sabnzbdplus" I notice the following:

2012-08-27 07:11:53,231::ERROR::[sabnzbdplus:302] Failed to start web-interface :
2012-08-27 07:11:53,232::INFO::[__init__:325] SABnzbd shutting down...

I am not sure whats going on. Anyone have any suggestions?

Re: SABnzbd Failes After IP Change

Posted: August 27th, 2012, 9:35 am
by sander
In sabnzbd.ini, find the first occurence of 'host' ... What is it?

Here's mine:

Code: Select all

sander@R540:~$ grep host ~/.sabnzbd/sabnzbd.ini | head -1
host = 0.0.0.0
sander@R540:~$

Re: SABnzbd Failes After IP Change

Posted: August 27th, 2012, 1:26 pm
by codeblue2k
sander wrote:In sabnzbd.ini, find the first occurence of 'host' ... What is it?

Here's mine:

Code: Select all

sander@R540:~$ grep host ~/.sabnzbd/sabnzbd.ini | head -1
host = 0.0.0.0
sander@R540:~$

Mine shows what I am assuming was my previous IP address. If I change it to 0.0.0.0 and try to start the services it seems to be restored to my previous IP. I am making the changes as root.

Re: SABnzbd Failes After IP Change

Posted: August 27th, 2012, 1:31 pm
by sander
Did you fully stop SAB before changing anything in the sabnzbd.ini file ... ?

Re: SABnzbd Failes After IP Change

Posted: August 27th, 2012, 1:33 pm
by codeblue2k
Yes I did stop the service.

Re: SABnzbd Failes After IP Change

Posted: August 27th, 2012, 2:25 pm
by sander
From the command line (so not as a daemon / service), start SAB like this:

sabnzbdplus --server 127.0.0.1:8080

(Assuming port 8080 is available)

Re: SABnzbd Failes After IP Change

Posted: August 28th, 2012, 2:49 am
by jcfp
codeblue2k wrote:Mine shows what I am assuming was my previous IP address. If I change it to 0.0.0.0 and try to start the services it seems to be restored to my previous IP. I am making the changes as root.
If you set the host in /etc/default/sabnzbdplus it will be restored to whatever is set there every time the service starts.

Re: SABnzbd Failes After IP Change

Posted: August 28th, 2012, 2:55 am
by sander
jcfp wrote:
codeblue2k wrote:Mine shows what I am assuming was my previous IP address. If I change it to 0.0.0.0 and try to start the services it seems to be restored to my previous IP. I am making the changes as root.
If you set the host in /etc/default/sabnzbdplus it will be restored to whatever is set there every time the service starts.
I advice to only use localhost (127.0.0.1) or 0.0.0.0: that will always work, won't it?

Re: SABnzbd Failes After IP Change

Posted: September 2nd, 2012, 11:20 am
by codeblue2k
jcfp wrote:
codeblue2k wrote:Mine shows what I am assuming was my previous IP address. If I change it to 0.0.0.0 and try to start the services it seems to be restored to my previous IP. I am making the changes as root.
If you set the host in /etc/default/sabnzbdplus it will be restored to whatever is set there every time the service starts.
I made the changes you suggested, but now when I start the service it sits at "URLGrabber starting up". Never moves past that line, I have to cancel out of the command.

Re: SABnzbd Failes After IP Change

Posted: September 3rd, 2012, 1:35 pm
by jcfp
codeblue2k wrote:
jcfp wrote:I made the changes you suggested, but now when I start the service it sits at "URLGrabber starting up". Never moves past that line, I have to cancel out of the command.
That's the last line in the log with a normal program startup. Time to start feeding it nzbs.