Postgres SQL cant connect
lawchemical
PROOP

24 days ago

American mills craftyship postgres is stuck on connecting to datatbase

$20 Bounty

18 Replies

Railway
BOT

24 days ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway 24 days ago


have you tried redeploy your postgres service?


mayoriii

have you tried redeploy your postgres service?

lawchemical
PROOP

24 days ago

yes. Its stuck on deploying. I tried restoring to my backup made 3 hours ago. It just randomly lost connection. I checked server logs to see what was occuring before this. There was no activity leading up to losing connection


lawchemical
PROOP

24 days ago

image.png

Attachments


are you using the private database url or the public one?


lawchemical
PROOP

24 days ago

public


waresa
PRO

24 days ago

I am having the same issue, i redeployed and its been stuck on deployment now for 30 minutes


waresa

I am having the same issue, i redeployed and its been stuck on deployment now for 30 minutes

lawchemical
PROOP

24 days ago

okay so it sounds like a global issue then


lawchemical

![image.png](https://station-server.railway.com/attachments/att_01kt6xcjd1f69b9ndqhk5dp3yr)

try redeploy source image, go to your postgres service > open the command palette (Ctrl+K on PC) > select "Redeploy source image"


lawchemical
PROOP

24 days ago

Am i able to cancel the restore since its stuck?

Screenshot 2026-06-03 at 10.20.45 AM.png

Attachments


lawchemical

okay so it sounds like a global issue then

waresa
PRO

24 days ago

not sure but only one of my 60 odd services is having this issue so i dont think so


waresa
PRO

24 days ago

Seems like it is server issue that is hosting our postgres dbs


waresa

Seems like it is server issue that is hosting our postgres dbs

Redeploy source image didn't work?


mayoriii

Redeploy source image didn't work?

waresa
PRO

24 days ago

no it kept redploying without ever finishing. Got a message from railway that it is a hardware issue with the server the postgres is running on


bmahoney77
HOBBY

24 days ago

getting the same issue tried restarting no improvement -global issue?


bmahoney77

getting the same issue tried restarting no improvement -global issue?

I think so


bmahoney77
HOBBY

24 days ago

issue persists any solutions??


noctisatrae
PRO

24 days ago

One day I had a problem like that where Prisma (Database ORM) was misconfigured and hogged too many database connections. It made it impossible for Railway's web interface to load because Railway had no connection available; I ended up believing the database was broken even while my app was totally fine. Turned out that by deploying a fix to limit the connections usable in Prisma, it fixed the problem. I learned the hard way you should always set the application_name flag in your connection URL ahaha.

I don't know if it's the same problem, but you might want to investigate with that in mind!


noctisatrae

One day I had a problem like that where Prisma (Database ORM) was misconfigured and *hogged too many database connections*. It made it impossible for Railway's web interface to load because Railway had no connection available; I ended up believing the database was broken even while my app was totally fine. Turned out that by deploying a fix to **limit the connections usable in Prisma**, it fixed the problem. I learned the hard way you should always set the `application_name` flag in your connection URL ahaha. I don't know if it's the same problem, but you might want to investigate with that in mind!

bmahoney77
HOBBY

24 days ago

thanks it may be but i cant push a change so eiterh support sort the infra there side or i rebuild the database which i dont reall ywant to do


Welcome!

Sign in to your Railway account to join the conversation.

Loading...