Update troubles, need some guidance

Hi All,

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?

Thanks in advance for any responses.

Here is the log I found:

15-12-27 22:28:21.9|Info|InstallUpdateService|Downloading update 2.0.0.3688
15-12-27 22:28:37.9|Info|InstallUpdateService|Verifying update package
15-12-27 22:28:38.1|Info|InstallUpdateService|Update package verified successfully
15-12-27 22:28:38.1|Info|InstallUpdateService|Extracting Update package
15-12-27 22:28:38.8|Info|InstallUpdateService|Update package extracted successfully
15-12-27 22:28:38.8|Info|BackupService|Starting Backup
15-12-27 22:28:40.0|Info|InstallUpdateService|Preparing client
15-12-27 22:28:40.1|Info|InstallUpdateService|Starting update client /tmp/nzbdrone_update/NzbDrone.Update.exe
15-12-27 22:28:40.1|Info|InstallUpdateService|Sonarr will restart shortly.

You can also look at the update logs to see if there was an error installing the update that prevented Sonarr from starting.

Re-installating shouldn’t cause any loss of information in Sonarr if the default folder locations were used, but you could backup to be safe.

Thanks for the reply and suggestions. Silly question, but where would I find the update logs for a default installation?

RIP Ian Murdock

They should be in the same parent folder and the logs are.

Markus101: found the log.

Looks like I have a permission issue, any suggestions on how to address it?

The complete update log to be posted in two sections due to character limit per post

Post it to hastebin next time.

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?

Yeah, install the latest with apt-get, then fix the permissions.

The issue will be visible after updating through Sonarr, but the cause is due to upgrading previously using apt-get.

No, only if the nzbdrone package was updated.

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 :smiley:

I finished up with chmod -R 777 /opt/NzbDrone as suggested and it appears all is good.

Thanks again for your help and your patiences.

1 Like

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