Postgres DB Can't connect
oakfruitland
PROOP

3 months ago

Everything was working fine this morning, but about 2 hours ago my Postgres database on Railway suddenly became extremely slow. Queries were taking much longer than usual.

I tried restarting the service, but now the database is stuck at the “Database Connection” step in the Postgres Data UI.

In the logs I’m seeing repeated lines like: could not receive data from client: Connection reset by peer

and sometimes very long checkpoint syncs (e.g., sync=78s, total=106s).

I’ve already tried:

  • Restarting the database instance

  • Checking my app env vars (unchanged since last week)

  • Testing both CLI tunnel and external URL

But the issue persists, not able to connect via application or Postico 2, Railway’s own Data UI can’t connect either.

Any idea what might be causing this, or what else I can try?

Thanks in advance!

Updates:

Just tried redeploy as well, no error at all but the deployment failed. All the other project is working fine.

Solved

5 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Railway
BOT

3 months ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


Railway
BOT

3 months ago

✅ The ticket Connection issue with database has been marked as completed.


brody
EMPLOYEE

3 months ago

Hello,

Looks like you are good to go, your database is online and accessible. I am going to mark this as solved, but feel free to reopen it if you ever see this again, however unlikely that is, though.

Best,
Brody


Status changed to Awaiting User Response Railway 3 months ago


brody

Hello,Looks like you are good to go, your database is online and accessible. I am going to mark this as solved, but feel free to reopen it if you ever see this again, however unlikely that is, though.Best,Brody

oakfruitland
PROOP

3 months ago

Thank you Brody!


Status changed to Awaiting Railway Response Railway 3 months ago


Status changed to Solved christian 3 months ago


Loading...