Application can't access postgress
boskiv
HOBBYOP

10 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

Closed

13 Replies

10 months ago

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


boskiv
HOBBYOP

10 months ago

Yes


boskiv
HOBBYOP

10 months ago

1425930663240007763


boskiv
HOBBYOP

10 months ago

Redis works fine, but postgres only with PUBLIC


10 months ago

Assuming it's the backend that's failing


10 months ago

hmm.


10 months ago

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


boskiv
HOBBYOP

10 months ago

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


boskiv
HOBBYOP

10 months ago

maybe there is problem with ipv6 connection?


10 months ago

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


10 months ago

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


boskiv
HOBBYOP

10 months ago

that one?

1425932023532490822


10 months ago

<:squinteline:902180197426667520>


Welcome!

Sign in to your Railway account to join the conversation.

Loading...