Page 1 of 1

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

Posted: August 13th, 2021, 12:21 pm
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

[email protected]:~$ sudo service sabnzbdplus start
[sudo] password for tim:
[email protected]:~$ sudo systemctl daemon-reload
[email protected]:~$ 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

[email protected]:~$ 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)

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

Posted: August 14th, 2021, 3:24 pm
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