Page 1 of 1

Error when installing SABNZBD

Posted: January 1st, 2021, 4:27 am
by ianarman
Hello,


I'm following the following instructions to install SABNZBD on a VM

How to Install SABnzbd Usenet Client on Ubuntu 16.04/18.04
SABnzbd is available from the default Ubuntu repository. So you can open up a terminal and install it with apt.

sudo apt install sabnzbdplus
SABnzbd is being actively developed. It’s recommended to run the following commands to install the latest stable version (2.3.9 at the time of this writing) from the SABnzbd PPA.

sudo add-apt-repository ppa:jcfp/nobetas

sudo add-apt-repository ppa:jcfp/sab-addons

sudo apt update

sudo apt install sabnzbdplus python-sabyenc par2-tbb

sudo service sabnzbdplus start

sudo netstat -lnpt | grep 8080

sudo nano /etc/systemd/system/sabnzbd.service

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

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

[Install]
WantedBy=multi-user.target
Then reload Systemd.

sudo systemctl daemon-reload
sudo adduser --system --home /home/sabnzbd --group sabnzbd

sudo systemctl start sabnzbd

sudo systemctl enable sabnzbd

systemctl status sabnzbd



```````````````````````
systemctl status sabnzbd
````````````````````````

I receive the following error message:


``````````````````````````````````
● sabnzbd.service - SABnzbd Usenet Client
Loaded: loaded (/etc/systemd/system/sabnzbd.service; enabled; vendor preset: enabled)
Active: inactive (dead)

Jan 01 04:22:33 sabnzbd SABnzbd Usenet Client[4325]: ^
Jan 01 04:22:33 sabnzbd SABnzbd Usenet Client[4325]: SyntaxError: Missing parentheses in call to 'print'
Jan 01 04:22:33 sabnzbd systemd[1]: sabnzbd.service: Main process exited, code=exited, status=1/FAILURE
Jan 01 04:22:33 sabnzbd SABnzbd Usenet Client[4328]: pkill: killing pid 4119 failed: Operation not permitted
Jan 01 04:22:33 sabnzbd systemd[1]: sabnzbd.service: Unit entered failed state.
Jan 01 04:22:33 sabnzbd systemd[1]: sabnzbd.service: Failed with result 'exit-code'.
Jan 01 04:22:33 sabnzbd systemd[1]: sabnzbd.service: Service hold-off time over, scheduling restart.
Jan 01 04:22:33 sabnzbd systemd[1]: Stopped SABnzbd Usenet Client.
Jan 01 04:22:33 sabnzbd systemd[1]: sabnzbd.service: Start request repeated too quickly.
Jan 01 04:22:33 sabnzbd systemd[1]: Failed to start SABnzbd Usenet Client.


``````````````````````````````````````

Re: Error when installing SABNZBD

Posted: January 1st, 2021, 6:19 am
by jcfp
  • Stop using outdated ubuntu versions, base your vm on the latest ubuntu long term support release (20.04/focal);
  • Stop using broken instructions from random blogs, follow the ones on the sabnzbd wiki instead;
  • Stop adding broken systemd service files, the sabnzbdplus package comes with a perfectly functional init.d script (instructions are in the previous step) that works fine with systemd too.