URGENT: Postgres not starting — initdb conflict, data at risk
shashipareta12-stack
HOBBYOP

2 months ago

Hi, I need urgent help with a Postgres issue on Railway.

My Postgres service keeps looping this error:
"initdb: error: directory '/var/lib/postgresql/data' exists but is not empty"

This means the volume already contains data but the container is still trying to run initdb repeatedly.

This database contains client production data. Please DO NOT wipe or re-initialize the volume.

Here is my public thread with full logs and details:
https://station.railway.com/questions/urgent-railway-postgres-not-starting-44e498ae

Service name: clinic-management-db
Issue time: ~23:00 IST, 8 Dec 2025

I need staff assistance to inspect the volume (PGVERSION, pgwal, base) and start Postgres using the existing cluster.

Closed

1 Replies

medim
MODERATOR

2 months ago

Closing this in favor of the thread you opened on the help station.


Status changed to Closed medim 2 months ago


Loading...