Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg-backup does not have the permissions to write files #106

Open
mpede opened this issue May 29, 2023 · 3 comments
Open

pg-backup does not have the permissions to write files #106

mpede opened this issue May 29, 2023 · 3 comments
Labels
docker Dockerfile/compose related issues priority:normal

Comments

@mpede
Copy link

mpede commented May 29, 2023

Hi there,
your work and this bot are much appreciated. I am self-hosting this code, hopefully this feedback helps. I shall open a number of issues - please close/manage at your convenience.

when using docker-compose postgres backup runs with UID 999 - if the host system doesnt have that user or if the BallsDex folder doesnt allow write for all on permissions then the container will fail to create its folders and backup files.

chmod a+w /path/to/BALLSDEXFOLDERNAME solved this issue

@mpede
Copy link
Author

mpede commented May 29, 2023

alterntively (tested) create a user with UID 999 on the host system and add it to the group owning the ballsdex folder.

(you might need to run this as well to give permission to the group chmod g+w -R /path/to/ballsdex-docker)

Chris

@laggron42
Copy link
Member

I've had that issue, but I never managed to find a fix. So far I'm executing the same command you gave.

The settings for the backup are in docker-compose.yml, and I cannot find a settings for changing the user, I'll try and raise an issue in their repo.

@laggron42 laggron42 added the docker Dockerfile/compose related issues label Jun 20, 2023
@laggron42 laggron42 changed the title docker-compose and postgres user pg-backup does not have the permissions to write files Mar 19, 2024
@laggron42
Copy link
Member

Updating the title to something more relevant, this issue is still present and should be looked into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Dockerfile/compose related issues priority:normal
Projects
None yet
Development

No branches or pull requests

2 participants