-
Notifications
You must be signed in to change notification settings - Fork 15
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
Postgres exits with "Permissions should be u=rwx (0700)" #45
Comments
Hi @lalyos - did you find a way to resolve this? |
Yes. A |
good ideas, tks you |
okay, then next question is "how to monitor file system space usage if '/var/lib/pgsql/9.6/data' is a mount point? for example I have "node_exporter" user and without +x it's hard to see the data through the 'df -h' command. |
wow, as it tuned out, 'o+x' permission has to be given to a parent directory, so 'sudo chmod 701 /var/lib/pgsql/9.6/' is enough for it :), now 'df -h' shows info about mounted fs for everyone. |
I use a windows device to run containers via docker. Where can i run this 'fix command - sudo chmod 700 -R /var/lib/postgresql/dat'? |
Where do you run this command? I use docker on Windows and run command using git-bash, is there a directory i can run this command on? |
I earlier tried with |
Any ideas how I can prevent the permissions from reverting back to EDIT: I deleted |
You mostly see this error on windows since it attempts to mount files from a linux file system to windows file system which does not work. If you do not particularly care about accessing the files then you can use a named volume to mount the postgres volume and it works. Do remember to define the named volume.
|
@mohit1337 what if you care about accessing the data, what can be done? |
There are several options like mounting the named volume or inspecting it. You can view some solutions here. |
How/where can I run this command on windows? |
Hello :) In your docker-compose file, do this: version: '3.7' services: I hope it help you. It was the solution to me. Best Regards, |
No, it won't? root@49f4b35d2745:/# ls |
@RomuloRamos thanks, it helped me |
RomuloRamos Thanks! Finally convenient way to fix it without using named containers / etc |
@RomuloRamos Thanks, bro. |
I tried to use dvol with postgres
I started postgres as:
Than inserted some data, did a
commit
, and tried toreset
. After reset the container has died:The text was updated successfully, but these errors were encountered: