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