-
Notifications
You must be signed in to change notification settings - Fork 469
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
(Mac+VFS) data directory "/var/lib/postgresql/data" has wrong ownership #361
Comments
Thank you for reporting this issue! To better assist you, could you provide more details about:
By the way, what exact filesystem do you have under the volume? ( For instance, postgres doesn't work for others under Mac/VirtioFS either. Please try using "docker volume" as a workaround. It has solved the problem for many. Please also check the related issues in the
Please also replace the data dir (
There are two initialization steps, which can be challenging to debug. Please share your initialization logs with us. Or you can replace/remove the postgis initialization with a dummy script, so the original
|
os
Thanks for your links. Reading them made me more suspicious of my workaround. I've since confirmed:
The behaviour can be quite intermittent so I will come back if my observation changes; I will continue with 4.23+VFS |
I am closing this issue. |
Given the below docker-compose yml:
image
withpostgres:alpine
, we have no issues. Everything works.postgis/postgis:15-3.4-alpine
, building the image seems ok, and first run also seems ok. Subsequent runs withdocker compose up db
will produce this error:But it works with the postgres alpine image. Why should it not work now?
Seeing as we extend the postgres-alpine image, and postgres-alpine works, I figured we must be introducing the problem after the base image layers / entrypoint.
data directory "/var/lib/postgresql/data" has wrong ownership
Since doing so, the
data directory "/var/lib/postgresql/data" has wrong ownership
error has disappeared.I don't understand the details. But I believe the
initdb-postgis.sh
script is doing itThe text was updated successfully, but these errors were encountered: