Page 1 of 2

SOLVED: Failing to start

Posted: Fri Mar 21, 2014 4:23 pm
by dekthro
Sab is failing to start, and appears to just time out.

from 'systemctl status sabnzbd.service'

Code: Select all

sabnzbd.service - SABnzbd Plus server Loaded: loaded (/usr/lib/systemd/system/sabnzbd.service; enabled) Active: failed (Result: timeout) since Fri 2014-03-21 16:17:56 PDT; 14s ago Process: 23124 ExecStart=/var/hda/web-apps/sabnzbdplus/html/SABnzbd.py --browser 0 --daemon --pid /var/run/sabnzbd/ --config-file /var/hda/web-apps/sabnzbdplus/html/sabnzbd.ini (code=exited, status=0/SUCCESS) Process: 23122 ExecStartPre=/usr/bin/chown -R apache:users /var/run/sabnzbd/ (code=exited, status=0/SUCCESS) Process: 23119 ExecStartPre=/usr/bin/mkdir -p /var/run/sabnzbd/ (code=exited, status=0/SUCCESS) Mar 21 16:16:26 localhost.localdomain systemd[1]: PID file /var/run/sabnzbd/sabnzbd-25915.pid not readable (...art. Mar 21 16:17:56 localhost.localdomain systemd[1]: sabnzbd.service operation timed out. Terminating. Mar 21 16:17:56 localhost.localdomain systemd[1]: Failed to start SABnzbd Plus server. Mar 21 16:17:56 localhost.localdomain systemd[1]: Unit sabnzbd.service entered failed state.
I've checked /var/run/sabnzbd/ for the referenced PID file, and the only one there is a

Code: Select all

-rw------- 1 apache users 6 Mar 21 16:31 sabnzbd-8080.pid
I've tried uninstalling and reinstalling this as well.

Re: Failing to start

Posted: Fri Mar 21, 2014 5:59 pm
by bigfoot65
Did you change the port? It defaults to 25915.

The PID file you listed is 8080. If you change the port, it must be manually changed in the service as well.

I have tested the app and works with no issues on my test machine.

Re: Failing to start

Posted: Fri Mar 21, 2014 6:07 pm
by dekthro
As far as I know I hadn't changed anything, and that is what I had assumed as well. I checked the sabnzbd.ini file and I didn't even see it listed at all.

EDIT: Located, updated, and it is directing me back to http://localhost:25915/wizard/ when trying to access http://sabnzbdplus/

Re: Failing to start

Posted: Fri Mar 21, 2014 6:12 pm
by bigfoot65
It is in the .ini file, should read:
port = 25915.
Uninstall, then before you reinstall remove the .ini file from /var/hda/files/newsgroups share. That is where it's backed up on uninstall for upgrade purposes.

Re: Failing to start

Posted: Fri Mar 21, 2014 6:15 pm
by dekthro
Ahh that was what was messing things up. Something must have gone wrong in the settings file. Everything is peachy now, thank you, bigfoot65!

Re: Failing to start

Posted: Fri Mar 21, 2014 6:21 pm
by bigfoot65
Awesome. Sorry for the inconvenience.

One day we will have a way to allow apps to selectively use backup files vs doing it automatically.

Re: SOLVED: Failing to start

Posted: Mon Aug 18, 2014 8:39 pm
by hemington1
I should have looked here first................
My SAB stopped working and I thought the port was the problem, so I changed it to 8080 and now I can't get the server to start. I'll do the recommended fix shown here tonight...............

Re: SOLVED: Failing to start

Posted: Tue Aug 19, 2014 4:57 am
by hemington1
No need to delete ini file, just edit and change port. Working now.

Re: SOLVED: Failing to start

Posted: Tue Feb 10, 2015 3:58 pm
by jdwoodalljrawoodall
I am having trouble accessing the config file. When I first installed sab it worked fine. I know I set it up wrong but I am unable to access file to remove my settings via putty I am running the headless server

Re: SOLVED: Failing to start

Posted: Tue Feb 10, 2015 4:07 pm
by bigfoot65
This is a closed thread. In future, please start a new one.

You can manually edit the file. It's located in /var/hda/files/sabnzbdplus/html directory. It's called sabnzbd.ini.

The other alternative is to uninstall, then remove the backup configuration file from /var/hda/files/newsgroups, then reinstall.