Can't get NzbDrone to autostart on Ubuntu 16.04

Sonarr version (exact version): 2.0.0.4146
Mono version (if Sonarr is not running on Windows): 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016)
OS: Ubuntu Server 16.04
((Debug logs)) (posted to hastebin or similar): I am not sure if I need the debug logs for Sonarr for this. I am not sure if this is an issue with Sonarr or Ubuntu
Description of issue:

I have a fresh install of Ubuntu Server 16.04. I have installed NzbDrone. I can’t get it to auto start. I am using the method 2 found here. I have tried both method 1 & 2, both don’t work. When I try to add it, I get the following:

@my-server:/etc/init.d$ sudo update-rc.d nzbdrone defaults
insserv: Script nzbdrone is broken: incomplete LSB comment.
insserv: missing Provides:' entry: please add. insserv: missingRequired-Start:’ entry: please add even if empty.
insserv: missing Required-Stop:' entry: please add even if empty. insserv: missingDefault-Start:’ entry: please add even if empty.
insserv: missing Default-Stop:' entry: please add even if empty. insserv: Default-Start undefined, assuming empty start runlevel(s) for scriptnzbdrone’
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `nzbdrone’
@my-server:/etc/init.d$

I am at a loss on this one. Any help or direction is greatly appreciated. Thank you.

~J

I followed this guide: http://www.htpcguides.com/install-nzbdrone-ubuntu/
It worked perfectly fine for me. I like linux, but some things can be overly complicated for simple tasks.

As 16.04 uses systemd you need to use the method listed at the bottom of the wiki for autostart in linux

I have tried both ways. The other way gets me the follow:

@my-server:/etc/init.d$ sudo vi /etc/init/nzbdrone.conf
@my-server:/etc/init.d$ sudo chmod +x /etc/init/nzbdrone.conf
@my-server:/etc/init.d$ sudo service nzbdrone start
Failed to start nzbdrone.service: Unit nzbdrone.service not found.
@my-server:/etc/init.d$

Now you’re using upstart… Is systemd not sysVinit not upstart…please read again

After method 4, before FreeBSD.

Thanks subzero. I am a dipstick. I got it working.

I’ll see if I can add some notes in the wiki to specify for Debian 8+ and Ubuntu 16.04 to use systemd.

can i ask what your systemd config looks like? i’ve tried everything and i can’t get sonarr to autostart. no errors, just nothing happens at all.

I use this unit

[Unit]
Description=Sonarr Daemon
After=syslog.target network.target

[Service]
User=osmc
Group=users
Type=simple
ExecStart=/usr/bin/mono /opt/Sonarr/NzbDrone.exe -nobrowser -data=/home/osmc/.config/sonarr
ExecStartPost=/usr/bin/ssh -t rpi 'export status_script="Sonarr daemon (re)start"; process_offline_sonarr; exit'
TimeoutStopSec=20
KillMode=process
Restart=on-failure
StandardOutput=null

[Install]
WantedBy=multi-user.target

You don’t need ExecStartPost, that’s from my own setup.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.