evryfs / helm-charts

OpenSourced Helm charts
Apache License 2.0
49 stars 76 forks source link

Postgresql Pod Permissions Issue #235

Closed catsdev closed 1 year ago

catsdev commented 1 year ago

I am attempting to deploy the helm chart to a Kubernetes instance in Azure. After seeing the bitnami postgresql pod crashing, I enabled the bitnami debug mode and the pod outputted this. Would you know what needs to be configured in other for this to be fixed?

The database cluster will be initialized with locale "en_US.UTF-8". The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /bitnami/postgresql/data ... ok creating subdirectories ... ok selecting default max_connections ... 20 selecting default shared_buffers ... 400kB selecting default timezone ... Etc/UTC selecting dynamic shared memory implementation ... posix creating configuration files ... ok 2023-05-02 15:18:12.269 UTC [98] FATAL: data directory "/bitnami/postgresql/data" has invalid permissions 2023-05-02 15:18:12.269 UTC [98] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750). child process exited with exit code 1 initdb: removing contents of data directory "/bitnami/postgresql/data" running bootstrap script ...