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.
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
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