Hi folks, merry christmas!
i am in the need of a little help. I am struggling to get dietpi running, with a remote CIFS share where the downloads are stored. The CIFS mount on the NAS is mounted as “admin” (i.e. root permissions on the NAS). i’ve confirmed as the dietpi user, i can create directories and write files in the mounted cifs shares (so it appears they are mounted correctly).
i have a QNAP NAS with two shares - Multimedia and Download -and the nas is also running sabnzbd as well, as i’m running dietpi with sonarr / raddarr on a raspberry pi.
I can get radarr running and when i add new movie, radarr will head off, grab the nzb file and send it off for download. The issue im hitting is with the handling of the file post download, where i am getting:
Couldn't import movie /share/Download/sabnzbd/complete/Movie/2de9419d4771bae9bed.mp4: Access to the path is denied.
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 <d2ec5c92492f4d6ba8c422bdf574b786>:0
at Interop.CheckIo (System.Int64 result, System.String path, System.Boolean isDirectory, System.Func`2[T,TResult] errorRewriter) [0x0000a] in <d2ec5c92492f4d6ba8c422bdf574b786>:0
at Interop.CheckIo (System.Int32 result, System.String path, System.Boolean isDirectory, System.Func`2[T,TResult] errorRewriter) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0
at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x0005c] in <d2ec5c92492f4d6ba8c422bdf574b786>:0
at System.IO.FileSystem.LinkOrCopyFile (System.String sourceFullPath, System.String destFullPath) [0x0006f] in <d2ec5c92492f4d6ba8c422bdf574b786>:0
at System.IO.FileSystem.MoveFile (System.String sourceFullPath, System.String destFullPath) [0x0003a] in <d2ec5c92492f4d6ba8c422bdf574b786>:0
at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00083] in <d2ec5c92492f4d6ba8c422bdf574b786>:0
at NzbDrone.Common.Disk.DiskProviderBase.MoveFile (System.String source, System.String destination, System.Boolean overwrite) [0x000e3] in <e912d9a68a8e4b6bb974d161ae262f8b>:0
at NzbDrone.Common.Disk.DiskTransferService.TryMoveFileTransactional (System.String sourcePath, System.String targetPath, System.Int64 originalSize, NzbDrone.Common.Disk.DiskTransferVerificationMode verificationMode) [0x0008f] in <e912d9a68a8e4b6bb974d161ae262f8b>: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) [0x003c2] in <e912d9a68a8e4b6bb974d161ae262f8b>: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 <e912d9a68a8e4b6bb974d161ae262f8b>:0
at NzbDrone.Core.MediaFiles.MovieFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.MovieFile movieFile, NzbDrone.Core.Movies.Movie movie, System.String destinationFilePath, NzbDrone.Common.Disk.TransferMode mode) [0x0012b] in <c4a0b0b5f87743f0b17e9fc8429ff92c>:0
at NzbDrone.Core.MediaFiles.MovieFileMovingService.MoveMovieFile (NzbDrone.Core.MediaFiles.MovieFile movieFile, NzbDrone.Core.Parser.Model.LocalMovie localMovie) [0x0005a] in <c4a0b0b5f87743f0b17e9fc8429ff92c>:0
at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeMovieFile (NzbDrone.Core.MediaFiles.MovieFile movieFile, NzbDrone.Core.Parser.Model.LocalMovie localMovie, System.Boolean copyOnly) [0x000b0] in <c4a0b0b5f87743f0b17e9fc8429ff92c>:0
at NzbDrone.Core.MediaFiles.MovieImport.ImportApprovedMovie.Import (System.Collections.Generic.List`1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.MovieImport.ImportMode importMode) [0x00258] in <c4a0b0b5f87743f0b17e9fc8429ff92c>:0
sabnzdb has the file sitting in /share/Download, so i’ve manually mounted the Download folder to /share with 777 perms matching the path from sabnzbd’s download log, and if i ls the path in sabnzbd, i can see the files sonarr are trying to get too:, with the paths matching radarr’s error log above
root@DietPi:~# ls -l /share/Download/
total 0
drwxrwxrwx 2 dietpi dietpi 0 Dec 22 05:36 nzbToMedia
drwxrwxrwx 2 dietpi dietpi 0 May 17 2017 sabnzbd
i’ve added both the radarr and sonarr accounts to the dietpi group in /etc/group:
dietpi:x:1000:sonarr,radarr
sonarr:x:995:
radarr:x:994:
im at a loss as to why i’m getting this access denied error? any points folks?
thanks!