Nowhere in https://codeberg.org/rimu/pyfedi/src/branch/main/INSTALL-docker.md does the word chmod appear.
When you say ‘ran the script in it’, what do you mean?
Comment on Self hosting piefed
a_person@piefed.social 1 week agoI am getting my instructions from the official piefed codeberg repo for installing docker. https://codeberg.org/rimu/pyfedi/src/branch/main/INSTALL-docker.md. I cloned the repo in my ~/pyfedi directory, and ran the script in it as well. My issue is that I am not sure what chmod 1000 command to run to remove the docker build errors of permission denied.
Nowhere in https://codeberg.org/rimu/pyfedi/src/branch/main/INSTALL-docker.md does the word chmod appear.
When you say ‘ran the script in it’, what do you mean?
Sorry, chown not chmod. And yes, in this section.
BUILD PIEFED
export DOCKER_BUILDKIT=1 sudo docker compose up –build
Wait until text in terminal stops scrolling. Ignore the configuration check errors at this point.
If you see many permission-related errors, try repeating the previous step <strong>(with the chown command using 1000 instead of your username)</strong>
Test external access from browser (On port 8030). Watch for movement in terminal window. Browser will show "Internal Server Error" message. Proceed to initialize database to address this error message.
Ah ok.
That docker-dirs.sh script is trying to set the right permissions onto these directories:
“pgdata”, “media”, “logs”, “tmp”.
The owner of those directories needs to be the same user as the one running docker.
kumi@feddit.online 1 week ago
Just to rule it out (wouldn’t be the case on default debian):
Is SELinux enabled?
sudo getenforce(if command missing or false, it’s not your problem here)You are not running with podman as compose backend?
sudo systemctl status podmanshouldn’t show an active service unless you use it.