a month ago
My Railway Postgres service is crashing, and the connected Node app cannot start because database connections fail.
The app logs show:
Failed to start server: AggregateError [ECONNREFUSED]
at async Object.ensureBaseSchema (/app/src/db.js:13:21)
at async start (/app/src/server.js:13:5)
and also:
Error: connect ECONNREFUSED 10.178.59.162:5432
Error: connect ETIMEDOUT 10.178.59.162:5432
The Postgres service itself also showed:
ERROR (catatonit:2): failed to exec pid1: No such file or directory
So this looks like the app is failing only because Postgres is unavailable / crashed.
Has anyone seen this combination before?
What is the safest recovery path without losing data?
0 Replies
a month ago
This thread is a duplicate of Postgres crashes immediately after restart with catatonit pid1 error. Closing this one.
Status changed to Duplicate Railway • about 1 month ago