Sonarr Version 2.0.0.5301
Mono Version 5.18.0.240
Synology DSM 6.2.1-23824 Update 4 - docker container: linuxserver/lidarr:latest
Debug logs:
Unable to apply permissions to: /my/file/name.mkv: Error setting file permissions: EPERM
NzbDrone.Mono.Disk.LinuxPermissionsException: Error setting file permissions: EPERM
at NzbDrone.Mono.Disk.DiskProvider.SetPermissions (System.String path, System.String mask) [0x0003e] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Mono\Disk\DiskProvider.cs:204
at NzbDrone.Mono.Disk.DiskProvider.SetPermissions (System.String path, System.String mask, System.String user, System.String group) [0x00000] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Mono\Disk\DiskProvider.cs:74
at NzbDrone.Core.MediaFiles.MediaFileAttributeService.SetMonoPermissions (System.String path, System.String permissions) [0x0000f] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\MediaFileAttributeService.cs:88
Description of issue:
I have sonarr, radarr and plex running in docker containers on my synology nas. I’d like to keep my file permissions and ownership clean in my media directories to avoid problems down the road. However I don’t want to run sonarr as root.
I’ve created a sonarr user and configured the PUID/PGID in docker. I’ve given the sonarr user full access to the media directory, including changing permissions and ownership. I’ve tried inputting the user/group name and the user/group id that I want to change to, but it doesn’t seem to work no matter what I try.
The result when running a file rename on a season directory is interesting… all files in the directory get renamed according to the naming scheme. The video file permissions get set as per the chmod settings, but the other files (nfo, jpg etc) do not. None of the owner/group settings change.
Also, it doesn’t seem to matter what the original owner/group of the file is. I’m fresh out of ideas of what to try. Hope someone can help?