Sonarr Import Permissions Issue

Sonarr version (exact version): 3.0.6.1196
Mono version (if Sonarr is not running on Windows): 6.8.0.105
OS: Ubuntu 20.04
Debug logs:
Description of issue:

I’m having a problem with downloaded files being imported. The downloaded files are being put in a folder /PlexMedia/SABnzbd_Downloads/complete/sonarr and the file permissions are as follows:

steve@mediaserver:/PlexMedia/SABnzbd_Downloads/complete/sonarr$ ls -al
total 40
drwxrwxr-x  4 steve plex  4096 Oct 19 07:24 .
drwxrwxr-x 39 steve plex 12288 Oct 16 17:18 ..
-rwxrwxr-x  1 steve plex  4096 Sep 18 12:07 ._.DS_Store
-rwxrwxr-x  1 steve plex  8196 Sep 18 12:07 .DS_Store
drwxr-xr-x  2 steve plex  4096 Oct 18 03:13 The.Block.S17E42.720p.WEB-DL.AAC2.0.H.264
drwxr-xr-x  2 steve plex  4096 Oct 19 07:24 The.Block.S17E43.720p.WEB-DL.AAC2.0.H.264-BTN

As you can see the user is steve and the group is plex and the sonarr process is run by a user sonarr that is a member of the plex group.

The log error I get is:

Couldn't import episode /PlexMedia/SABnzbd_Downloads/complete/sonarr/The.Block.S17E42.720p.WEB-DL.AAC2.0.H.264/The.Block.S17E42.720p.WEB-DL.AAC2.0.H.264-BTN.mp4: Access to the path '/PlexMedia/SABnzbd_Downloads/complete/sonarr/The.Block.S17E42.720p.WEB-DL.AAC2.0.H.264/The.Block.S17E42.720p.WEB-DL.AAC2.0.H.264-BTN.mp4' is denied.

Currently the fix is to change the permissions of the files in that folder to 775. As soon as I do that the files import just fine. So that tells me the sonarr user needs modify access to the files it downloads.

What do I have to setup so that the permissions of the downloaded files are 775 once they download?

Or any other ideas on how to fix this?

Because the user or group Sonarr runs under and you were prompted for and configured at installation (native) or configured in docker needs read and write access to your downloads folder. Ensure sonarr is running as the correct user and group. A user existing in a group does not have anything to do with if a program runs as that group

Your download clients should be running with a Umask of 002

Yeah it was a downloader permissions issue. I got that sorted out now - thanks for the pointer!

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