Sabnzbd service is not starting reliably: Signal 15

Support for the Debian/Ubuntu package, created by JCFP.
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
skaface
Newbie
Newbie
Posts: 2
Joined: April 6th, 2021, 9:32 am

Sabnzbd service is not starting reliably: Signal 15

Post by skaface »

I recently updated sabnzbd from a (quite) old version.
During/after the update I had some problems with user permissions and therefore adjusted my installation to let sab run from a dedicated user sabnzbd and start it via /etc/systemd/system/sabnzbdplus.service which looks like this:

Code: Select all

#/usr/lib/systemd/system/sabnzbdplus.service
[Unit]
Description=Sabnzbd
Wants=network-online.target
After=network-online.target

[Service]
User=sabnzbd
Group=media

ExecStart=/usr/bin/sabnzbdplus --config-file /home/sabnzbd/.sabnzbd/sabnzbd.ini --logging 1 --daemon
Type=forking

Restart=on-failure

[Install]
WantedBy=multi-user.target
I (obviously) only have very little understanding of how systemd works and only "cobbled this together" based on different infos I found on the internet. Whilst this does work some times, it oftentimes gives me the following error on startup:
...
2021-04-06 16:47:03,758::INFO::[notifier:122] Sending notification: Warning - Signal 15 caught, saving and exiting... (type=warning, job_cat=None)
2021-04-06 16:47:03,757::WARNING::[__init__:210] Signal 15 caught, saving and exiting...
2021-04-06 16:47:03,758::INFO::[__init__:460] [N/A] Performing SABnzbd shutdown
2021-04-06 16:47:03,758::INFO::[__init__:367] SABnzbd shutting down...
...
If this happens I simply run sudo systemctl restart sabnzbdplus.service a few times until it successfully starts without the "Signal 15 interruption".

I'd really appreciate some guidance on how to "make the script right" ;)

Thanks & best regards,

Mike

User avatar
safihre
Administrator
Administrator
Posts: 4240
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Sabnzbd service is not starting reliably: Signal 15

Post by safihre »

I'm no expert either. Did you install from the PPA as mentioned on our wiki?

This is the example script we include: https://github.com/sabnzbd/sabnzbd/blob ... 40.service
Small differences, maybe try the type to be Simple.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

skaface
Newbie
Newbie
Posts: 2
Joined: April 6th, 2021, 9:32 am

Re: Sabnzbd service is not starting reliably: Signal 15

Post by skaface »

Hi there,

I just gave it a shot and installed completely from scratch by simply following the steps described in the wiki. Everything seems to be working now as expected. Not sure why I had troubles with this in the first place 🤷‍♂️

Thanks & best regards!

Post Reply