infra icon indicating copy to clipboard operation
infra copied to clipboard

Crashloopbackoff when deploying postgres container on GKE

Open jmorganca opened this issue 1 year ago • 1 comments

The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

initdb: error: directory "/var/lib/postgresql/data" exists but is not empty
It contains a lost+found directory, perhaps due to it being a mount point.
Using a mount point directly as the data directory is not recommended.
Create a subdirectory under the mount point.

jmorganca avatar Sep 03 '22 22:09 jmorganca

This occurs when creating in EKS as well , @jmorganca Are we updating chart with Hotfix ?

yeshwanth1312 avatar Sep 06 '22 15:09 yeshwanth1312

Caused by lost+found default directory when an external volume is created. Same problem on GKE ans Scaleway. I can fix Helm chart if you want.

djerfy avatar Oct 13 '22 08:10 djerfy

Thanks for the pointer! We are currently working on a new set of Helm charts which will replace the ones in the this repo. This will be addressed in the new chart.

mxyng avatar Nov 02 '22 00:11 mxyng