Help with SABnzbd 3 and python + Systemd

Get help with all aspects of SABnzbd
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
sabuser2020
Newbie
Newbie
Posts: 7
Joined: August 23rd, 2020, 3:17 pm

Help with SABnzbd 3 and python + Systemd

Post 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.
sabuser2020
Newbie
Newbie
Posts: 7
Joined: August 23rd, 2020, 3:17 pm

Re: Help with SABnzbd 3 and python + Systemd

Post by sabuser2020 »

I also get "new users can't post links" when I try to paste outputs...
sabuser2020
Newbie
Newbie
Posts: 7
Joined: August 23rd, 2020, 3:17 pm

Re: Help with SABnzbd 3 and python + Systemd

Post 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 
sabuser2020
Newbie
Newbie
Posts: 7
Joined: August 23rd, 2020, 3:17 pm

Re: Help with SABnzbd 3 and python + Systemd

Post 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.
User avatar
OneCD
Hero Member
Hero Member
Posts: 597
Joined: March 4th, 2017, 3:47 pm

Re: Help with SABnzbd 3 and python + Systemd

Post 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. ;D
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
colbymauricio
Newbie
Newbie
Posts: 2
Joined: August 26th, 2020, 1:52 am
Contact:

Re: Help with SABnzbd 3 and python + Systemd

Post 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.
Post Reply