First off I am running Ubuntu 15.10 and I am a hobbyist at best when it comes to Linux.
I attempted to update Sonarr from within the app. Since then it will not start, and for the life of me I can no longer find the systemd script I was using to autostart. Nor will it start it with: mono --debug /opt/NzbDrone/NzbDrone.exe.
I looked up the log file and do not see any errors in regards to the update.
So I guess the big question is can I reinstall without loosing my settings and accumulated databases?
If yes great, if not, do I need to do anything specific to the existing system before I reinstall?
You need to make sure the user that is running Sonarr has write access to /opt/NzbDrone. chmod -R 777 /opt/NzbDrone will do it, but gives everyone write access, you could also change the ownership.
Also make sure you don’t use apt-get to upgrade Sonarr as that will break the permissions again.
Thanks for the quick reply and suggestion. Once I change permissions, do I try a reinstall?
Sorry about not using hastebin, I will make sure to do so in the future.
As for apt-get, the upgrade I did that started all of this, was done from within Sonarr. That said, I have run: apt-get update and then apt-get upgrade while installing other packages, could that have caused my issue?
Marcus, thank you for all your help. I’m up and running again!
I tried to reinstall, first making a backup of .config/NzbDrone
then tried to install following the guide and got this:
`$ sudo apt-get install nzbdrone
Reading package lists... Done
Building dependency tree
Reading state information... Done
nzbdrone is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
`
When I tried to start with:
mono --debug /opt/NzbDrone/NzbDrone.exe
I got this:
~$ mono --debug /opt/NzbDrone/NzbDrone.exe
Cannot open assembly '/opt/NzbDrone/NzbDrone.exe': No such file or directory.
So I gave sudo apt-get install --reinstall nzbdrone a shot and that did the trick.
Fired right up with all my settings, no need to restore from backup!
Guess I should have known to go with --reinstall nzbdrone from the get go but hey…I’m learning
I finished up with chmod -R 777 /opt/NzbDrone as suggested and it appears all is good.