Sonarr DSM 7: file deletion problem

Currently reading
Sonarr DSM 7: file deletion problem

Synology DS216+II
Operating system
  1. Windows

I had a lot of little problems while switching from DSM 6 to DSM 7.

Concerning the Sonarr + Sabnzbd couple, I had to reinstall the Sab package to make it work but I have now a last little problem with Sonarr...

Indeed, Sonarr manages :

1/ to send the info to Sabnzbd to start the download

2/ to get the video in downloads/complete

3/ to copy it in my media file by renaming it

But on the other hand it blocks to delete the file in complete...

I have the following error message:

Couldn't import episode /volume1/downloads/complete/Naked.and.Afraid.S03E07.Playing.With.Fire.1080p.WEB.x264.1-CAFFEiNE-Obfuscated/3486d7328cdb46f9a624f41bb0afd49e.mkv: Access to the path "/volume1/downloads/complete/Naked.and.Afraid.S03E07.Playing.With.Fire.1080p.WEB.x264.1-CAFFEiNE-Obfuscated/3486d7328cdb46f9a624f41bb0afd49e.mkv" is denied.

System.UnauthorizedAccessException: Access to the path "/volume1/downloads/complete/Naked.and.Afraid.S03E07.Playing.With.Fire.1080p.WEB.x264.1-CAFFEiNE-Obfuscated/3486d7328cdb46f9a624f41bb0afd49e.mkv" is denied. at System.IO.File.Delete (System.String path) [0x00073] in <4a89e81f3d9644e6a5d556824ae3eaf1>:0 at NzbDrone.Common.Disk.DiskProviderBase.DeleteFile (System.String path) [0x00067] in <a1cd7a1bf9df40cfa6971ab77142a163>:0 at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite) [0x00446] 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

Well, I've also made some progress on this subject...

It seems that there is a permission problem for sc-nzbdrone (the user of sonarr)

the file moved by sabnzbd from the incomplete folder -> to complete show the permissions for sc-sabnzbd who moved the file and Everyone

In Permission/Advanced Options if I do :
- include inherited permissions

and - Make inherited permissions explicit

sc-nzbdrone (the user of sonarr) becomes apparent in the permission list and if I restart the Sonarr mill, Sonarr manages to delete the file.

Do you know how I can fix this problem without having to re-assign permissions manually?


Translated with (free version)

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to! is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!