Page 1 of 2

Unable to add root folder

Posted: Tue Feb 06, 2024 11:15 pm
by doordonot

When attempting to add a root folder to sonarr I'm getting the following error.

Unable to add root folder

Code: Select all

Folder '/tv/' is not writable by user 'abc'

This is on a fresh linux ubuntu install. The only place I deviated in the install defaults is I set up my media to be in "/media/username/15a8f489-192a-42bd-b1ae-662a9956ee611/server" with the string of characters being the ID for a HDD that is installed in the computer ( instead of the default /srv ). The rest of the linux build to include opt/yams is on a ssd.

I'm doing my best to learn linux but having a very hard time finding out what the issue here is. Any help or suggestions would be appreciated, thank you!


Re: Unable to add root folder

Posted: Tue Feb 06, 2024 11:23 pm
by rogs

Hey!

Make sure the user you are using in YAMS has permissions to write on the destination device:

Code: Select all

sudo chown -R $USER:$USER /media/username/15a8f489-192a-42bd-b1ae-662a9956ee611/server

Re: Unable to add root folder

Posted: Thu Feb 08, 2024 2:34 pm
by doordonot

I tried that and still get the same error. Are there any specific tricks to getting YAMS to store the media files on a different drive than it boots from? This is a fresh install so I'm not against formatting both drives and redoing the installs if there was something I missed.


Re: Unable to add root folder

Posted: Thu Feb 08, 2024 2:38 pm
by rogs

You don't need to format. Can your user write on your media folder?

Try running this

Code: Select all

touch test /the/location/for/your/media/directory

Run it as the user you selected when installing YAMS (not root) and do not use sudo.


Re: Unable to add root folder

Posted: Thu Feb 08, 2024 3:37 pm
by doordonot

Touch test came back good, I tried with both the mounting address as well as the partition address (dev/sda2).


Re: Unable to add root folder

Posted: Thu Feb 08, 2024 3:52 pm
by rogs

Run this and send the output:

Code: Select all

id the-user-that-runs-yams

Also, send the contents of your .env file. It's located in /your/install/location/.env (it's a hidden file). Make sure you remove your VPN credentials before sending the file here!


Re: Unable to add root folder

Posted: Thu Feb 08, 2024 4:12 pm
by doordonot

Output: uid=1000(username) gid=1000(username) groups=1000(username)

Contents:

Base configuration

PUID=1000
PGID=1000
MEDIA_DIRECTORY=/media/username/15a8f489-192a-42bd-b1ae-662a9956ee61/server
INSTALL_DIRECTORY=/opt/yams
MEDIA_SERVICE=jellyfin

VPN configuration

VPN_ENABLED=y
VPN_SERVICE=nordvpn
VPN_USER=user
VPN_PASSWORD=pass

The media directory is a folder on a 8 TB HDD while the rest of the install is on a separate SSD.


Re: Unable to add root folder

Posted: Thu Feb 08, 2024 4:21 pm
by rogs

Hmmm... Everything looks fine... Are you 100% sure your user has permissions to write on /media/username/15a8f489-192a-42bd-b1ae-662a9956ee61/server? Because that's the UID and GID being used by YAMS.

Also, another question: is the drive formatted to ExFAT by any chance? I've seen issues with ExFAT before


Re: Unable to add root folder

Posted: Sun Feb 11, 2024 9:41 pm
by doordonot

Not completely sure what the issue was but I wiped everything and reinstalled and it works fine now. If I had to guess my mount path for the drive was probably wrong. Thank you!


Re: Unable to add root folder

Posted: Mon Jul 22, 2024 4:34 am
by jdjb78

Hello.

I'm having this same issue. I have a mounted network drive, /mnt/unraid/ being used as my media folder. I've verified my user (also the user I referenced in setup) and it has read/write permissions. I created a txt file and successfully sent it to the network folder.

Any help would be appreciated.

Thanks.