5 days ago
I have a postgres instance connected to my project. It is stuck in "Attempting to connect to the database..." and has been stuck for a few days. I tried restarting the instance, but still the same issue.
It has been like this since railway had their outage a few weeks ago. All other services have been restarted and is functioning. But the database issue persists.
8 Replies
5 days ago
Your Postgres volume and data are intact. This is a known issue where the container image becomes stale after an incident. A normal redeploy reuses the same image, so it won't fix it. Open your Postgres service, press Cmd+K (or Ctrl+K) to open the command palette, and select "Redeploy source image" to pull a fresh image, which should resolve the connection issue.
Status changed to Awaiting User Response Railway • 5 days ago
Railway
Your Postgres volume and data are intact. This is a known issue where the container image becomes stale after an incident. A normal redeploy reuses the same image, so it won't fix it. Open your Postgres service, press Cmd+K (or Ctrl+K) to open the command palette, and select "Redeploy source image" to pull a fresh image, which should resolve the connection issue.
3 days ago
It didn't work. This is not sustainable. I have tried restarting, redeploying, pulling source image. Still nothing works
Status changed to Awaiting Railway Response Railway • 3 days ago
3 days ago
Your Postgres service is actually running and healthy. The logs show regular checkpoint activity and a successful deployment, and the volume is in a READY state with your data intact. There is even a query from your application hitting the database (a constraint violation on storage_credentials), which confirms the database is accepting connections. The "Attempting to connect to the database" message is from the dashboard's Data tab UI, not the database itself. Try connecting to the database directly using the connection string from your service's Variables tab (e.g., via psql or a database client) to confirm it is reachable from outside the dashboard.
Status changed to Awaiting User Response Railway • 3 days ago
Railway
Your Postgres service is actually running and healthy. The logs show regular checkpoint activity and a successful deployment, and the volume is in a READY state with your data intact. There is even a query from your application hitting the database (a constraint violation on `storage_credentials`), which confirms the database is accepting connections. The "Attempting to connect to the database" message is from the dashboard's Data tab UI, not the database itself. Try connecting to the database directly using the connection string from your service's Variables tab (e.g., via `psql` or a database client) to confirm it is reachable from outside the dashboard.
3 days ago
The problem is connecting through the UI. I want to speak with a human
Status changed to Awaiting Railway Response Railway • 2 days ago
2 days ago
Good news first: your database itself is healthy. The logs show normal checkpoint activity and your application is querying it fine, so your data and connectivity are not at risk. The issue is specifically the dashboard Data tab failing to open its own connection.
An engineer has picked this up and is looking at the Data tab on your service directly. In the meantime you can connect with an external client (TablePlus, psql, etc.) using the connection variables from the service's Variables tab. I'll update you here as we make progress.
Status changed to Awaiting User Response Railway • 2 days ago
18 hours ago
It is still not working.
Status changed to Awaiting Railway Response Railway • about 18 hours ago
3 hours ago
Quick update: I checked your Postgres directly and it is healthy and serving connections normally. Your applications are connected to it right now and reading and writing without any dropped connections, and the database is completing its regular internal checkpoints. Your data is intact.
What is failing is only the Data tab in the dashboard. It opens its own separate connection to display your tables, and that specific connection is what is breaking here, not Postgres. It is a known issue on our side that restarting and redeploying will not clear, and we are working on it.
Until the fix lands, you can reach all of your data by pointing any Postgres client such as TablePlus, DBeaver, or psql at the connection values in your service's Variables tab. That path is unaffected. We will follow up here once the Data tab itself is working again.
Status changed to Awaiting User Response Railway • about 3 hours ago
