Page 1 of 1

Having trouble with install using truenas NFS mount

Posted: Thu Feb 22, 2024 4:58 am
by dudenell

So I'm attempting to install YAMS while using a NFS share from truenas and I cannot for the life of me get the permissions set correctly.

Debian 12 is what I'm attempting to use.

I'm able to create a mount, I'm able to create files within the mount, I'm able to start the installation. It completes the docker file updates, then it attempts to chown folders within the mnt and fails

YAMS CLI installed successfully ✅
chown: changing ownership of '/mnt/yamsmnt/music': Operation not permitted
chown: changing ownership of '/mnt/yamsmnt/books': Operation not permitted
chown: changing ownership of '/mnt/yamsmnt/downloads': Operation not permitted
chown: changing ownership of '/mnt/yamsmnt/tvshows': Operation not permitted
chown: changing ownership of '/mnt/yamsmnt/movies': Operation not permitted
Failed to set ownership and permissions for the media directory. Check permissions ❌

Right now, I have permissions set for everyone on the dataset within truenas, any suggestions as to what to change?


Re: Having trouble with install using truenas NFS mount

Posted: Thu Feb 22, 2024 10:08 am
by rogs

I've seen a lot of issues with permissions on NFS shares before.

Is your user able to create files and directories on the share? I tried to use NFS on my server but had no luck, SMB worked great though. If you can, change to SMB


Re: Having trouble with install using truenas NFS mount

Posted: Sun Mar 02, 2025 3:15 pm
by wah00kid

I have a similar situation virtualized nfs share on truenas scale

running virtualized debian with docker for yams

anyway i had the exact same error because in my truenas nfs share i had set my debian-docker-user as the owner of the share

so when the script tries to change permissions or create the config directories it tries to escalate to root user and that user did not have permissions on my nfs share..

i just edited the script to remove sudo commands for directory creation and file permission changes.. and it worked fine