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

Permission error when reading and creating database #3

Open
moya2162 opened this issue Jan 3, 2024 · 1 comment
Open

Permission error when reading and creating database #3

moya2162 opened this issue Jan 3, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@moya2162
Copy link

moya2162 commented Jan 3, 2024

Problem:

Receiving following error when trying to run this build in docker compose:

ServerDB: Failed initialization: unable to open database file Error opening database

Solution:

Appears to have a permissions error with the way the docker image was build. It does not function like other docker builds with uid/gid set to 1000:1000 as build was creacted with uid/gid of 800:800.

Had to run following command on host folder to allow for this image to read and make files correctly:

sudo chown -R 800:800

Recommend adding another step to readme to inform users about this, or update build to allow for docker environment variable to set uid/gid.

See this reference for more information on this same issue:
mumble-voip/mumble#5634

@theAkito
Copy link
Owner

theAkito commented Jan 3, 2024

Greetings 👋🏻

Thanks for your issue.

Yes, that's a known one to me with Docker builds in general.
I am still not sure, what I would call the "best" solution, because it always comes with caveats.

I think, your idea of making the users first and foremost aware of this, will solve the biggest problem, when trying to run this for the first time.

Thank you!

Repository owner deleted a comment Jan 23, 2024
Repository owner deleted a comment Jan 23, 2024
@theAkito theAkito self-assigned this Feb 2, 2024
@theAkito theAkito added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Feb 2, 2024
Repository owner deleted a comment from AntonioSalazar Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants