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
chown: changing ownership of ‘/var/lib/postgresql/data’: Operation not permitted, when running in kubernetes with mounted "/var/lib/postgres/data" volume #54601
Comments
@arnold0617
Note: Method 1 will trigger an email to the group. See the group list and label list. |
I fixed this problem. This is caused by the parameter of nfs, after setting nfs mount parameter like below, it works fine. |
It worked for me. You saved my day. |
It does not work for me. |
To solve this problem do it:
|
I guess the only alternative really is run as non-root? |
No, it is not alternative. |
I got past it by setting userid and groupid to 999 on the container (the IDs of the mysql user and groups inside the container). |
@mhellsten did you use security context for this? |
I am running docker.io/postgres:9.6.5 in kubernetes, pod crash loop back off all the time.
I found this message in log, "chown: changing ownership of ‘/var/lib/postgresql/data’: Operation not permitted"
The text was updated successfully, but these errors were encountered: