Connection refused when connect django to database hosted in railways
ramadhaniasri
TRIALOP

2 years ago

I got error like this
RuntimeWarning: Got an error checking a consistent migration history performed for database connection 'default': connection to server at "

postgres.railway.internal

" (36.86.63.182), port 5432 failed: Operation timed out

Is the server running on that host and accepting TCP/IP connections?

warnings.warn(

No changes detected

Solved

5 Replies

brody
EMPLOYEE

2 years ago

When developing locally you need to connect to the database with the public host and port for the database.


ramadhaniasri
TRIALOP

2 years ago

When developing locally you need to connect to the database with the public host and port for the database.

I try to access the database with dbeaver and public host but got error "Connection attempt timed out.", why?


ramadhaniasri
TRIALOP

2 years ago

When developing locally you need to connect to the database with the public host and port for the database.

I try to access the database with dbeaver but got error "Connection attempt timed out.", why?


brody
EMPLOYEE

2 years ago

You would need to use the public host and port.


ramadhaniasri
TRIALOP

2 years ago

You would need to use the public host and port.

resolved by following this case
https://help.railway.app/questions/how-long-does-it-take-for-a-generated-pu-9c9adc6f

Thank you brody


Status changed to Solved brody over 1 year ago


Loading...