Sonarr incorrectly sees external exFAT disk as non-writeable unless it's writeable by everyone

Sonarr version (exact version): 3.0.10.1567
Mono version (if Sonarr is not running on Windows): 6.12.0.182
OS:
Debug logs: Sonarr Debug Logs - Non-Writeable · GitHub
Description of issue:

I have Sonarr running as the sonarr user, who is part of the starr group. If I mount my external hard drive using

sudo mount -o uid=sean,gid=starr,umask=002 /dev/sda2 /media/Starr/

then the sonarr user is able to write to and read from that group without problem:

sh-5.2$ ps -U sonarr
    PID TTY          TIME CMD
   7270 ?        00:00:00 NzbDrone
   7271 ?        00:00:20 mono
sh-5.2$ groups sonarr
sonarr : sonarr starr
sh-5.2$ stat /media/Starr/TV
  File: /media/Starr/TV
  Size: 1048576   	Blocks: 2048       IO Block: 1048576 directory
Device: 8,2	Inode: 3932        Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1002/    sean)   Gid: (  993/   starr)
Access: 2023-05-28 18:14:52.000000000 +0100
Modify: 2023-05-28 18:16:32.620000000 +0100
Change: 2023-05-28 18:16:32.620000000 +0100
 Birth: 2023-05-28 18:14:53.090000000 +0100
sh-5.2$ sudo -u sonarr touch /media/Starr/TV/EXAMPLE
sh-5.2$ ls /media/Starr/TV
EXAMPLE
sh-5.2$ sudo -u sonarr rm /media/Starr/TV/EXAMPLE
sh-5.2$ touch /media/Starr/TV/DIFFERENT-EXAMPLE
sh-5.2$ sudo -u sonarr ls /media/Starr/TV/
DIFFERENT-EXAMPLE
sh-5.2$ sudo -u sonarr rm /media/Starr/TV/DIFFERENT-EXAMPLE
sh-5.2$ ls /media/Starr/TV

However if I try to add the /media/Starr/TV folder as a root folder in Sonarr, it claims to not be writeable:

May 28 18:15:41 media NzbDrone[7271]: [Warn] SonarrErrorPipeline: Invalid request Validation failed:
May 28 18:15:41 media NzbDrone[7271]:  -- Path: Folder is not writable by user sonarr

However if I unmount and remount the drive giving everyone permission to read and write

sudo mount -o uid=sean,gid=starr,umask=000 /dev/sda2 /media/Starr/

then everything works as expected.

Is this something I’m doing wrong/misunderstanding I have, or should I open an issue on GitHub?

I’ve since had another issue with this disk, so I moved all my data over to a different one and reformatted this one to ext4 and now everything seems to work fine. So it’s not a fix per se, but if anyone faces a similar issue they can use this as a workaround.

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