Postgres service intermittently refusing/dropping connections
arriva-mv
HOBBYOP

11 days ago

Hi Railway team,

I'm having trouble connecting to my Postgres database service. The issue has been intermittent over the past several hours, with a few different symptoms:

Connection refused when connecting via the internal hostname (postgres.railway.internal, port 5432) — psycopg2/Django reports "Connection refused... Is the server running on that host and accepting TCP/IP connections?"

Server closed the connection unexpectedly when connecting via the public proxy (monorail.proxy.rlwy.net, port 50374).

In the Postgres deploy logs, I'm seeing a large volume of could not receive data from client: Connection reset by peer entries with rapidly incrementing client PIDs over a short window, while checkpoint logging otherwise looks normal.

Railway's own built-in DB connection tool (SSH-based) also failed with "Connection terminated unexpectedly."

I redeployed the Postgres service, which changed the internal IPv6 address, but the connection issue persisted afterward — my application still can't reach the database to run migrations.

Could you help me understand:

Whether the Postgres service crashed, was OOM-killed, or hit a resource limit (memory/disk/connection count) around this time

Whether there's an issue on Railway's infrastructure side affecting this database instance

Recommended next steps to restore a stable connection

Solved

4 Replies

11 days ago

There is currently an incident on US-West, this might be related ( https://status.railway.com/incident/RL8FRJE6 )

Is your postgres hosted in US-West?


Status changed to Awaiting User Response Railway 11 days ago


arriva-mv
HOBBYOP

11 days ago

yes, US West (California, USA).


Status changed to Awaiting Railway Response Railway 11 days ago


11 days ago

You're likely being affected by the incident then, team is actively working on it!


Status changed to Awaiting User Response Railway 11 days ago


arriva-mv
HOBBYOP

11 days ago

Resolved, thanks.


Status changed to Awaiting Railway Response Railway 11 days ago


Status changed to Solved Railway 11 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...