[Solved] Permission error

Found an issue with YAMS? Post is here! (Not for troubleshooting!)
Post Reply
megabex0
Posts: 4
Joined: Thu Jan 18, 2024 9:32 pm
Gender:
Brazil

[Solved] Permission error

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

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

Re: Permission error

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

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
megabex0
Posts: 4
Joined: Thu Jan 18, 2024 9:32 pm
Gender:
Brazil

Re: Permission error

Post by megabex0 »

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

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

Re: Permission error

Post by rogs »

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

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