I know I requested the chown feature but I didn’t know, that you always have to be root to chown and now you can’t chmod either. When I leave the chown User/Group Fields empty(or change it to anything) I get a warning because ‘NzbDrone.Mono.LinuxPermissionsException: Error setting file permissions: EPERM’ is thrown. Thats not the problem. The problem now is, that nzbdrone stops to import the episode to xbmc or to nzbdrone itself but the files are nicely copied to the destination directory.
So I think it’s better to make a second switch (Change chown) or remove the chown User/Group Fields cause no one should run nzbdrone with root.
Sorry I thought mono magically could change the owner without root.
If user or group are left blank then chmod will not be run and the following message will be logged via Trace logging: “User or Group for chown not configured, skipping chown.”
This only happens when Set Permissions is set to Yes:
14-2-11 01:21:29.7|Warn|EpisodeFileMovingService|Unable to set last write time
System.IO.IOException: Invalid parameter
at System.IO.File.SetLastWriteTime (System.String path, DateTime lastWriteTime) [0x00000] in :0
at System.IO.Directory.SetLastWriteTime (System.String path, DateTime lastWriteTime) [0x00000] in :0
at System.IO.Directory.SetLastWriteTimeUtc (System.String path, DateTime lastWriteTimeUtc) [0x00000] in :0
at NzbDrone.Common.Disk.DiskProviderBase.SetFolderWriteTime (System.String path, DateTime time) [0x00000] in :0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, System.String destinationFilename) [0x00000] in :0
14-2-11 01:21:31.2|Warn|ImportApprovedEpisodes|Couldn’t import episode /data/en.serien-unsorted/Person of Interest S03E01 720p WEB-DL/Person.of.Interest.S03E01.720p.WEB-DL.DD5.1.H.264-KiNGS.mkv
NzbDrone.Mono.LinuxPermissionsException: Error setting file permissions: EPERM
at NzbDrone.Mono.DiskProvider.SetPermissions (System.String path, System.String mask, System.String user, System.String group) [0x00000] in :0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.SetPermissions (System.String path, System.String permissions) [0x00000] in :0