Problem when adding Root Folder in Radarr

I have installed Radarr and I get the following error when trying to set up ROot Folder

Unable to add root folder
Folder is not writable by user radarr

I have tried to point to my “/mnt/movies/” folder, which is a mounted network drive on another pi, but it is not working.

The output of ls -al is:

drwxr-xr-x+ 1 1001 root    0 Jul 10  2021 'Hot Air (2019)'
drwxr-xr-x+ 1 1001 root    0 Jun 18  2021 'Hot Fuzz (2007)'
drwxr-xr-x+ 1 1001 1001    0 Mar 21  2022 'Hot Rod (2007)'
drwxr-xr-x+ 1 1001 1001    0 Aug 22  2022 'Hot Shots! (1991)'
drwxr-xr-x+ 1 1001 1001    0 Aug 22  2022 'Hot Shots! Part Deux (1993)'
drwxr-xr-x+ 1 1001 1001    0 Oct 15  2021 'Hotel Chevalier (2007)'
drwxr-xr-x+ 1 1001 root    0 Jul 10  2021 'Hotel Rwanda (2004)'

How can i get this working?

Looks like the whol folder is owned by a user who did not exist on the current DietPi system.

Was the HDD connected to some other system before?

Hi @Joulinar, you are correct, the HDD was connected to some other system before. Unfortunately I was unable to unmount the drive before the system went caput on me.

Did I mention that this drive is a network mounted drive?

Soo there is no need to connect the HDD to other systems again and we are save to correct permissions to fit to current system? Just to be sure :smiley:

Yes @Joulinar that is correct :slightly_smiling_face: but it is a network drive that is on another pi. Will that matter?

I’m still getting a ‘Permission Denied’ error on this unfortunately @Joulinar

well I guess nothing changed :wink:

You can try to reset permissions for your HDD

chown -R radarr:dietpi /mnt/movies/

Yes, I did just run this as root @Joulinar but in radarr is showing the error message:

Unable to add root folder

Folder '/mnt/Movies/' is not writable by user 'radarr'

¯_(ツ)_/¯

paeore

can you share

ls -la /mnt/ /mnt/movies/

Sure thing. Here is the current output for ls -la /mnt/Movies/

drwxrwxr-x 2 1001 1001    0 Jul 10  2021 'The Feebles'
drwxrwxr-x 2 1001 1001    0 Apr 26  2022 'The Fifth Element (1997)'
drwxrwxr-x 2 1001 1001    0 Apr 26  2023 'The Fire Within Requiem for Katia and Maurice Krafft (2022)'
drwxrwxr-x 2 1001 1001    0 Jul 10  2021 'The Founder (2016)'
drwxrwxr-x 2 1001 1001    0 Jun  2  2022 'The French Dispatch (2021)'
drwxrwxr-x 2 1001 1001    0 Nov 24 06:11 'The Garden of Words (2013)'
drwxrwxr-x 2 1001 1001    0 Jul 10  2021 'The Gentlemen (2019)'

are you sure you changed owner? because it’s still pointing to user id 1001. which did not exist.

what file system format your drive has?

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid

I followed your insturctions by running chown -R radarr:dietpi /mnt/movies/ as user root but it doesn’t seem of have changed the user or group? Why is this?

Here is the output of lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid

NAME   FSTYPE LABEL   SIZE RO TYPE MOUNTPOINT PARTUUID                             UUID
sda                 111.8G  0 disk                                                 
├─sda1 vfat           128M  0 part /boot      9443ff51-01                          0785-AF5A
└─sda2 ext4         111.7G  0 part /          9443ff51-02                          6974faa9-1fd0-4645-a4d2-7a5ccd0329d7

This is not an external HDD? It seems to be located on the same disk you are booting from

can you please share the following as already asked.

ls -la /mnt/

Sure. But as la -la /mnt/ is not a recognised command I ran ls -la /mnt/ for you.
Here is the output:

dietpi@DietPi:~$ sudo ls -la /mnt/
total 24
drwxr-xr-x  7 root   root   4096 Apr  5 22:13 .
drwxr-xr-x 18 root   root   4096 Mar 17 22:50 ..
drwxr-xr-x  2 root   root      0 Feb  6 17:11 12TbBackup
drwxrwxr-x 12 dietpi dietpi 4096 Apr  5 22:22 dietpi_userdata
drwxrwxr-x  2 dietpi dietpi 4096 Mar 17 22:48 ftp_client
drwxrwxr-x  2 dietpi dietpi 4096 Mar 17 22:49 nfs_client
drwxrwxr-x  2 dietpi dietpi 4096 Mar 17 22:49 samba

My Movies folder sits in the 12tbBackup directory which looks to be owned by root

And now after reboot the output for la -la /mnt/ is

drwxrwxrwx+  1   1001 root      0 Feb  6 17:11 12TbBackup

FFS! Maybe it is something in my /etc/fstab that is causing the issue?
Here is my fstab:

# NETWORK
#----------------------------------------------------------------
//192.168.1.111/media /mnt/12TbBackup cifs username=XXXX,password=XXXX,nofail,uid=dietpi,gid=dietpi,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=1,vers=1.0 0 0

sorry typo

sooo you are trying to mount SAMBA share?

Samba don’t support Linux file system permission.

And it looks there is no /mnt/movies/

Maybe you would need to start explaining your entire solution for better understanding.

Are you trying to mount a HDD or network share? what type of network share? what should be the mountpoint?

OK, so I have 2 raspberry pi 4’s.

The first is my dietpi server running Radarr, Sonarr and BT client.

The second Pi is my plex server, this is where my ‘12TbBackup’ HDD is connected to. And the reason I have this as a standalone and not running on the dietpi server is due to issues with the VPN when accessing plex outside of the local network.

The dietpi server will search for and download the movies/tv shows and move them via samba share to the ‘12TbBackup’ HDD on the plex server.

I had this set up running very well for years but as my dietpi needed an upgrade after failing to boot one day around the end of March, I had to do a fresh install and without being able to recover my radarr or sonarr backup configs, I decided to do it all fresh from scratch.

I did however use the Network line from a backup I had of /etc/fstab that I copy and pasted in in the hopes that would work as it did on my previous system. But this was all I copied.

Here is the mountpoint, this is what it should be:
//192.168.1.111/media 11T 9.8T 1.2T 90% /mnt/12TbBackup

If you need any more info, let me know.

Thanks for you assistance with this.

If both are Linux systems, you should think of NFS instead of SAMBA.

As well you should mount the network drive using drive manager

We have windows machines on our network and as far I have read SAMBA is the only working soloution for this kind of set up. Unless I am wrong here.

Yes, I know. I did this when I first set up the fresh install.

So, I unmounted the drive and removed it in dietpi-drivemanager re-added the netowrk drive and the user:group now reads as dietpi:dietpi and this was accepted by radarr. I should not have bother with my previous fstab config and just used the drive manager.

Thanks for assisting @Joulinar enjoy the rest of your weekend.

paeore