Postgres SQL cant connect
lawchemical
PROOP

3 months ago

American mills craftyship postgres is stuck on connecting to datatbase

$20 Bounty

18 Replies

Railway
BOT

3 months 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 3 months ago


3 months ago

have you tried redeploy your postgres service?


mayori

have you tried redeploy your postgres service?

lawchemical
PROOP

3 months 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

3 months ago

image.png

Attachments


3 months ago

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


lawchemical
PROOP

3 months ago

public


waresa
PRO

3 months 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

3 months ago

okay so it sounds like a global issue then


lawchemical

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

3 months ago

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


lawchemical
PROOP

3 months 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

3 months ago

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


waresa
PRO

3 months 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

3 months ago

Redeploy source image didn't work?


mayori

Redeploy source image didn't work?

waresa
PRO

3 months 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

3 months ago

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


bmahoney77

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

3 months ago

I think so


bmahoney77
HOBBY

3 months ago

issue persists any solutions??


noctisatrae
PRO

3 months 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

3 months 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...