-
Notifications
You must be signed in to change notification settings - Fork 73
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
FATAL: data directory "/var/lib/postgresql/data" has invalid permissions #620
Comments
I have the same issue. How can I disable these checks? Using this image on k8s with nfs mounts is a nightmare right now 😅 |
This usually has nothing to do with pgvecto.rs. It's related to the original folder permission and the user id used in the docker image. We need more information about the issue (like the folder permission on the host environment, the user's permission, etc.) to help. |
Well, it has to do with the docker image pgvecto.rs is build with, as it forcibly tries to change permissions and fails to do so. I'm running it on a k8s cluster with NFS CSI, and it does not have permission to change ownership of that share, yet it tries to. I can't run the container as another uid/gid as it breaks it entirely. No matter what ownership/permissions I give the files on the share, it seems to want to change them and probably dies when trying the I'd just like more control over this ownership processing on startup. EDIT: I went back to just allowing it to set its own permissions, using no squashing on the NFS side. Far from ideal but this project's entrypoint simply kills any chance of controlling the permissions used when interacting with the filesystem, and imo, rendering it risky to use in terms of using mounted filesystems within its container. Hopefully this gets addressed in a future update. Ultimately we should be able to control the permissions it uses to interact with the mounted data directory (or any directory that makes sense to use a volume for). Note that this is not a problem for standard postgres which seems to somehow manage with slightly different permissions. |
Trying to use immich in docker but i get this error message from the postgres14 container but i get the messages
The text was updated successfully, but these errors were encountered: