Hey guys! First thanks for the awesome software, really amazed by the polish.
I’m having an annoying issue with Sonarr, it’s basically unable to move / rename any of the downloaded files. It seems to be a permissions issue, but I’m 100% sure that those should work.
Sonarr is running as user
media, and the folders it has to access all have the
media group read, write and execute bit set.
I have tried using
su to use the
nzbdrone user, and I can manually navigate to those folders and create files.
However my log is littered with statements like these:
15-10-5 16:27:10.8|Warn|ImportApprovedEpisodes|Couldn't import episode /etc/sabnzbd/Downloads/complete/The.Borgias.S03E01.720p.BluRay.x264-DEMAND/borgias.s03e01.720p.bluray.x264-demand.mkv System.UnauthorizedAccessException: Access to the path is denied. at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00000] in <filename unknown>:0 at NzbDrone.Common.Disk.DiskProviderBase.MoveFile (System.String source, System.String destination, Boolean overwrite) [0x000d0] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskProviderBase.cs:210 at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, TransferMode mode, Boolean overwrite, Boolean verified) [0x003a6] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskTransferService.cs:202 15-10-5 16:27:07.5|Error|VideoFileInfoReader|Unable to parse media info from file: /etc/sabnzbd/Downloads/complete/Modern.Family.S02E13.HDTV.XviD-LOL/modern.family.213.hdtv-lol.avi System.UnauthorizedAccessException: Access to the path "/etc/sabnzbd/Downloads/complete/Modern.Family.S02E13.HDTV.XviD-LOL/modern.family.213.hdtv-lol.avi" is denied. at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) [0x00000] in <filename unknown>:0 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess) at NzbDrone.Common.Disk.DiskProviderBase.OpenReadStream (System.String path) [0x0001b] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskProviderBase.cs:371 at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo (System.String filename) [0x00049] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\MediaInfo\VideoFileInfoReader.cs:46
I know how to work with linux users, groups and permissions, both Sickbeard and Couchpotato are setup with their own users, and all read and write to the same folders just by being part of the
I have even tried to set the folders directly as the
nzbdrone user. In desperation, I’ve tried setting the folders and files to
777 permissions, basically world read and writable. Has not worked either
Am I the only user with this problem? Maybe I’m the only one that doesn’t run Sonarr as root?
Any help would be appreciated