Unable to add root folder

Having any issues installing YAMS? This is the place to ask!
doordonot
Posts: 7
Joined: Tue Feb 06, 2024 11:08 pm
United States of America

Unable to add root folder

Post 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!

User avatar
rogs
Site Admin
Posts: 167
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: Unable to add root folder

Post 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
YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
doordonot
Posts: 7
Joined: Tue Feb 06, 2024 11:08 pm
United States of America

Re: Unable to add root folder

Post 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.

User avatar
rogs
Site Admin
Posts: 167
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: Unable to add root folder

Post 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.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
doordonot
Posts: 7
Joined: Tue Feb 06, 2024 11:08 pm
United States of America

Re: Unable to add root folder

Post by doordonot »

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

User avatar
rogs
Site Admin
Posts: 167
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: Unable to add root folder

Post 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!

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
doordonot
Posts: 7
Joined: Tue Feb 06, 2024 11:08 pm
United States of America

Re: Unable to add root folder

Post 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.

User avatar
rogs
Site Admin
Posts: 167
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: Unable to add root folder

Post 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

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
doordonot
Posts: 7
Joined: Tue Feb 06, 2024 11:08 pm
United States of America

Re: Unable to add root folder

Post 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!

jdjb78
Posts: 6
Joined: Mon Jul 22, 2024 3:43 am
Gender:
United States of America

Re: Unable to add root folder

Post 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.

Post Reply