Can't start NZBGet suddenly

Yesterday, I was able to access NZBGet on my RPi3 just fine. But after removing two scheduled tasks, saving the changes and restarting NZBGet, I can no longer open it on another computer.

I have tried starting and stopping, enabling and disabling the service and I’ve rebooted my Pi multiple times, all to no avail. This is the output when asking for the status of nzbget.service:

osmc@osmc:~$ sudo systemctl status nzbget
* nzbget.service - NZBGet Daemon
   Loaded: loaded (/etc/systemd/system/nzbget.service; enabled)
   Active: failed (Result: start-limit) since Sat 2016-11-05 10:27:48 +03; 4min 1s ago
  Process: 1194 ExecStop=/opt/nzbget/nzbget -Q (code=exited, status=0/SUCCESS)
  Process: 1147 ExecStart=/opt/nzbget/nzbget -c /opt/nzbget/nzbget.conf -D (code=exited, status=0/SUCCESS)
 Main PID: 1157 (code=killed, signal=ABRT)

Nov 05 10:27:48 osmc systemd[1]: Unit nzbget.service entered failed state.
Nov 05 10:27:48 osmc systemd[1]: nzbget.service holdoff time over, scheduling restart.
Nov 05 10:27:48 osmc systemd[1]: Stopping NZBGet Daemon...
Nov 05 10:27:48 osmc systemd[1]: Starting NZBGet Daemon...
Nov 05 10:27:48 osmc systemd[1]: nzbget.service start request repeated too quickly, refusing to start.
Nov 05 10:27:48 osmc systemd[1]: Failed to start NZBGet Daemon.
Nov 05 10:27:48 osmc systemd[1]: Unit nzbget.service entered failed state.

What is going on here? What else can I do to get it working again? I can post other outputs or logs if needed. Thanks in advance!

can you post your service file for the service ? curious if you defined user for the service that might help

This is the service file:

[Unit]
Description=NZBGet Daemon
After=network.target
RequiresMountsFor=/mnt/media

[Service]
User=osmc
Group=osmc
Type=forking
ExecStart=/opt/nzbget/nzbget -c /opt/nzbget/nzbget.conf -D
ExecStop=/opt/nzbget/nzbget -Q
ExecReload=/opt/nzbget/nzbget -O
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

This is the output for journalctl -xn:

sudo journalctl -xn
– Logs begin at Sat 2016-11-05 10:27:20 +03, end at Sat 2016-11-05 12:42:44 +03. –
Nov 05 12:41:50 osmc mono[310]: at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.ProcessRequest[List1] Nov 05 12:41:50 osmc mono[310]: --- End of inner exception stack trace --- Nov 05 12:41:50 osmc mono[310]: at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.ProcessRequest[List1]
Nov 05 12:41:50 osmc mono[310]: at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.GetHistory (NzbDrone.C
Nov 05 12:41:50 osmc mono[310]: at NzbDrone.Core.Download.Clients.Nzbget.Nzbget.GetHistory () [0x00000] in
Nov 05 12:42:00 osmc sudo[4162]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -x
Nov 05 12:42:00 osmc sudo[4162]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
Nov 05 12:42:41 osmc sudo[4162]: pam_unix(sudo:session): session closed for user root
Nov 05 12:42:44 osmc sudo[4179]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -x
Nov 05 12:42:44 osmc sudo[4179]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)

Spent an hour searching for other people experiencing a similar problem, but found the solution. The queue was corrupted. I removed the QueueDir in the NZBGet folder and now it’s fine again.

1 Like

Mark as solution then :slight_smile: