Page 1 of 1
Help with SABnzbd 3 and python + Systemd
Posted: August 23rd, 2020, 3:37 pm
by sabuser2020
I have an issue where my systemd will no longer let me start sabnzbd. It says I need to have phython3.5 or above. I already do, and I can actually run the SABnzbd py manually without issue.
My guess is that it has something to do with the /usr/bin/python still trying to use python 2.7, but I thought I made the base version 3.6.9. So it's confusing.
Re: Help with SABnzbd 3 and python + Systemd
Posted: August 23rd, 2020, 3:37 pm
by sabuser2020
I also get "new users can't post links" when I try to paste outputs...
Re: Help with SABnzbd 3 and python + Systemd
Posted: August 23rd, 2020, 3:39 pm
by sabuser2020
Code: Select all
ystemctl status sabnzbd.service
● sabnzbd.service - SABnzbd Daemon
Loaded: loaded (/etc/systemd/system/sabnzbd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2020-08-23 13:23:50 PDT; 6min ago
Process: 12072 ExecStart=/usr/bin/python /apps/sabnzbd/SABnzbd. py --daemon --config-file=/apps/data/.sabnzbd/sabnzbd_config. ini -s 0.0.0.0 (code=exited, status=1/FAILURE)
Aug 23 13:23:50 systemd[1]: Starting SABnzbd Daemon...
Aug 23 13:23:50 python[12072]: Sorry, requires Python 3.5 or above
Aug 23 13:23:50 python[12072]: You can read more at: https: //sabnzbd. org/python3
Aug 23 13:23:50 systemd[1]: sabnzbd.service: control process exited, code=exited status=1
Aug 23 13:23:50 systemd[1]: Failed to start SABnzbd Daemon.
Aug 23 13:23:50 systemd[1]: Unit sabnzbd.service entered failed state.
Aug 23 13:23:50 systemd[1]: sabnzbd.service failed.
Code: Select all
sabnzbd]# python --version
Python 3.6.9
Code: Select all
#
# Systemd unit file for SABnzbd
#
[Unit]
Description=SABnzbd Daemon
[Service]
Type=forking
User=usenet
Group=usenet
ExecStart= /usr/bin/python /opt/sabnzbd/SABnzbd. py --daemon --config-file=/apps/data/.sabnzbd/sabnzbd_config. ini -s 0.0.0.0
GuessMainPID=no
[Install]
WantedBy=multi-user.target
When I run the .py manually it starts up!
Code: Select all
Version: 3.0.1 [9a4be70]
Uptime: 0m
Config File: /apps/data/.sabnzbd/sabnzbd_config.ini
Parameters: "./SABnzbd. py" "--config-file=/apps/data/.sabnzbd/sabnzbd_config. ini" "-s" "0.0.0.0"
Python Version: 3.6.8 (default, Apr 2 2020, 13:34:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] [UTF-8]
OpenSSL: OpenSSL 1.0.2k-fips 26 Jan 2017
Re: Help with SABnzbd 3 and python + Systemd
Posted: August 23rd, 2020, 3:51 pm
by sabuser2020
d'oh, I solved my own problem. I am pointing /usr/bin/python to /usr/bin/python3 instead!
systemctl status sabnzbd.service
sabnzbd.service - SABnzbd Daemon
Loaded: loaded (/etc/systemd/system/sabnzbd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-08-23 13:32:17 PDT; 5s ago
Process: 13142 ExecStart=/usr/bin/python3 /apps/sabnzbd/SABnzbd. py --daemon --config-file=/apps/data/.sabnzbd/sabnzbd_config. ini -s 0.0.0.0 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/sabnzbd.service
└─13148 /usr/bin/python3 /apps/sabnzbd/SABnzbd. py --daemon --config-file=/apps/data/.sabnzbd/sabnzbd_config. ini -s 0.0.0.0
Aug 23 13:32:15 s systemd[1]: Starting SABnzbd Daemon...
Aug 23 13:32:17 systemd[1]: Started SABnzbd Daemon.
Re: Help with SABnzbd 3 and python + Systemd
Posted: August 23rd, 2020, 4:27 pm
by OneCD
sabuser2020 wrote: ↑August 23rd, 2020, 3:51 pm
d'oh, I solved my own problem. I am pointing /usr/bin/python to /usr/bin/python3 instead!
Yup, that one caught me out too.
Re: Help with SABnzbd 3 and python + Systemd
Posted: August 29th, 2020, 5:02 am
by colbymauricio
sabuser2020 wrote: ↑August 23rd, 2020, 3:51 pm
d'oh, I solved my own problem. I am pointing /usr/bin/python to /usr/bin/python3 instead!
systemctl status sabnzbd.service
sabnzbd.service - SABnzbd Daemon
Loaded: loaded (/etc/systemd/system/sabnzbd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-08-23 13:32:17 PDT; 5s ago
Process: 13142 ExecStart=/usr/bin/python3 /apps/sabnzbd/SABnzbd. py --daemon --config-file=/apps/data/.sabnzbd/sabnzbd_config. ini -s 0.0.0.0 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/sabnzbd.service
└─13148 /usr/bin/python3 /apps/sabnzbd/SABnzbd. py --daemon --config-file=/apps/data/.sabnzbd/sabnzbd_config. ini -s 0.0.0.0
Aug 23 13:32:15 s systemd[1]: Starting SABnzbd Daemon...
Aug 23 13:32:17 systemd[1]: Started SABnzbd Daemon.
Thank you, I had the same problem with Python version, I pointed it to the right version and it works now.