-
Notifications
You must be signed in to change notification settings - Fork 1
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
data directory "/var/lib/postgresql/data" has wrong ownership #56
Comments
Thank you @jralfonsog for reporting this bug. This is a project I work on my free time, so I am sure there are problems like this one which I fixed in Ubuntu but does not work universally. I will take a look at it this weekend, and try to understand the problem. In the meantime, can you tell me the user and group id of the username you ran the docker-compose stack, e.g. by running |
Hi, Sertan.
Yeah, I know. Just pointing it out, although maybe there's something I'm
doing wrong...
*id* output would be:
uid=1000(jralfonsog) gid=1000(jralfonsog)
grupos=1000(jralfonsog),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),50(staff),112(lpadmin),128(sambashare),999(docker)
I've asked on docker forum in the meantime, and they've told me to use
named volumes instead of host paths... but it isn't working (now it just
says project_postgres_1 exited with code 1, without any more trace).
It's a cool and complete template, Sertan. Keep up the good work :)
By the way, I'm using Docker v19.03.12, build 48a66213fe on Linux Mint 19.03, in case it helps.
|
Hi again, Sertan. Quick update. I found where the problem was, I was testing it on a NTFS mapped folder... It works perfectly if I use an Ext4. Thanks anyway! :) |
Ohh, I see! It is good to know. I can open a known issues section in the README and include the NTFS problem. Or if you'd like to contribute directly, you can also open a PR too :) Either way, I will close the issue, once the issue is documented in the README file. Thank you for your compliments and your help! Let's see where the repo will take itself. |
Oh, go ahead and open the section. I'll probably play some more, so I'll let you know/do a PR if I see anything else :) |
I created a PR, which documents the issue: #57 @jralfonsog can you take a look at the PR, whenever you have time? I can add you repo's contributors, in case you would like to give proper approval, or make modifications by yourself. PS: I have also added your name in the documentation (link). If you want to modify the text or if you want me to remove your name, please let me know. |
It's perfect this way, thanks! I think I've given approval properly, but I keep seeing the "Review required" message. |
I think it's about having writer permissions. I can still merge, it's not a problem. The issue is closed. Thanks for your report and help! |
The problem is still exist on pg14, but I find an unusual solution on docker-compose, and test for pg11 and pg14:
but I don't know why it works😅 |
Disabling VirtioFS on docker resolved the issue for me. |
Thanks, @UgurGumushan, this took me a while to narrow down. |
Yes, thank you @UgurGumusha for the suggestion!! |
One-line summary (optional)
When building, postgresql container gives the error:
data directory "/var/lib/postgresql/data" has wrong ownership
Steps to Reproduce
Run
make
ormake all
** Include specs (OS, Python version, code commit hash or release version), if useful **
Linux Mint 19.3, Python 3.7.7
Outcome
The text was updated successfully, but these errors were encountered: