Synology "Access to the path is denied" for SABnzbd downloads

Sonarr version (exact version): 3.0.6.1342
Mono version (if Sonarr is not running on Windows): 5.20.1.34-17
OS: Synology DSM 7.0.1-42218
Description of issue:
I have Sonarr picking up files downloaded by Transmission and SABnzbd. It seems that it has no issues with Transmission but it throws the following for SABnzbd files:

Couldn't import episode [path to download]: Access to the path is denied.
System.UnauthorizedAccessException: Access to the path is denied.
  at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00116] in <4a89e81f3d9644e6a5d556824ae3eaf1>:0 
  at NzbDrone.Common.Disk.DiskProviderBase.MoveFileInternal (System.String source, System.String destination) [0x00000] in <a1cd7a1bf9df40cfa6971ab77142a163>:0 
  at NzbDrone.Mono.Disk.DiskProvider.MoveFileInternal (System.String source, System.String destination) [0x000a3] in <6da83335850843c8b31623acb76e1969>:0 
  at NzbDrone.Common.Disk.DiskProviderBase.MoveFile (System.String source, System.String destination, System.Boolean overwrite) [0x000e1] in <a1cd7a1bf9df40cfa6971ab77142a163>:0 
  at NzbDrone.Common.Disk.DiskTransferService.TryMoveFileVerified (System.String sourcePath, System.String targetPath, System.Int64 originalSize) [0x00047] in <a1cd7a1bf9df40cfa6971ab77142a163>:0 
  at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite) [0x004b9] in <a1cd7a1bf9df40cfa6971ab77142a163>:0 
  at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, System.Collections.Generic.List`1[T] episodes, System.String destinationFilePath, NzbDrone.Common.Disk.TransferMode mode) [0x00129] in <2bc41dd24a3e4961be251c9a3820214d>:0 
  at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x00054] in <2bc41dd24a3e4961be251c9a3820214d>:0 
  at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean copyOnly) [0x001b0] in <2bc41dd24a3e4961be251c9a3820214d>:0 
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List`1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode) [0x0029b] in <2bc41dd24a3e4961be251c9a3820214d>:0 

I’ve spent a lot of time looking for answers but they all seem to be from 2018 and refer to a sc-download group that doesn’t appear to exist anymore.

From what I can see, Sonarr has permission to write to both the download and destination directories, however, it does not have permission to modify the folders downloaded by SABnzbd into the download directory. Those are owned by sc-sabnzdb:synocommunity with permissions drwxr-xr-x

Given those permissions, even adding the Sonarr user to the synocommunity group wouldn’t be helpful. Is this a problem anyone has solved already?

Solution
I solved this problem by going to Folders in the SABnzbd settings and setting Permissions for completed downloads to 775

It looks like the default is 755 which means that only SABnzbd has permission to change the files whereas 775 give the group, which Sonarr is apart, write permission as well

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