Which chart:
Postgresql helm chart v9.8.2
Describe the bug
Postgresql helm chart v9.8.2 chart show error 'User "postgres" has no password assigned' when running with persistence.enabled=true and using the NFS storage as PVC
Pre-condition
To Reproduce
Steps to reproduce the behavior:
image:
debug: true
persistence:
enabled: true
storageClass: 'nfs'
size: 25Gi
resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 450m
memory: 512Mi
helm install psql -f value.yaml --version 9.8.2 bitnami/postgresqlkubectl exec -it psql-postgresql-0 -- shpsql -U postgresExpected behavior
The Postgresql pod is running without error 'User "postgres" has no password assigned'
User can log in to Postgresql with a username and password that is defined by Helm chart
Version of Helm and Kubernetes:
helm version:v3.2.1+gfe51cd1
kubectl version:Client Version: v1.18.3
Server Version: v1.19.2
Additional context
/mnt/sharedfolder 192.168.0.0/16(rw,sync,no_subtree_check)



I'm having the same issue. have you tried the older version?
I'm having the same issue. have you tried the older version?
I have tried with 9.7.1, and the same issue is still happening.
Hi, with NFS storage it is usually required to define volumePermissions.enabled=true due to it not setting any permissions after volume creation. Could you try it and let us know if it worked?
Hi, with NFS storage, it is usually required to define
volumePermissions.enabled=truedue to it not setting any permissions after volume creation. Could you try it and let us know if it worked?
I already set that option to true, and I have checked the NFS storage folder in my NFS server to verify if the Postgresql container has permission to write in the folder. As the picture below, and unfortunately, the issue is still happening:

Hi, I have increased the initialDelaySeconds value in livenessProbe and readinessProbe, and now the issue is not happening anymore. I think in some case the "performing post-bootstrap initialization" take took too much time than the configuration in livenessProbe/readinessProbe, leading to the Postgresql Pod is restarted before completing the post-bootstrap initialization task
Most helpful comment
Hi, I have increased the initialDelaySeconds value in livenessProbe and readinessProbe, and now the issue is not happening anymore. I think in some case the "performing post-bootstrap initialization" take took too much time than the configuration in livenessProbe/readinessProbe, leading to the Postgresql Pod is restarted before completing the post-bootstrap initialization task