You are not logged in.

#1 2013-04-14 20:01:57

turriper
Member
Registered: 2013-04-01
Posts: 6

sabnzbd service failure at boot

Hi all

I'm trying to run sabnzbd automatically at boot.

  • I installed python2-yenc and sabnzbd from the AUR

  • I changed the host in sabznbd.ini to 192.168.1.254 so I can access the webgui locally

  • I modified /opt/sabnzbd permissions so that sabznd is the group and owner

I can start the service successfully with

systemctl start sabnzbd.service

after which I can see the webgui on 192.168.1.254:8080

however if I enter

systemctl enable sabnzbd.service

and reboot, sabnzbd fails

[root@arch ~]# systemctl status sabnzbd.service
sabnzbd.service - SABnzbd binary newsreader
   Loaded: loaded (/usr/lib/systemd/system/sabnzbd.service; enabled)
   Active: failed (Result: exit-code) since Sun 2013-04-14 19:03:07 BST; 1h 26min ago
  Process: 209 ExecStart=/bin/sh -c python2 /opt/sabnzbd/SABnzbd.py -l0 (code=exited, status=2)

Apr 14 19:03:06 arch sh[209]: File "/opt/sabnzbd/cherrypy/_cpserver.py", line 90, in start
Apr 14 19:03:06 arch sh[209]: ServerAdapter.start(self)
Apr 14 19:03:06 arch sh[209]: File "/opt/sabnzbd/cherrypy/process/servers.py", line 62, in start
Apr 14 19:03:06 arch sh[209]: self.wait()
Apr 14 19:03:06 arch sh[209]: File "/opt/sabnzbd/cherrypy/process/servers.py", line 97, in wait
Apr 14 19:03:06 arch sh[209]: raise self.interrupt
Apr 14 19:03:06 arch sh[209]: error: [Errno 99] Cannot assign requested address
Apr 14 19:03:06 arch sh[209]: 2013-04-14 19:03:06,694::ERROR::[SABnzbd:303] Failed to start web-interface : [Errno 99] Cannot assign requested address
Apr 14 19:03:07 arch systemd[1]: sabnzbd.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 14 19:03:07 arch systemd[1]: Unit sabnzbd.service entered failed state

I suspect it's because my internet connection isn't ready? I use netctl's ethernet-static example file and this command

netctl-ifplugd@enp2s0.service

which successfully connects my NAS to the internet

here's the contents of the sabnzbd systemd file

[Unit]
Description=SABnzbd binary newsreader
After=network.target

[Service]
Type=simple
ExecStart=/bin/sh -c "python2 /opt/sabnzbd/SABnzbd.py -l0"
User=sabnzbd
Group=sabnzbd

[Install]
WantedBy=multi-user.target

does anyone know what I'm doing wrong? thanks for the help! smile

Offline

#2 2013-04-14 20:26:57

turriper
Member
Registered: 2013-04-01
Posts: 6

Re: sabnzbd service failure at boot

solved! if I change host in sabnzbd from localhost (the default) to 0.0.0.0 it works

not sure why? I'm a new user so have a lot to learn it seems =/

Offline

Board footer

Powered by FluxBB