Sonarr and Radarr "Folder is not writable by user" Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Sptz
Posts: 16
Joined: Mon Aug 17, 2020 7:31 pm

Sonarr and Radarr "Folder is not writable by user"

Post by Sptz »

Hi all,

My setup is an N2+ with eMMC, one SSD and one HDD. I've moved the userdata to the SSD and want to use Sonarr and Radarr to download to the HDD where Plex's library is located. I've created the folder hierarchy in the terminal but I'm getting this error when I point to them.

Example path is: /mnt/HDD/Plex/TV

I read in the details here that both Radarr and Sonarr are stuck to /mnt only so it should work regardless... I've also changed the permissions under File Management like the attached screenshot at each post. Is there something I'm missing here? Because if everything is locked to the user_data then that will also be a problem for Plex right? So how would having multiple external drives work?
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Joulinar »

Hi,

many thanks for your request. Pls can you share folder permissions of directory in question

Code: Select all

la -la /mnt/HDD/Plex/TV
What file system format you are using on the external HDD?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Sptz
Posts: 16
Joined: Mon Aug 17, 2020 7:31 pm

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Sptz »

Joulinar wrote: Tue Aug 25, 2020 10:23 pm Hi,

many thanks for your request. Pls can you share folder permissions of directory in question

Code: Select all

la -la /mnt/HDD/Plex/TV
What file system format you are using on the external HDD?

Code: Select all

root@DietPi:~# la -la /mnt/HDD/Plex/TV                           
total 8                                                          
drwxrwxrwx 2 root root 4096 Aug 25 21:35 .                       
drwxrwxrwx 4 root root 4096 Aug 25 17:54 .. 
I've changed the permissions to 777 and it worked. What appears to not be working is when a file finishes downloading it doesn't delete it from userdata/downloads (it does copy it to the location I want though)

It's in EXT4
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Joulinar »

ok it seems /mnt/HDD/Plex/TV is owned by user root. Therefore it's logic that Sonarr and Radarr are not able to write to this folder. It's not elegant but you fixed it using 777 permission. ;)

let's have a look to /mnt/dietpi_userdata/downloads how this looks like

Code: Select all

ls-la /mnt/dietpi_userdata/downloads
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Sptz
Posts: 16
Joined: Mon Aug 17, 2020 7:31 pm

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Sptz »

I'm not sure if it's working properly still though, it seems to but by giving 777 permissions it should be enough right?

Because if you want Sonarr to download to Plex library it needs to be owned by Sonarr, but what about Plex?

Code: Select all

root@DietPi:~# ls -la /mnt/dietpi_userdata/downloads             
total 8                                                          
drwxrwxr-x  2 dietpi dietpi 4096 Aug 25 23:16 .                  
drwxrwxrwx 11 dietpi dietpi 4096 Aug 25 19:41 ..
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Joulinar »

I guess it's easier to discuss both of your issues together.

To allow all applications access to same folder, all application users would need to be member of same user groups. Usually Sonarr, Radarr and Plex should be part of group dietpi already. Let's check it.

Code: Select all

groups sonarr radarr plex
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Sptz
Posts: 16
Joined: Mon Aug 17, 2020 7:31 pm

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Sptz »

Joulinar wrote: Wed Aug 26, 2020 12:50 am I guess it's easier to discuss both of your issues together.

To allow all applications access to same folder, all application users would need to be member of same user groups. Usually Sonarr, Radarr and Plex should be part of group dietpi already. Let's check it.

Code: Select all

groups sonarr radarr plex
I just checked it and yes they are indeed. I just tried another download through Sonar and the file wasn't moved from userdata/downloads to mnt/hdd/plex/tv so I'm guessing something's definitely wrong :/

By the way, thanks for your patience.
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Joulinar »

why are you not going to download to /mnt/hdd/plex/tv directly?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Sptz
Posts: 16
Joined: Mon Aug 17, 2020 7:31 pm

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Sptz »

Joulinar wrote: Wed Aug 26, 2020 1:13 am why are you not going to download to /mnt/hdd/plex/tv directly?
Because I can only select one default path and it defaults to userdata/downloads. Since I'm using radarr and sonarr (two different locations) I don't see how it'd be possible?

http://imgur.com/a/NbQwTTs
Sptz
Posts: 16
Joined: Mon Aug 17, 2020 7:31 pm

Re: Sonarr and Radarr "Folder is not writable by user"

Post by Sptz »

I think everything is working now. I believe the issue was either qbittorrent as I had set to remove on 0 seeding ratio or the permissions.

Either way, if you don't mind I'll take this opportunity to ask something really quickly. I uninstalled qbittorrent because it looked like it was using quite a lot of cpu to try transmission and it looks to be the same? Is this expected? With just a single torrent?

https://imgur.com/a/8CW7Mr9
Post Reply