Production app can’t connect to Railway Postgres (Prisma P1001 / NextAuth session failures)
pedroluizrocha
PROOP

23 days ago

Our production Next.js app (dashboard, domain app.humanbase.ai) is currently unable to connect to the Railway Postgres database through the configured DATABASE_URL. This causes authentication to break (NextAuth can’t read sessions) and the app returns 500/503 errors.

Impact:

  • Users cannot log in (NextAuth adapter_error_getSessionAndUser / SESSION_ERROR).

  • /api/auth/check-email returns 500.

Error details (from app logs):

  • Prisma error: P1001

  • Failing call: prisma.session.findUnique() (NextAuth adapter getSessionAndUser)

Observed behavior:

  • Postgres service shows as “Active” and logs show normal checkpoints.

  • However, the app runtime cannot reach the proxy host/port (ballast.proxy.rlwy.net:59232), suggesting a proxy/endpoint connectivity issue or the app DATABASE_URL is stale/outdated.

Request:

Please confirm whether the Postgres proxy endpoint ballast.proxy.rlwy.net:59232 is healthy and still valid, whether there was any recent endpoint/port rotation, and what the recommended stable connection string is (preferably an internal/private URL between services). Also confirm if there is any network/SSH/proxy incident affecting database connectivity from services in production.

Solved

1 Replies

22 days ago

Hello,

We had an incident earlier that caused some running workloads to be unexpectedly terminated while the status in the UI didn't properly update. This has since been resolved, but in some cases, you may need to redeploy your services.

You can find the post-mortem for the incident here: https://blog.railway.com/p/incident-report-february-11-2026

Our deepest apologies for the inconvenience this has caused.


Status changed to Awaiting User Response Railway 22 days ago


Railway
BOT

15 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 15 days ago


Loading...