deis / postgres

A PostgreSQL database used by Deis Workflow.
https://deis.com
MIT License
36 stars 21 forks source link

postgres does not start after k8s node reboot #20

Closed rimusz closed 8 years ago

rimusz commented 8 years ago

I have attached the persistent storage to /app/data in Deis-Lite chart. When kube-solo gets rebooted I get the message:

FATAL:  pre-existing shared memory block (key 5432001, ID 0) is still in use
HINT:  If you're sure there are no old server processes still running, remove the shared memory block or just delete the file "postmaster.pid".

Before starting postgres in container there should be check for the /usr/share/postgresql/data/postmaster.pid file and removed if it exists