Page 1 of 1
[Solved] Permissions Error While Installing
Posted: Sat Oct 28, 2023 4:55 pm
by JayV
I keep getting this error when trying to install YAMS
Code: Select all
Failed to copy docker-compose.custom.yaml to /opt/yams/docker-compose.custom.yaml. Ensure your user (pi) has the necessary permissions
I'm using a Raspberry Pi 4 w/ 4 gbs of RAM running the Raspbian port of Debian 11. I had installed YAMS on this machine once months ago but redid the setup in favor of downloading everything manually and using OMV to send everything from my laptop to the Pi. I've been wanting to re-automate everything so I wiped my entire Pi and harddrive in hopes of getting YAMS set up again, but I've been having this issue nonstop. I've made sure that all of the necessary folders are owned by the Pi user and have full 777 permissions.
Code: Select all
pi@pi:/opt $ ls -l
total 8
drwxrwxrwx 4 pi pi 4096 Oct 28 11:37 containerd
drwxrwxrwx 4 pi pi 4096 Oct 28 12:46 yams
Any help would be super appreciated since this is driving me nuts lol
Re: Permissions Error While Installing
Posted: Sat Oct 28, 2023 5:18 pm
by rogs
Hey!
The error looks pretty self explanatory. Does your user (pi) has permissions to write on the installation directory?
Did you run this? https://yams.media/install/steps/#setup ... r-location
Code: Select all
sudo mkdir -p /opt/yams
sudo chown -R $USER:$USER /opt/yams
Also, can you send an ls -la
for the contents of the /opt/yams
directory?
Re: Permissions Error While Installing
Posted: Sat Oct 28, 2023 7:22 pm
by JayV
Tried running those 2 lines and still getting the same errors :/ I thought at first that maybe messing with chmod could be causing it but that's wasn't the case. I tried a fresh install only really adding an external hard drive as a permanent mount and still got those errors. This is what I get from ls -la
Code: Select all
pi@pi:~ $ ls -la /opt/yams
total 100
drwxrwxrwx 4 pi pi 4096 Oct 28 12:46 .
drwxrwxrwx 4 pi pi 4096 Oct 28 12:44 ..
drwxrwxrwx 2 pi pi 4096 Oct 28 12:44 base
-rwxrwxrwx 1 pi pi 61 Oct 28 12:44 docker-compose.custom.yaml
-rwxrwxrwx 1 pi pi 4890 Oct 28 12:44 docker-compose.example.yaml
-rwxrwxrwx 1 pi pi 4890 Oct 28 15:19 docker-compose.yaml
-rwxrwxrwx 1 pi pi 901 Oct 28 12:44 docker.sh
-rwxrwxrwx 1 pi pi 17964 Oct 28 12:44 docs.org
-rwxrwxrwx 1 pi pi 277 Oct 28 15:19 .env
-rwxrwxrwx 1 pi pi 277 Oct 28 12:44 .env.example
drwxrwxrwx 8 pi pi 4096 Oct 28 12:44 .git
-rwxrwxrwx 1 pi pi 48 Oct 28 12:44 .gitignore
-rwxrwxrwx 1 pi pi 12301 Oct 28 12:44 install.sh
-rwxrwxrwx 1 pi pi 7867 Oct 28 12:44 README.org
-rwxrwxrwx 1 pi pi 3673 Oct 28 12:44 yams
Re: Permissions Error While Installing
Posted: Sat Oct 28, 2023 8:11 pm
by rogs
I see what's the problem now.
You cloned YAMS's repository in /opt/yams
, but that's not correct. Your clone location and your install location must be different!
Try this now:
Code: Select all
# Remove the old directory and all the bad permissions
sudo rm -rf /opt/yams/
# Create the directory again with the correct permissions
sudo mkdir /opt/yams
sudo chown -R $USER:$USER /opt/yams
# Clone YAMS again to your home folder
git clone https://gitlab.com/rogs/yams.git ~/yams
cd ~/yams
# Run the YAMS installer
bash install.sh
I'll make some changes in the website to make more clear that your git clone
can't be inside the install location for YAMS.
It should work now!
Edit:
I just improved the installation instructions to make the clone location more specific. You can see the change here: https://yams.media/install/steps/#cloning-from-gitlab
Thank you for the feedback!
Re: Permissions Error While Installing
Posted: Sat Oct 28, 2023 9:26 pm
by JayV
Oh my god it worked god bless!!! Now time to figure out how to get an SMB file share server onto the same folder as my media for if I gotta download things manually on my main laptop lol
Re: Permissions Error While Installing
Posted: Sat Oct 28, 2023 9:39 pm
by rogs
Excellent! That's good news
I'm glad you where able to fix the issues. And again, thank you for the feedback! Things like this help us improve the documentation!
If you have any other issues, just let us know!