Page 1 of 1

Can't get sabnzbd to start as a service

Posted: February 17th, 2025, 7:18 am
by chops
Hi,

I've installed sabnzbd successfully on Ubuntu 24.04.2 and when I run it from a terminal window it works fine and I can connect to it from a browser.

Im following the instructions in the wiki to setup sabnzbd to run as a service on Ubuntu. I have edited /etc/default/sabnzbdplus to set the user to be sabnzbd, pointed the config file at /home/sabnzbd/.sabnzbd/sabnzbd.ini but when I start the service using 'service sabnzbdplus start' it returns the error

Code: Select all

    Job for sabnzbdplus.service failed because the control process exited with error code.
    See "systemctl status sabnzbdplus.service" and "journalctl -xeu sabnzbdplus.service" for details.
Checking the status of the service gives me

Code: Select all

    × sabnzbdplus.service - LSB: SABnzbd+ binary newsgrabber
         Loaded: loaded (/etc/init.d/sabnzbdplus; generated)
         Active: failed (Result: exit-code) since Mon 2025-02-17 22:58:56 AEDT; 1min 4s ago
           Docs: man:systemd-sysv-generator(8)
        Process: 289933 ExecStart=/etc/init.d/sabnzbdplus start (code=exited, status=2)
            CPU: 745ms

    Feb 17 22:58:54 chops-plex systemd[1]: Starting sabnzbdplus.service - LSB: SABnzbd+ binary newsgrabber... 
    Feb 17 22:58:55 chops-plex sabnzbdplus[289933]:  * Starting SABnzbd+ binary newsgrabber
    Feb 17 22:58:56 chops-plex sabnzbdplus[289933]:    ...fail!
    Feb 17 22:58:56 chops-plex systemd[1]: sabnzbdplus.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
    Feb 17 22:58:56 chops-plex systemd[1]: sabnzbdplus.service: Failed with result 'exit-code'.
    Feb 17 22:58:56 chops-plex systemd[1]: Failed to start sabnzbdplus.service - LSB: SABnzbd+ binary newsgrabber.
Any suggestions?

Re: Can't get sabnzbd to start as a service

Posted: February 18th, 2025, 3:33 am
by jcfp
Please post the content of the /etc/default file. Does the user actually exist, as a regular (non-system) account that can login and use a shell?

Re: Can't get sabnzbd to start as a service

Posted: June 3rd, 2025, 5:34 am
by blakejosh
You can start by verifying that the sabnzbd user exists and has ownership of /home/sabnzbd/.sabnzbd/ using sudo chown -R sabnzbd:sabnzbd /home/sabnzbd/.sabnzbd/. You can also test the configuration by running sudo -u sabnzbd sabnzbdplus -f /home/sabnzbd/.sabnzbd/sabnzbd.ini to check for permission or path errors before retrying the service.