Postgresql database connection problem
samba-t869
HOBBYOP

a month ago

I am having problems with connecting my railway to a postgresql database but I get ECONNREFUSED error instead, I have tried to use the ${{ Postgres.DATABASE_PRIVATE_URL }} but nothing seems to work out. It's the third day now but I have got no solution for this problem

$10 Bounty

3 Replies

Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • about 1 month ago


timeparkops
HOBBY

a month ago

DATABASE_PUBLIC_URL get from the Variable Setting at your Postgres in the project.

Then paste the value inside your web/service Variable DATABASE_URL


aruvine
FREE

a month ago

edit: I had a reply earlier but i removed it now sorry about that


There is no DATABASE_PRIVATE_URL for postgres AFAIK, you should be using ${{ Postgres.DATABASE_URL }} instead, for communication over the private network.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...