Page 1 of 1

[Solved] Permission error

Posted: Thu Jan 18, 2024 9:45 pm
by megabex0

So, while installing, I get this:

Checking prerequisites...
docker exists ✅
docker exists ✅
docker compose exists ✅
Where do you want to install the docker-compose file? [/opt/yams]:
What's the user that is going to own the media server files? [gabriel]:
Please, input your media directory [/srv/media]:
Are you sure your media directory is "/srv/media"? [y/N]: y
The directory "/srv/media" does not exists. Attempting to create...
mkdir: cannot create directory ‘/srv/media’: Permission denied
There was an error creating the installation directory at "/srv/media". Make sure you have the necessary permissions ❌

But I do all the process:

sudo mkdir -p /opt/yams
sudo chown -R $USER:$USER /opt/yams

But, one little detail, I have a clean install of ubuntu server, but before installing YAMS, I had installed Samba, so I don't know if it could interfere and result in this error.

To be clear, I'm a complete noob, don't know much about programming, but I really liked all the '*rr system and really want to use!
I will reinstall ubuntu and try again too. Thanks!


Re: Permission error

Posted: Thu Jan 18, 2024 9:48 pm
by rogs

Hey @megabex0!

It seems you forgot to add the correct permissions to your media directory as well!

Make sure your user also has permissions on the media directory (/srv/media by default). You can do it like this:

Code: Select all

sudo mkdir -p /srv/media
sudo chown -R $USER:$USER /srv/media

That should fix your problem!


Re: Permission error

Posted: Thu Jan 18, 2024 9:49 pm
by megabex0

That was fast! And it worked! Thanks for help these noob here!


Re: Permission error

Posted: Thu Jan 18, 2024 9:50 pm
by rogs

Amazing. I'm marking the issue as solved! :mrgreen: