Sonarr Fails to Copy Completed Downloads

Sonarr version (exact version): 2.0.0.4689
Mono version (if Sonarr is not running on Windows): v4.8.1
OS: Ubuntu 16.04
((Debug logs)): https://pastebin.com/KW1VHa49
Description of issue:
Sonarr refuses to import the files to the shows location.

I’m running samba with a zfs array

10x 6TB Drives in RaidZ2, with 2 parity drives. I’ve enabled sonarr to use the noobody/nogroup as the chown/chmod, but nothings worked. I’ve got samba setup to use nobody/nogroup because I have a Windows Desktop, and the rest of my network is Linux. I was having issues with plex streaming stuff.

Any suggestions?

That won’t make a difference as Sonarr can’t import the file and it changes the permissions after importing.

Access to the path "/storagepool/storagepool/Downloads/Chicago.Justice.S01E10.720p.HDTV.x264-AVS[rarbg]/Chicago.Justice.S01E10.720p.HDTV.x264-AVS.mkv" or "/storagepool/storagepool/TVShows/Chicago Justice/Season 1/Chicago Justice - S01E10 - Drill HDTV-720p.mkv.partial~" is denied.

One of those paths is the culprit, likely that SOnarr can’t write to the destination, though if it’s hardlinking the files it could be write access to the source file (I can’t tell exactly what Sonarr is doing because the logs are incomplete).

17-4-25 22:27:35.5|Warn|ImportApprovedEpisodes|Couldn’t import episode /storagepool/storagepool/Downloads/Marvels.Agents.of.S.H.I.E.L.D.S04E19.720p.HDTV.x264-KILLERS[rarbg]/Marvels.Agents.of.S.H.I.E.L.D.S04E19.720p.HDTV.x264-KILLERS.mkv

[v2.0.0.4689] System.UnauthorizedAccessException: Access to the path “/storagepool/storagepool/Downloads/Marvels.Agents.of.S.H.I.E.L.D.S04E19.720p.HDTV.x264-KILLERS[rarbg]/Marvels.Agents.of.S.H.I.E.L.D.S04E19.720p.HDTV.x264-KILLERS.mkv” or “/storagepool/storagepool/TVShows/Marvel’s Agents of S.H.I.E.L.D/Season 4/Marvel’s Agents of S.H.I.E.L.D. - S04E19 - All the Madame’s Men HDTV-720p.mkv.partial~” is denied.
at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x001c4] in :0
at NzbDrone.Common.Disk.DiskProviderBase.CopyFile (System.String source, System.String destination, System.Boolean overwrite) [0x000bc] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Disk\DiskProviderBase.cs:203
at NzbDrone.Common.Disk.DiskTransferService.TryCopyFileTransactional (System.String sourcePath, System.String targetPath, System.Int64 originalSize) [0x0003e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Disk\DiskTransferService.cs:426

Here’s the full log, at least what I think is the full log.

I was speaking to a Linux Sys Admin I know, it looks like the ownership is to someone else, but guests are allowed to read/write, however Sonarr isn’t a guest. So it can’t write. I’ll see what he says tomorrow when he’s sobered up, and I’ll post back the answers here, for others if they run into the same problem.

In the end, it was a permissions issue. The files were owned by nobody:nogroup, I changed them to dreadstarx:skynet, and then added the users to the group skynet. Then I added those users to the samba group. Everything works perfectly now.

Windows doesn’t have anymore hurp a durp stuff either.

1 Like

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