I understand what has happened here, I’m just hoping there’s an easy fix for it. When NZBDrone attempted to do the latest update it failed.
14-10-28 01:10:50.8|Debug|ProcessProvider|Starting mono /opt/NzbDrone/NzbDrone.exe --nobrowser
14-10-28 01:10:50.8|Fatal|UpdateApp|An error has occurred while applying update package.
System.UnauthorizedAccessException: Access to the path "/opt/NzbDrone/NzbDrone.Update/Exceptron.Client.dll" is denied.
at System.IO.File.Delete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.FileInfo.CopyTo (System.String destFileName, Boolean overwrite) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileInfo:CopyTo (string,bool)
at NzbDrone.Common.Disk.DiskProviderBase.TransferFolder (System.String source, System.String target, TransferAction transferAction) [0x00000] in <filename unknown>:0
at NzbDrone.Common.Disk.DiskProviderBase.TransferFolder (System.String source, System.String target, TransferAction transferAction) [0x00000] in <filename unknown>:0
at NzbDrone.Common.Disk.DiskProviderBase.CopyFolder (System.String source, System.String destination) [0x00000] in <filename unknown>:0
at NzbDrone.Update.UpdateEngine.BackupAndRestore.Restore (System.String target) [0x00000] in <filename unknown>:0
at NzbDrone.Update.UpdateEngine.InstallUpdateService.Start (System.String installationFolder, Int32 processId) [0x00000] in <filename unknown>:0
at NzbDrone.Update.UpdateApp.Start (System.String[] args) [0x00000] in <filename unknown>:0
at NzbDrone.Update.UpdateApp.Main (System.String[] args) [0x00000] in <filename unknown>:0
When I checked the directories the NzbDrone.Update directory was owned by root. I run NzbDrone under the user media just like the rest of my apps (plex, CouchPotato, Sabnzb) so that there are no permissions issues between them. I believe this is the source of the update issue. Is there any way to make the update process run under the same user as the application service?