Sonarr not moving episodes (Linux permissions)

Hi all,

I am getting issues with downloaded files not being renamed and moved, due to the error below.
This is on the latest Linux mint , can anyone advise how i give sonarr the required permission?

Unable to parse media info from file: /media/anonymouse/2.0tb/#Series/2 Broke Girls/Season 05/2 Broke Girls - S05E06 - And the Not Regular Down There HDTV-720p.mkv: Access to the path “/media/anonymouse/2.0tb/#Series/2 Broke Girls/Season 05/2 Broke Girls - S05E06 - And the Not Regular Down There HDTV-720p.mkv” is denied.

System.UnauthorizedAccessException: Access to the path “/media/anonymouse/2.0tb/#Series/2 Broke Girls/Season 05/2 Broke Girls - S05E06 - And the Not Regular Down There HDTV-720p.mkv” is denied.
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x7fb38d95d060 + 0x005ed> in :0
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) <0x7fb38d95d000 + 0x0005a> in :0
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access) <0x7fb38d95cc70 + 0x00053> in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess)
at NzbDrone.Common.Disk.DiskProviderBase.OpenReadStream (System.String path) [0x0001b] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskProviderBase.cs:371
at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo (System.String filename) [0x0006e] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\MediaInfo\VideoFileInfoReader.cs:53

Thanks in advance

You need to check under which username the sonarr service is running, and it has to be part of the group that owns the folders or be the owner of the files.

Alternatively , you can make the folder accessible for all but this is less advisable since it’s less secure

1 Like

I found this command sequence the other day to list all path elements (folders) permissions, i have it now in an alias. Is important that execution bits on folder are not lost for the group or user accessing the path

Go to the folder /media/anonymouse/2.0tb/#Series/2 Broke Girls/Season 05/
in linux terminal and run this

(IFS=/; set -f -- $PWD; for arg; do path="${path%/}/$arg"; paths+=("$path"); done; ls -dal "${paths[@]}")

You can post the result here. Also check under which username is sonarr running ps aux | grep Nzbdrone in terminal

BTW i see a hash (#) there in the path, is that correct?

1 Like

Hi Guys thanks so much for all the help, ok so i ran the app as the correct user and problem solved!

Thanks again

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