Sonarr fails to update - leaves the install unusable

This is the second time its happened in the last month or so, but usually its perfectly fine doing the auto updates,

when the update fails, his install is broken and the service cannot be started

His OS in Windows 7 Pro SP1 64bit.

seems like the permissions are not correct when it copyings it from the windows\temp folder into the programdata folder for nzbdrone.exe from the logs.

http://hastebin.com/gopifebipo.tex

What steps do you need to take to get it going again?
Is the service still running?

It looks like something is locking the executable or service and then it fails to roll back.

no the service wont start when it happens

to resolve i had to copy the bin folder from my sonarr install over to his to get it up and running again

not sure whats locking the executable tho

the logs say to me

it stopped the processes ok
did a backup of the bin folder etc ok
deleted the contents of programdata\nzbdrone ok

then it fails on
15-8-17 17:02:05.4|Debug|DiskTransferService|Copy [C:\Windows\TEMP\nzbdrone_update\NzbDrone\NzbDrone.exe] > [C:\ProgramData\NzbDrone\bin\NzbDrone.exe]
15-8-17 17:02:05.4|Trace|DiskProviderBase|Deleting file: C:\ProgramData\NzbDrone\bin\NzbDrone.exe

then i dont understand this part:

15-8-17 17:02:05.7|Debug|DiskTransferService|Copy [C:\Windows\TEMP\nzbdrone_update\nzbdrone_backup\NzbDrone.exe] > [C:\ProgramData\NzbDrone\bin\NzbDrone.exe]
15-8-17 17:02:05.7|Trace|DiskProviderBase|Deleting file: C:\ProgramData\NzbDrone\bin\NzbDrone.exe

restores the file then deleted it? there is no nzbdrone.exe in his bin folder in the end…

any idea? same thing happened again on this machine for last update, update process fails,

missing nzbdrone.exe from the bin dir.

http://hastebin.com/ifuvizipay.tex

seems like it copies it, then deletes it according to the log…

15-8-26 17:02:06.0|Debug|DiskTransferService|Copy [C:\Windows\TEMP\nzbdrone_update\NzbDrone\NzbDrone.exe] > [C:\ProgramData\NzbDrone\bin\NzbDrone.exe]
15-8-26 17:02:06.0|Trace|DiskProviderBase|Deleting file: C:\ProgramData\NzbDrone\bin\NzbDrone.exe

I think thats a red herring, the first issue is the fact that Sonarr attempts to rollback the upgrade because NzbDrone.exe fails to delete:

System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\NzbDrone\bin\NzbDrone.exe' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at NzbDrone.Common.Disk.DiskProviderBase.DeleteFile(String path) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskProviderBase.cs:line 178
   at NzbDrone.Common.Disk.DiskTransferService.ClearTargetPath(String targetPath, Boolean overwrite) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskTransferService.cs:line 240
   at NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite, Boolean verified) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskTransferService.cs:line 135
   at NzbDrone.Common.Disk.DiskTransferService.TransferFolder(String sourcePath, String targetPath, TransferMode mode, Boolean verified) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskTransferService.cs:line 72
   at NzbDrone.Update.UpdateEngine.InstallUpdateService.Start(String installationFolder, Int32 processId) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateEngine\InstallUpdateService.cs:line 102

What are the permissions on NzbDrone.exe seems to be something off with it, but according to the log NzbDrone.Console.exe was running.

Backing Up/Uninstalling/Reinstalling/Restoring, seems to have solved the problem with it failing during update process, but wasn’t able to find the true cause

someone on irc had the same problem a few weeks ago, so thought id update post

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