Bug Description
Prisma migrations fail with P1001 when targeting a dual-stack Neon direct host in the Railway environment. Railway containers appear unable to route IPv6 traffic to the Neon host, and Prisma fails to fall back to IPv4.
Evidence
- Environment: Railway service with running (Prisma 7.8.0).
- Target: Neon direct host .
- Logs: Env check OK for
DATABASE_URL and DIRECT_URL. Prisma loads prisma.config.ts. Host resolves to the Neon direct host.
- Connectivity Check (inside Railway SSH):
- DNS lookup for the Neon host returns both IPv4 and IPv6 addresses.
- Manual TCP connect to all IPv4 addresses on port 5432 succeeds.
- Manual TCP connect to all IPv6 addresses fails immediately with
ENETUNREACH.
- Failure:
node prisma migrate status fails with P1001 against the host in this environment.
Reproduction
- Deploy a service on Railway.
- Configure
DIRECT_URL to a dual-stack Neon direct host (e.g., ep-twilight-violet-abrhe2ph.eu-west-2.aws.neon.tech).
- Run
prisma migrate status or prisma migrate deploy during build/pre-deploy.
- Observe P1001 error despite IPv4 connectivity being functional.
Expected Behavior
Railway containers should either have functional IPv6 routing to dual-stack hosts, or Prisma should successfully fallback to the reachable IPv4 addresses when IPv6 returns ENETUNREACH.
Actual Behavior
Prisma fails with P1001 because it likely attempts IPv6 (returned by DNS), which fails with ENETUNREACH in the Railway container, and it does not recover via IPv4.
Note: If this is a platform/runtime networking issue rather than a CLI issue, please redirect this to the appropriate internal tracker.
Bug Description
Prisma migrations fail with P1001 when targeting a dual-stack Neon direct host in the Railway environment. Railway containers appear unable to route IPv6 traffic to the Neon host, and Prisma fails to fall back to IPv4.
Evidence
DATABASE_URLandDIRECT_URL. Prisma loadsprisma.config.ts. Host resolves to the Neon direct host.ENETUNREACH.node prisma migrate statusfails with P1001 against the host in this environment.Reproduction
DIRECT_URLto a dual-stack Neon direct host (e.g.,ep-twilight-violet-abrhe2ph.eu-west-2.aws.neon.tech).prisma migrate statusorprisma migrate deployduring build/pre-deploy.Expected Behavior
Railway containers should either have functional IPv6 routing to dual-stack hosts, or Prisma should successfully fallback to the reachable IPv4 addresses when IPv6 returns
ENETUNREACH.Actual Behavior
Prisma fails with P1001 because it likely attempts IPv6 (returned by DNS), which fails with
ENETUNREACHin the Railway container, and it does not recover via IPv4.Note: If this is a platform/runtime networking issue rather than a CLI issue, please redirect this to the appropriate internal tracker.