Mono version 6.8.0 still has “Access to the path is denied.” bug

Sonarr version (exact version): 3.0.3.688
Mono version (if Sonarr is not running on Windows): 6.8.0.96
OS: Raspbian 10 Buster
Description of issue:
I am using Raspbian 10 (Buster) running on a RasPi4 4GB. Sonarr is at the latest beta () and the TV Series content is stored onto a SMB 2.1 network share (Win10 server using NTFS).

Mono version is at 6.8 since Buster has only 6.x snapshots available (https://download.mono-project.com/repo/debian/dists/stable-raspbianbuster/snapshots/, using the instructions here -> https://www.mono-project.com/docs/getting-started/install/linux/#accessing-older-releases).

I also get the following error when the Transmission torrent client completes a transfer and Sonarr tries to copy it to the respective series folder:

Jan 18 14:41:09 ha mono[5926]: [Warn] ImportApprovedEpisodes: Couldn't import episode /mnt/download/sonarr/TestSeries.S01E01.720p.WEB.h264.mkv
Jan 18 14:41:09 ha mono[5926]: [v3.0.3.688] System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Operation not permitted
Jan 18 14:41:09 ha mono[5926]:    --- End of inner exception stack trace ---
Jan 18 14:41:09 ha mono[5926]:   at Interop.ThrowExceptionForIoErrno (Interop+ErrorInfo errorInfo, System.String path, System.Boolean isDirectory, System.Func`2[T,TResult] errorRewriter) [0x00014] in <c453bf849bb84e719dbec0475e99db95>:0
Jan 18 14:41:09 ha mono[5926]:   at Interop.CheckIo (System.Int64 result, System.String path, System.Boolean isDirectory, System.Func`2[T,TResult] errorRewriter) [0x0000a] in <c453bf849bb84e719dbec0475e99db95>:0
Jan 18 14:41:09 ha mono[5926]:   at Interop.CheckIo (System.Int32 result, System.String path, System.Boolean isDirectory, System.Func`2[T,TResult] errorRewriter) [0x00000] in <c453bf849bb84e719dbec0475e99db95>:0
Jan 18 14:41:09 ha mono[5926]:   at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x0005c] in <c453bf849bb84e719dbec0475e99db95>:0
Jan 18 14:41:09 ha mono[5926]:   at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00062] in <c453bf849bb84e719dbec0475e99db95>:0
Jan 18 14:41:09 ha mono[5926]:   at NzbDrone.Common.Disk.DiskProviderBase.CopyFileInternal (System.String source, System.String destination, System.Boolean overwrite) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Disk\DiskProviderBase.cs:209
Jan 18 14:41:09 ha mono[5926]:   at NzbDrone.Mono.Disk.DiskProvider.CopyFileInternal (System.String source, System.String destination, System.Boolean overwrite) [0x0007b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Mono\Disk\DiskProvider.cs:171
Jan 18 14:41:09 ha mono[5926]:   at NzbDrone.Common.Disk.DiskProviderBase.CopyFile (System.String source, System.String destination, System.Boolean overwrite) [0x000ba] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Disk\DiskProviderBase.cs:204
Jan 18 14:41:09 ha mono[5926]:   at NzbDrone.Common.Disk.DiskTransferService.TryCopyFileTransactional (System.String sourcePath, System.String targetPath, System.Int64 originalSize) [0x0010a] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Disk\DiskTransferService.cs:497
Jan 18 14:41:09 ha mono[5926]:   at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite, NzbDrone.Common.Disk.DiskTransferVerificationMode verificationMode) [0x003c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Disk\DiskTransferService.cs:324
Jan 18 14:41:09 ha mono[5926]:   at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite, System.Boolean verified) [0x0000e] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Disk\DiskTransferService.cs:215
Jan 18 14:41:09 ha mono[5926]:   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 M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:119
Jan 18 14:41:09 ha mono[5926]:   at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.CopyEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x0006c] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:94
Jan 18 14:41:09 ha mono[5926]:   at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean copyOnly) [0x00196] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:73
Jan 18 14:41:09 ha mono[5926]:   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) [0x0029d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:111

In addition, when the transfer is completed, the log is flooded with:

Jan 18 15:54:40 ha mono[5926]: [Error] DownloadedEpisodesImportService: Import failed, path does not exist or is not accessible by Sonarr: /mnt/download/sonarr/TestSeries.S01E01.720p.WEB.h264.mkv. Ensure the path exists and the user running Sonarr has the correct permissions to access this file/folder

It only clears when Sonarr is restarted and it resyncs with Transmission.

3 posts were split to a new topic: Files not importing Windows Service

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