-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chown: changing ownership of '/var/lib/postgresql/data': Input/output error When running the image in Kubernetes #495
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
Comments
Same issue #361 As Yosifkit said: this seems like a general debugging question and not really a problem with the image, it'd be better to post questions like this in the Docker Community Forums, the Docker Community Slack, or Stack Overflow. Closing since this issue is environmental, not something we can really fix in the image. |
Its a clear BUG to me, I say reopen and address it rather than closing it because you found "other related issue" which is also closed btw. That is why it was not resolved because you keep closing the issue. Let other people see and solve it rather than burying it into the deep. |
It sounds to me like the filesystem you're using (or the driver you're using to access it) do not support As far as I can see, there's nothing we can change about the image to fix this environment-specific issue? |
Sounds good enough, the filesystem permission can be changed via the UI so I guess that solves it. Maybe address a proper error if something fails specifically to this error? That could be a big help to anyone. |
Use
|
This usually happens when postgresql attempts chown on the This is especially problematic if the host is a Windows device using NTFS filesystems, where unix-style permission changes are not allowed. I can think of two solutions:
|
If you run the container directly as a non-root user, it will completely avoid the |
I'm using OSS filesystem in Alibaba, similar to S3 in AWS.
Can someone assist why this is happening?
The text was updated successfully, but these errors were encountered: