Postgres Database Connection
gkogkos-th
PROOP

15 days ago

Hey, my Postgres database is stuck in this state "

Database Connection

Attempting to connect to the database...". Its been at least 10 minutes. Any ideas?

Screenshot_2026-06-22_at_4.27.00_PM.png

Attachments

30 Replies

okarmazin
PRO

15 days ago

Enable public networking for the service. Service > Settings > Public Networking > Generate Domain.


gkogkos-th
PROOP

15 days ago

Do I need to do any other action?


gkogkos-th
PROOP

15 days ago

after generating the domain?


okarmazin
PRO

15 days ago

No, if that was it, it will be fixed. If it still doesn't work after that, then I don't know.


15 days ago

Assigning a public domain to Postgres doesn't do anything, as Postgres uses TCP.


okarmazin
PRO

15 days ago

I mean the TCP public networking.


15 days ago

A TCP proxy isn't needed either, Railway handles it for you regardless


okarmazin
PRO

15 days ago

Not generating a domain


okarmazin
PRO

15 days ago

If that is true they changed it. A year ago public TCP needed to be enabled for the dashboard to be able to connect tothe database - with this exact behavior (infinitely stuck on this step with no other information presented to the user)


gkogkos-th
PROOP

15 days ago

So this discord is not for help from the employees of railway? How can I get assistance from them?



Can you share your database logs?


(IIRC the thread may be marked as duplicate if you open another one)


15 days ago

might only be for when you create a Discord thread after help station thread? after all, "Discord is community support" heh


gkogkos-th
PROOP

15 days ago

(no markdown available for this content)

Attachments


Can you copy it as plaintext or log and not JSON? It helps with readability that way.


gkogkos-th
PROOP

15 days ago

(no markdown available for this content)

Attachments


gkogkos-th
PROOP

15 days ago

ye sorry


Try redeploying the database.


gkogkos-th
PROOP

15 days ago

again?


gkogkos-th
PROOP

15 days ago

ok


Also, are you able to access the database via a database client? (eg, Datagrip)


gkogkos-th
PROOP

15 days ago

I dont have any db client


There are numerous free database clients you can download online.


gkogkos-th
PROOP

15 days ago

ok let me do it and Ill get back to u


gkogkos-th
PROOP

15 days ago

Screenshot_2026-06-22_at_5.10.23_PM.png

Attachments


gkogkos-th
PROOP

15 days ago

the redeploy also is completed


gkogkos-th
PROOP

15 days ago

the problem remains


gkogkos-th
PROOP

15 days ago

I just saw that in my website it loads stuff from the database finally. But in railway dash I am still seeing "attempting to connect to the database..."


ccpower395
PRO

14 days ago

I had this same issue... the firewall at my office seemed to be blocking it somehow. I moved to a mobile hotspot and it would then load. Get back on the work network, it would stop working. Seems strange but either way it was a network issue for me.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...