Hi,
I had Sonarr running before on my synology box and needed to reinstall it just now from the synocommunity package and wanted to update to the latest version 2.0.0.4374.
However I get following permission error
Error occurred while executing task ApplicationUpdate: Access to the
path
"/tmp/nzbdrone_update/NzbDrone/UI/Content/FontAwesome/FontAwesome.otf"
is denied.
full log on this
System.UnauthorizedAccessException: Access to the path "/tmp/nzbdrone_update/NzbDrone/UI/Content/FontAwesome/FontAwesome.otf" is denied.
at System.IO.File.Delete (System.String path) [0x0007b] in /source/mono-3.x/mcs/class/corlib/System.IO/File.cs:166
at System.IO.Directory.RecursiveDelete (System.String path) [0x00057] in /source/mono-3.x/mcs/class/corlib/System.IO/Directory.cs:167
at System.IO.Directory.RecursiveDelete (System.String path) [0x0002d] in /source/mono-3.x/mcs/class/corlib/System.IO/Directory.cs:162
at System.IO.Directory.RecursiveDelete (System.String path) [0x0002d] in /source/mono-3.x/mcs/class/corlib/System.IO/Directory.cs:162
at System.IO.Directory.RecursiveDelete (System.String path) [0x0002d] in /source/mono-3.x/mcs/class/corlib/System.IO/Directory.cs:162
at System.IO.Directory.RecursiveDelete (System.String path) [0x0002d] in /source/mono-3.x/mcs/class/corlib/System.IO/Directory.cs:162
at System.IO.Directory.Delete (System.String path, Boolean recursive) [0x0000c] in /source/mono-3.x/mcs/class/corlib/System.IO/Directory.cs:178
at NzbDrone.Common.Disk.DiskProviderBase.DeleteFolder (System.String path, Boolean recursive) [0x00068] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskProviderBase.cs:222
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x00093] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:90
at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00070] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:207
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand] (NzbDrone.Core.Messaging.Commands.TCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x0008a] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:77
What might be the reason and what do i have to do in order to fix this?
I’ve read this in another thread
but I dont really know how to check the permissions or where to change it. I never used apt-get though so that shouldn’t be a problem.
Thank you!
Zolaci
Update1 on my way to the solution:
I think a user nzbdrone is running Sonarr so i thought I’d give permissions to nzbdrone changed it with > chown -R nzbdrone:users /tmp/nzbdrone_update/NzbDrone/
However that wasn’t a good idea. Now I get following error message
Error occurred while executing task ApplicationUpdate: Access to the path "/tmp/nzbdrone_update/NzbDrone" is denied.
Whats happening here?!
Update2:
changing the tmp folders permission with chown -R nzbdrone /tmp has helped to resolve the issue.