Windows Server 2016 Permission Problems

Sonarr version (exact version): 2.0.0.5252
Mono version (if Sonarr is not running on Windows):
OS:
Debug logs:

18-10-11 13:41:51.3|Debug|ImportDecisionMaker|File accepted
18-10-11 13:41:51.3|Debug|Parser|Parsing string ‘The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS’
18-10-11 13:41:51.3|Trace|Parser|^(?.+?)(?:(?:-_\W)+S?(?(?<!\d+)(?:\d{1,2})(?!\d+))(?:[ex]|\W[ex]){1,2}(?\d{2,3}(?!\d+))(?:(?:-|[ex]|\W[ex]|_){1,2}(?\d{2,3}(?!\d+)))*)\W?(?!\)
18-10-11 13:41:51.3|Debug|Parser|Episode Parsed. The Big Bang Theory - S11E19
18-10-11 13:41:51.4|Debug|Parser|Language parsed: German
18-10-11 13:41:51.4|Debug|QualityParser|Trying to parse quality for The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS
18-10-11 13:41:51.4|Debug|Parser|Quality parsed: WEBDL-720p v1
18-10-11 13:41:51.4|Debug|Parser|Release Group parsed: TVS
18-10-11 13:41:51.5|Debug|MediaInfoFormatter|Formatting audio channels using ‘AudioChannelPositions’, with a value of: ‘3/2/0.1’
18-10-11 13:41:51.5|Debug|EpisodeFileMovingService|Moving episode file: D:\Downloads\tv\The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS\The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS\tvs-tbbt-dd51-ded-dl-7p-azhd-x264-1119.mkv to \mediaserver.mydomain.local\shared_media\videos\serien\The Big Bang Theory\S11\The.Big.Bang.Theory.S11E19.WEBDL-720p.mkv
18-10-11 13:41:51.5|Debug|DiskTransferService|Move [D:\Downloads\tv\The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS\The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS\tvs-tbbt-dd51-ded-dl-7p-azhd-x264-1119.mkv] > [\mediaserver.mydomain.locall\shared_media\videos\serien\The Big Bang Theory\S11\The.Big.Bang.Theory.S11E19.WEBDL-720p.mkv]
18-10-11 13:41:51.6|Debug|DiskTransferService|Rolling back incomplete file move [D:\Downloads\tv\The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS\The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS\tvs-tbbt-dd51-ded-dl-7p-azhd-x264-1119.mkv] to [\mediaserver.mydomain.local\shared_media\videos\serien\The Big Bang Theory\S11\The.Big.Bang.Theory.S11E19.WEBDL-720p.mkv].
18-10-11 13:41:54.6|Trace|DiskProviderBase|Deleting file: \mediaserver.mydomain.local\shared_media\videos\serien\The Big Bang Theory\S11\The.Big.Bang.Theory.S11E19.WEBDL-720p.mkv
18-10-11 13:41:54.6|Trace|Http|Req: 93 [POST] /api/command
18-10-11 13:41:54.6|Warn|ImportApprovedEpisodes|Couldn’t import episode D:\Downloads\tv\The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS\The.Big.Bang.Theory.S11E19.Das.Machtwechsel-Modell.German.DD51.Dubbed.DL.720p.AmazonHD.x264-TVS\tvs-tbbt-dd51-ded-dl-7p-azhd-x264-1119.mkv

[v2.0.0.5252] System.UnauthorizedAccessException: Der Zugriff auf den Pfad wurde verweigert.
** bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)**
** bei System.IO.__Error.WinIOError()**
** bei System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)**
** bei NzbDrone.Common.Disk.DiskProviderBase.MoveFileInternal(String source, String destination) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskProviderBase.cs:Zeile 232.**
** bei NzbDrone.Common.Disk.DiskProviderBase.MoveFile(String source, String destination, Boolean overwrite) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskProviderBase.cs:Zeile 227.**
** bei NzbDrone.Common.Disk.DiskTransferService.TryMoveFileVerified(String sourcePath, String targetPath, Int64 originalSize) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:Zeile 577.**
** bei NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite, DiskTransferVerificationMode verificationMode) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:Zeile 321.**
** bei NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite, Boolean verified) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:Zeile 196.**
** bei NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile(EpisodeFile episodeFile, Series series, List1 episodes, String destinationFilePath, TransferMode mode) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:Zeile 119.** ** bei NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:Zeile 79.** ** bei NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:Zeile 76.** ** bei NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem, ImportMode importMode) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:Zeile 103.**

18-10-11 13:41:54.7|Trace|EventAggregator|Publishing TrackedDownloadRefreshedEvent
18-10-11 13:41:54.7|Trace|CommandQueueManager|Publishing ManualImport
18-10-11 13:41:54.7|Trace|EventAggregator|TrackedDownloadRefreshedEvent -> QueueService

Description of issue:
I used sonarr for a long period running on a centos server. Because I liked to changed my Lab-Setup I recently switched to a Windows Server 2016 where I installed Sonarr and Sabnzbd.

Sabnzbd runs as a service under the local system user. Sonarr needs access to my NAS and runs with a specific serviceaccount which is a domain user and has read/write access to the media folders on my mediaserver (Synology).

Sabnzbd downloads to D:\Downloads\tv. D:\ is a local disc (RAID0) The Permissions here look normal and also newly added files can be moved/deleted by any other domain user.

Sonarr is only monitoring the sabnzbd client (No NZBDrone folder) The whole process works fine until the file gets marked for processingt. For some reason it fails to access the files on the local folder D:\

I allready tried a lot of things. Even made a local share and tried to work with UNC Paths instead of direct paths. I also tried a mapping from D:\ to \hostname. Every attempt lead to the same error.

Running as a Service or running in console also has no impact. Same Error.

Thx a lot for you help

Regards,

Doemer

arrrrrrgh

After posting the thread I realized that its most likely related to a problem on the NAS SMB Settings instead of the a problem with accessing the local drive.

The file move was working for another show yesterday after I finished the setup. So I checked the SMB Rights for both shares and voila they don’t match. For some reason the SMB Rightmanagement is not correctly passthrough the structure of this specific share.

I think fixing this issue will solve my problems.

Regards,

Doemer

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