my deployment is not working due to database error
gouravlohiya12
HOBBYOP

2 months ago

when I click on my deployment URL, getting "this side can'e reached"

and when I check to found the below error in the database:

Database Connection

We are unable to connect to the database over the public network.

getaddrinfo ENOTFOUND postgres.railway.internal

it was perfecttly working til today's morning, can you help me out that's kind of urgennt too

$10 Bounty

6 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody about 2 months ago


dev
MODERATOR

2 months ago

We are unable to connect to the database over the public network

If you are trying to reach postgres over the public network then "postgres.railway.internal" is not what you're looking for because that is an internal private domain; you can instead find the public domain in the variable DATABASE_PUBLIC_URL within the postgres service, you can use that to connect to the database over the public network


dev

We are unable to connect to the database over the public networkIf you are trying to reach postgres over the public network then "postgres.railway.internal" is not what you're looking for because that is an internal private domain; you can instead find the public domain in the variable DATABASE_PUBLIC_URL within the postgres service, you can use that to connect to the database over the public network

gouravlohiya12
HOBBYOP

2 months ago

Actually, I am not the techy person and have no idea what you're refereing to, can you please help or solve this, I can give you whatever access you needed and don't want to lose the database.


gouravlohiya12

Actually, I am not the techy person and have no idea what you're refereing to, can you please help or solve this, I can give you whatever access you needed and don't want to lose the database.

dev
MODERATOR

2 months ago

Alright, no worries, I'll create a video guide super quick


dev
MODERATOR

2 months ago

Here's a video showing how to get the public database URL: https://i.gyazo.com/dd1e75a5271fed0dcfc5acef09d53d6d.mp4

Once you have the public database URL, you can use this wherever you're trying to connect to the database, unfortunately I can't guide you through this part since I have no other context regarding where you're trying to use it other than knowing you intend to use it over the public network


dev
MODERATOR

2 months ago

Hey did you get it working? Did my video help at all?


Loading...