Unable to setup as service on Ubuntu 18.04

Sonarr version (exact version):
2.0.0.5338
Mono version (if Sonarr is not running on Windows):
4.6.2
OS:
Ubuntu 18.04

Description of issue:
I am following the instructions at https://github.com/Sonarr/Sonarr/wiki/Autostart-on-Linux#initd-script-debian and it isn’t working for me. I am able to start Sonarr directly with /usr/bin/mono --debug /opt/NzbDrone/NzbDrone.exe -nobrowser but get the following when adding as a service and then running sudo systemctl status sonarr.service

● sonarr.service - Sonarr Daemon
Loaded: loaded (/etc/systemd/system/sonarr.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-02-19 21:30:26 CST; 14min ago
Main PID: 1216 (Main)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/sonarr.service
└─1216 /usr/bin/mono --debug /opt/NzbDrone/NzbDrone.exe -nobrowser

Feb 19 21:30:26 plex-server systemd[1]: Started Sonarr Daemon.
Feb 19 21:30:30 plex-server mono[1216]: [Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe
Feb 19 21:30:31 plex-server mono[1216]: [Fatal] ConsoleApp: EPIC FAIL!
Feb 19 21:30:31 plex-server mono[1216]: [v2.0.0.5338] NzbDrone.Common.Exceptions.SonarrStartupException
Feb 19 21:30:31 plex-server mono[1216]: at NzbDrone.Common.EnvironmentInfo.AppFolderFactory.Register
Feb 19 21:30:31 plex-server mono[1216]: at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.Environment
Feb 19 21:30:31 plex-server mono[1216]: at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0
Feb 19 21:30:31 plex-server mono[1216]: Press enter to exit…
Feb 19 21:30:32 plex-server mono[1216]: Non-recoverable failure, waiting for user intervention…

It seems it should work, but isn’t.

What do the debug logs show?

Could be a permissions issue, but grasping at straws given the incomplete error.

Thanks. It was a permission issue.

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