OSX: Update fails due to permissions

Trying to upgrade Sonarr using the WebUI from 2.0.0.4326 to 2.0.0.4374 fails with (from the logs):

Message:
Update process failed: Cannot install update because startup folder ‘/private/var/folders/bc/5qkhs32925qdnz_613_tjs340000gn/T/AppTranslocation/F72A8935-B937-4AEA-9E8C-119145FBCE54/d/Sonarr.app/Contents/MacOS’ is not writable by the user ‘jimbrannlund’.

Exception:
NzbDrone.Core.Update.UpdateFolderNotWritableException: Cannot install update because startup folder ‘/private/var/folders/bc/5qkhs32925qdnz_613_tjs340000gn/T/AppTranslocation/F72A8935-B937-4AEA-9E8C-119145FBCE54/d/Sonarr.app/Contents/MacOS’ is not writable by the user ‘jimbrannlund’.
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x0024e] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:135
at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00071] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:214

However, ‘ls -l’-ing the startup folder gives me:
drwxr-xr-x@ 69 jimbrannlund staff 2346 Oct 15 20:05 MacOS

So permissions seems to be correct…?

For the hell of it, I tried:
sudo chown -hR jimbrannlund

But that gives me:
chown: : Read-only file system

OSX version is 10.12 and Sonarr is started automagically when my mac-mini boots (login items).

What to do?

It looks like Sierra has added a new security feature that moves apps run from the Downloads folder to a randomized path to prevent nefarious actions.

You’ll need to stop Sonarr, remove the item from login items and then use Finder to move Sonarr.app to another location (Applications is the standard location), then run Sonarr and add the login item again. That should avoid the secure path randomizer and allow updating.

Thanks! That fixed it.

1 Like

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