Application can't access postgress
boskiv
HOBBYOP

2 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

0 Replies

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


boskiv
HOBBYOP

2 months ago

Yes


boskiv
HOBBYOP

2 months ago

1425930663240007700


boskiv
HOBBYOP

2 months ago

Redis works fine, but postgres only with PUBLIC


Assuming it's the backend that's failing



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


boskiv
HOBBYOP

2 months ago

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


boskiv
HOBBYOP

2 months ago

maybe there is problem with ipv6 connection?


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


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


boskiv
HOBBYOP

2 months ago

that one?

1425932023532490800


<:squinteline:902180197426667520>


Loading...