Permission errors during import

Trying to import a show. Have had 0 problems up until today, haven’t changed any permissions or user settings recently. Running Ubuntu 12.04 and using Transmission.

Message:

Couldn’t import episode /home/staging/downloads/tv/Brooklyn.Nine-Nine.S03E11.720p.HDTV.x264-KILLERS[rarbg]/Brooklyn.Nine-Nine.S03E11.720p.HDTV.x264-KILLERS.mkv: Access to the path “/home/staging/downloads/tv/Brooklyn.Nine-Nine.S03E11.720p.HDTV.x264-KILLERS[rarbg]/Brooklyn.Nine-Nine.S03E11.720p.HDTV.x264-KILLERS.mkv” or “/home/media/tv/Brooklyn Nine-Nine/Season 3/Brooklyn.Nine-Nine.-.S03E11.-.Hostage.Situation.HDTV-720p.mkv.partial~” is denied.

Exception:

System.UnauthorizedAccessException: Access to the path “/home/staging/downloads/tv/Brooklyn.Nine-Nine.S03E11.720p.HDTV.x264-KILLERS[rarbg]/Brooklyn.Nine-Nine.S03E11.720p.HDTV.x264-KILLERS.mkv” or “/home/media/tv/Brooklyn Nine-Nine/Season 3/Brooklyn.Nine-Nine.-.S03E11.-.Hostage.Situation.HDTV-720p.mkv.partial~” is denied.
at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) <0x7f75445598a0 + 0x004d1> in :0
at NzbDrone.Common.Disk.DiskProviderBase.CopyFile (System.String source, System.String destination, Boolean overwrite) [0x000a8] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskProviderBase.cs:191
at NzbDrone.Common.Disk.DiskTransferService.TryCopyFileTransactional (System.String sourcePath, System.String targetPath, Int64 originalSize) [0x0003d] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskTransferService.cs:302

I’ve chmod 777’d the downloaded folder and contents and the destination folder, and copied the video to the destination folder using the same user account that runs Sonarr with no issues.

What about the permissions on /home/media/tv/Brooklyn Nine-Nine/Season 3/Brooklyn.Nine-Nine.-.S03E11.-.Hostage.Situation.HDTV-720p.mkv.partial~ Does it exist?

Either the source or the destination file was the issue, maybe a partial transfer interrupted and Sonarr wasn’t able to import it, though it should clean up and go from where it left off.

Partial file doesn’t exist. Just checked my upstart script and realised that I’d copied the upstart script from Linux, added ‘setgid media’ at the top and left ‘setgid nogroup’ at the bottom, so Sonarr didn’t actually have the right permissions.

Thanks for your help!

1 Like

If you are using Ubuntu, the upstart script sets the group to none as default. It took me ages to hunt this down. Even if you su as the user sonarr is using, you will not get the same result, as upstart can set the gid separately. Worth a shot!

A post was split to a new topic: Permission Errors during import on Windows

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