Main service can no longer connect to Postgres through internal networking
shsiena
PROOP

11 days ago

Hi everyone, I have an app deployed on railway that has been working fine for a month straight with no changes.

All of a sudden, it seems like my main service is no longer able to reach my postgres service over the internal networking.

This is what I see in the logs from the main service:

Can't reach database server at `postgres.railway.internal:5432`
Please make sure your database server is running at `postgres.railway.internal:5432`.

and this is what I see in the postgres logs:

2025-11-27 16:26:30.683 UTC [92] WARNING:  pg_getnameinfo_all() failed: Temporary failure in name resolution
2025-11-27 16:26:30.683 UTC [92] LOG:  connection received: host=??? port=???
2025-11-27 16:26:30.684 UTC [92] LOG:  could not accept SSL connection: EOF detected
2025-11-27 16:26:30.885 UTC [95] LOG:  connection received: host=localhost port=53760
2025-11-27 16:26:30.886 UTC [95] LOG:  connection authorized: user=postgres database=railway application_name=psql
2025-11-27 16:26:30.891 UTC [95] LOG:  disconnection: session time: 0:00:00.006 user=postgres database=railway host=localhost port=53760

I have not made any recent changes that would have caused this.

My project id is e938e858-26d6-4eb7-9193-1c1488e8edfc

6 Replies

shsiena
PROOP

11 days ago

There is a very real possibility that I'm just a moron and configured something wrong, but I'm at all out of ideas for how to fix this. I would really appreciate any help


shsiena
PROOP

11 days ago

I'll be happy to provide any additional information


shsiena
PROOP

11 days ago

I've tried restarting both services, but it has not fixed it


shsiena
PROOP

11 days ago

the main service will also no longer build because it cannot connect to the postgres service


shsiena
PROOP

11 days ago

it seems like the environment is the problem, I made an exact copy and it works fine


shsiena
PROOP

11 days ago

this is very strange, any advice would be greatly appreciated


Loading...