"FATAL: data directory "/bitnami/postgresql/data" ..DETAIL: Permissions should be..." error when deploying Postgres pod using helm3 with Concourse for VMware Tanzu
book
Article ID: 297235
calendar_today
Updated On:
Products
Concourse for VMware Tanzu
Issue/Introduction
While deploying "concourse-#.#.#.tgz" using helm3 in Tanzu Kubernetes Grid Integrated Edition (TKGI), the Postgres pod is failing with the error below:
2021-02-01 12:30:50.251 UTC [1] FATAL: data directory "/bitnami/postgresql/data" has invalid permissions 2021-02-01 12:30:50.251 UTC [1] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
NAME READY STATUS RESTARTS AGE pod/concourse-postgresql-0 0/1 CrashLoopBackOff 4219 (23s ago) 14d pod/concourse-web-#####-########## 0/1 Init:CrashLoopBackOff 4219 (49s ago) 14d pod/concourse-worker-0 1/1 Running 0 14d pod/concourse-worker-1 1/1 Running 0 14d
Concourse for VMware Tanzu: 7.x - Installed via Helm
Resolution
To work around this issue, update the chart by enabling thevolumePermissions.enabled parameter and then modify the deployment-values.yml file as shown below: