-
Notifications
You must be signed in to change notification settings - Fork 300
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
Bitnami Postgres doesn't deploy in Rancher Desktop due to volume mount permissions #502
Comments
Are you installing the postgresql chart with I believe the same problem can happen with nfs-volume-provisioner as well. |
I just realized that we control https://github.com/rancher/local-path-provisioner, so we should investigate if we can't fix it. I found some hint in kubernetes/kubernetes#93802 (comment):
However, "Local Persistent Volumes" are supposed to provide full control over ownership:
|
Note that we want to keep this issue open even though the Epinio issue may be resolved by adding the volume permissions setting (epinio/epinio#704). We do want to investigate if there is anything we can do in the local-path-provisioner to avoid the issue to begin with. |
Hi, i had the same issue with bitnami postgresql helm chart. I solved it by providing
|
@habibi07 Did setting It has kind of complex logic, but is supposed to already do the |
I'm having what I think is a similar issue with deploying MinIO on Rancher Desktop.
|
@agracey Assuming you are using the Bitnami MinIO chart, the fix is the same as before: All the Bitnami charts that use PVCs use the same settings: Volume Permissions Parameters |
Ok, things just got weird. I can no longer reproduce the error... And I don't know why not. I could easily reproduce this morning then when I went to actually measure things, I couldn't get it to fail! |
@habibi07 If you reproduce, could you run |
From what I can tell, it looks like there's a slight difference in ConfigMap provided to the local-path-provisioner form this commit in k3s: k3s-io/k3s@a1d7a62#diff-2db2a6c1c81cb2084152e746784de4a98eb9bc5ec06091ebfdfb8c52ca4fd6f3 I'm not sure this would be the issue and I can't test due to not being able to reproduce again |
@agracey - I am facing exact same issue. I enabled persistence pv claim. Is there any workaround? persistence:
|
@pramodsharma62 See above: #502 (comment)
|
@jandubois : unfortunately still the same issue |
@pramodsharma62 Please show the exact
[Edited; the original had an erroneous additional But it is really difficult to tell without knowing what commands you are running. |
@jandubois - I am using jfrog with postgress and already enabled postgress on jfrog helm chart values.yaml. postgresql: I am running helm upgrade command. |
I don't think there chart has postgresql.volumePermissions.enabled=true=true I might have to deploy postgressql separately? |
@pramodsharma62 Thank you! Sorry for the typo (well, cut&pasto), the options is just
I'm pretty confident this will work for you. |
No success still the same issue. gresql 18:59:38.14 INFO ==> ** PostgreSQL setup finished! ** ││ postgresql 18:59:38.15 INFO ==> ** Starting PostgreSQL ** ││ 2021-10-04 18:59:38.169 GMT [1] LOG: skipping missing configuration file "/bitnami/postgresql/data/postgresql.auto.conf" ││ 2021-10-04 18:59:38.169 GMT [1] FATAL: data directory "/bitnami/postgresql/data" has wrong ownership ││ 2021-10-04 18:59:38.169 GMT [1] HINT: The server must be started by the user that owns the data directory. ││ stream closed ││ ││ ││ |
I don't know; maybe you need to specify it on the initial deployment and cannot specify it during an update. I'm still convinced that the correct application of this option will make postgresql work for you. |
I think @jandubois is likely correct and the PV is likely surviving the helm upgrade. To workaround this, you can run this incredibly insecure command inside the rancher-desktop VM: I'm using windows, so I can access the rancher-desktop WSL instance through the windows terminal: I'd imagine there's a lima command to do similar on Mac? |
I had the same issue The option fixed it |
Why not implementing something like bitnami/charts#1210 (comment) instead? |
During an install of Epinio, I'm getting an error when it tries to install a bitnami postgres pod:
I found this which is likely the same issue so I'm wondering if there's any way to support fsgroup enabled storage? (Is that a thing?)
bitnami/charts#1210
Also, should I also file an issue with https://github.com/epinio/epinio?
The text was updated successfully, but these errors were encountered: