Internal network connection issue - App cannot reach PostgreSQL via internal address
ip9202
HOBBYOP

3 months ago

Subject: Internal network connection issue - App cannot reach PostgreSQL via internal address

Message:

Hi Railway Support,

I'm experiencing an internal network connectivity issue between my app service and PostgreSQL database.

Project: hondimarket

Environment: production

Services: social_market (Next.js app) + Postgres

Issue:

- My app cannot connect to PostgreSQL using the internal address postgres.railway.internal:5432

- Error message: Can't reach database server at postgres.railway.internal:5432

- The PostgreSQL service is running and healthy (confirmed via deploy logs)

- External connection via switchback.proxy.rlwy.net:17764 works fine

- No code changes were made - this started happening suddenly

Steps I've tried:

1. Redeployed the app service

2. Restarted PostgreSQL service

3. Both services show "Active" status

Current workaround:

Using external DATABASE_URL as a temporary fix, but this incurs egress fees.

Could you please investigate the internal network connectivity between these services?

Thank you.

Solved

10 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


3 months ago

Can you enable Primsa debugging so we can see the underlying error?

DEBUG="prisma:*"


Status changed to Awaiting User Response Railway 3 months ago


brody

Can you enable Primsa debugging so we can see the underlying error?DEBUG="prisma:*"

ip9202
HOBBYOP

3 months ago

Here are the Prisma debug logs with DEBUG="prisma:*" enabled:

Error Code: P1001

Message: Can't reach database server at postgres.railway.internal:5432

prisma:client:libraryEngine sending request, this.libraryStarted: false

prisma:client:libraryEngine library starting

prisma:error Invalid prisma.landingRegion.findMany() invocation:

Can't reach database server at postgres.railway.internal:5432

Additional info:

- Prisma Client version: 6.19.0

- External connection (switchback.proxy.rlwy.net:17764) works fine

- Internal DNS resolution seems to be failing

---


Status changed to Awaiting Railway Response Railway 3 months ago


3 months ago

Is this intermittent or consistently reproducible?


Status changed to Awaiting User Response Railway 3 months ago


ray-chen

Is this intermittent or consistently reproducible?

ip9202
HOBBYOP

3 months ago

Consistently reproducible.

The issue started at December 3rd, 2025, 12:00 PM KST

(03:00 UTC) and has been failing every time since then.

- Internal address (postgres.railway.internal:5432) →

always fails with P1001

- External address (switchback.proxy.rlwy.net:17764) →

always works

No code changes were made. It suddenly stopped working at

that specific time.

Currently using the external address as a temporary

workaround.


Status changed to Awaiting Railway Response Railway 3 months ago


ramfat
HOBBY

3 months ago

Hi. I'm having the exact same issue. Internal networking seems to not work at all in my new project. Using public Host & Port / URL works everytime. So far i've tried with a Mysql DB, Redis and MinIO service..
Can we get an official Railway response? It's been causing me massive headaches


ramfat

Hi. I'm having the exact same issue. Internal networking seems to not work at all in my new project. Using public Host & Port / URL works everytime. So far i've tried with a Mysql DB, Redis and MinIO service.. Can we get an official Railway response? It's been causing me massive headaches

ip9202
HOBBYOP

3 months ago

I don't kwow.. and. I want to know!!!.. so angry!!!!!!!!!!!!!!!!!!!


3 months ago

Could you create your own threads and select the impacted service when doing so, please? This will help us track and aggregate these issues. Thank you


Status changed to Awaiting User Response Railway 3 months ago


ip9202

I don't kwow.. and. I want to know!!!.. so angry!!!!!!!!!!!!!!!!!!!

ramfat
HOBBY

3 months ago

Not sure what you're on about, I was just raising awareness of the issue as it seems more people than me have been affected.
I've been trying to debug my service for a lot of hours now due to this issue, figured I might save time for someone else.

@ray-chen, i've created my own thread, thanks.


Status changed to Awaiting Railway Response Railway 3 months ago


Hey there,

We might have rolled out a fix that would have fixed the issue.


Status changed to Awaiting User Response Railway 3 months ago


Status changed to Solved ip9202 3 months ago


Loading...