sonarr Access to the path is denied

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
angrykid8
Posts: 3
Joined: Sun May 31, 2020 5:11 pm

sonarr Access to the path is denied

Post by angrykid8 »

Hi there, not one for making posts but rather finding it all through google but I honestly can't figure this out. I have mounted a NAS drive to the pi with samba and it can read/make folders in, but sonar seems to be unable to write any new files to the drive, I see them appear and a second later disappear. I want sonar to download the files to the SD card (which it is) and then move the completed file to the NAS (which its trying to do) I literally got the pi just for this so linux and all the commands are extremely foregin to me but I am trying to learn.
[v2.0.0.5344] System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Operation not permitted
--- End of inner exception stack trace ---
at Interop.ThrowExceptionForIoErrno (Interop+ErrorInfo errorInfo, System.String path, System.Boolean isDirectory, System.Func`2[T,TResult] errorRewriter) [0x00014] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
at Interop.CheckIo (System.Int64 result, System.String path, System.Boolean isDirectory, System.Func`2[T,TResult] errorRewriter) [0x0000a] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
at Interop.CheckIo (System.Int32 result, System.String path, System.Boolean isDirectory, System.Func`2[T,TResult] errorRewriter) [0x00000] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x0005c] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
at System.IO.FileSystem.LinkOrCopyFile (System.String sourceFullPath, System.String destFullPath) [0x0006f] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
at System.IO.FileSystem.MoveFile (System.String sourceFullPath, System.String destFullPath) [0x0003a] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00083] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
at NzbDrone.Common.Disk.DiskProviderBase.MoveFileInternal (System.String source, System.String destination) [0x00000] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Mono.Disk.DiskProvider.MoveFileInternal (System.String source, System.String destination) [0x00076] in <0391fbdae99340f5a5d9b7181828ced5>:0
at NzbDrone.Common.Disk.DiskProviderBase.MoveFile (System.String source, System.String destination, System.Boolean overwrite) [0x000e3] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Common.Disk.DiskTransferService.TryMoveFileVerified (System.String sourcePath, System.String targetPath, System.Int64 originalSize) [0x00047] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
at NzbDrone.Common.Disk.DiskTransferService.TryMoveFileTransactional (System.String sourcePath, System.String targetPath, System.Int64 originalSize, NzbDrone.Common.Disk.DiskTransferVerificationMode verificationMode) [0x0018b] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
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) [0x003ce] in <faeb8209b6ff4c15aabf93dc8df43c9f>:0
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 <faeb8209b6ff4c15aabf93dc8df43c9f>: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) [0x0012c] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x0006c] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean copyOnly) [0x0017c] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>: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) [0x00281] in <4d3cc4e5f7ed4ed2814d83bdaf94809e>:0
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: sonarr Access to the path is denied

Post by Joulinar »

Hi,

many thanks for your report. There is a know issue on sonarr + mono v6 using cifs mounts. Probably you are hit by this https://github.com/MichaIng/DietPi/issues/3529

A solution could be to try mounting the external share with full r/w permissions or to upgrade sonarr V2 to sonarr V3 (beta status)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
angrykid8
Posts: 3
Joined: Sun May 31, 2020 5:11 pm

Re: sonarr Access to the path is denied

Post by angrykid8 »

Joulinar wrote: Sun May 31, 2020 5:29 pm Hi,

many thanks for your report. There is a know issue on sonarr + mono v6 using cifs mounts. Probably you are hit by this https://github.com/MichaIng/DietPi/issues/3529

A solution could be to try mounting the external share with full r/w permissions or to upgrade sonarr V2 to sonarr V3 (beta status)
Thank you for the info! I will try upgrading to v3, what is the command for that please?
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: sonarr Access to the path is denied

Post by Joulinar »

just follow the instruction on Sonarr web site

https://sonarr.tv/#downloads-v3-linux
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
angrykid8
Posts: 3
Joined: Sun May 31, 2020 5:11 pm

Re: sonarr Access to the path is denied

Post by angrykid8 »

I have uninstalled the dietpi version and installed the v3 but I dont know how to launch it im afraid
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: sonarr Access to the path is denied

Post by Joulinar »

well it was not needed to to remove the DietPi version. You simply could have installed V3. Once installation completed you should be able to access it same way as V2
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply