Sudden Connection Timeout to PostgreSQL (Free Tier) After Days of Stable Use - Credentials Verified

ahmadabbaniFREE

2 months ago

I've been using the free PostgreSQL service on Railway for a while, and everything has been working perfectly. However, today, I encountered a connection timeout error when trying to connect. The connection was fine all previous days, and I have confirmed that all credentials are correct and PostgreSQL is active.

To rule out any code issues, I tested the connection using Beekeeper Studio, and the connection was working fine earlier today, but now it fails with the following error:

Error: Connection terminated due to connection timeout.

I have:

  • Checked and verified my credentials.

  • Ensured the PostgreSQL service is active.

  • Redeployed and restarted the application.

  • Disabled any antivirus/firewall that could be blocking the connection.

  • Confirmed the psql connection string is correct:
    "postgresql://postgres:mypass..@....proxy.rlwy.net:58703/railway"

Despite all these steps, the connection still won't work, and I'm unable to connect. Could you please investigate and help resolve this issue?

Awaiting User Response

3 Replies

2 months ago

Hello,

The data tab is still able to connect and that uses the public network, meaning if you cannot connect it would be a network issue on your side, something that would be out of our control.

Best,
Brody


Status changed to Awaiting User Response railway[bot] 2 months ago


brody

Hello,The data tab is still able to connect and that uses the public network, meaning if you cannot connect it would be a network issue on your side, something that would be out of our control.Best,Brody

ahmadabbaniFREE

2 months ago

Thank you! I’ll proceed with network diagnostics (testing from other networks, VPNs, and ISP checks) and share any findings if the issue persists. Your confirmation about the public network helps narrow things down.

Appreciate your time!


Status changed to Awaiting Railway Response railway[bot] 2 months ago


2 months ago

No problem!


Status changed to Awaiting User Response railway[bot] 2 months ago