I can run SAB but my ubuntu server doesnt let me autostart it

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
luc1f3r
Newbie
Newbie
Posts: 4
Joined: November 28th, 2010, 3:20 pm

I can run SAB but my ubuntu server doesnt let me autostart it

Post by luc1f3r »

Preface; i had SABplus installed succesfully via the websites instructions. Shortly after i came upon an article that had me remove unrar and install another unrar application.

1. I decided to purge everything from SAB (and also purging) the previous winrar(?) version.

2. i reinstalled sab and unrar

3. after restarting SAB i found that everything(!) is working again, happy ever after! Just..sab wont let me autostart it, when i check i get this in return;

Code: Select all

tim@dc-nashost:~$ sudo service sabnzbdplus start
[sudo] password for tim:
tim@dc-nashost:~$ sudo systemctl daemon-reload
tim@dc-nashost:~$ systemctl status sabnzbd
● sabnzbd.service
     Loaded: bad-setting (Reason: Unit sabnzbd.service has a bad unit file setting.)
     Active: inactive (dead)

Aug 13 17:18:33 dc-nashost systemd[1]: sabnzbd.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusi>
update:
i added the following lines to

Code: Select all

[Unit]
Description=SABnzbd Usenet Client
After=network.target

[Service]
Type=simple
User=sabnzbd
Group=sabnzbd
ExecStart=/usr/bin/python -OO /usr/bin/sabnzbdplus -s 127.0.0.1:8080 --browser 0
ExecStop=/usr/bin/pkill sabnzbdplus
Restart=always
SyslogIdentifier=SABnzbd Usenet Client

[Install]
WantedBy=multi-user.target

but unfortunately i got the following in return;

Code: Select all

tim@dc-nashost:~$ systemctl status sabnzbd
● sabnzbd.service - SABnzbd Usenet Client
     Loaded: loaded (/etc/systemd/system/sabnzbd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2021-08-13 18:17:22 UTC; 6s ago
    Process: 10574 ExecStart=/usr/bin/python -OO /usr/bin/sabnzbdplus -s 127.0.0.1:8080 --browser 0 (code=exited, statu>
   Main PID: 10574 (code=exited, status=203/EXEC)

Aug 13 18:17:22 dc-nashost systemd[1]: sabnzbd.service: Scheduled restart job, restart counter is at 5.
Aug 13 18:17:22 dc-nashost systemd[1]: Stopped SABnzbd Usenet Client.
Aug 13 18:17:22 dc-nashost systemd[1]: sabnzbd.service: Start request repeated too quickly.
Aug 13 18:17:22 dc-nashost systemd[1]: sabnzbd.service: Failed with result 'exit-code'.
Aug 13 18:17:22 dc-nashost systemd[1]: Failed to start SABnzbd Usenet Client.
lines 1-11/11 (END)
Puzzled
Full Member
Full Member
Posts: 160
Joined: September 2nd, 2017, 3:02 am

Re: I can run SAB but my ubuntu server doesnt let me autostart it

Post by Puzzled »

What happens if you su to the sabnzbd user and try to run it?

Code: Select all

/usr/bin/python -OO /usr/bin/sabnzbdplus -s 127.0.0.1:8080 --browser 0
Post Reply