Application can't access postgress
boskiv
HOBBYOP

4 months ago

2025/10/09 19:00:50 Unable to ping database:  postgresql://postgres:xxxxxxxxxx@postgres.railway.internal:5432/railway
2025/10/09 19:00:50 Failed to connect to database: unable to ping database: context deadline exceeded

But Public URL works fine

13 Replies

samgordon
PRO

4 months ago

Is this project that is attempting to connect the database within the same project as the database?


boskiv
HOBBYOP

4 months ago

Yes


boskiv
HOBBYOP

4 months ago

1425930663240007700


boskiv
HOBBYOP

4 months ago

Redis works fine, but postgres only with PUBLIC


samgordon
PRO

4 months ago

Assuming it's the backend that's failing


samgordon
PRO

4 months ago

hmm.


samgordon
PRO

4 months ago

Is this the default Postgres template? Created by right click -> postgres?


boskiv
HOBBYOP

4 months ago

yes it is. but maybe it's my application code? there is golang


boskiv
HOBBYOP

4 months ago

maybe there is problem with ipv6 connection?


samgordon
PRO

4 months ago

If it's the default template then it should be bound to IPv6 just fine


samgordon
PRO

4 months ago

Can you screenshot the private networking settings under the postgres service?


boskiv
HOBBYOP

4 months ago

that one?

1425932023532490800


samgordon
PRO

4 months ago

<:squinteline:902180197426667520>


Loading...