23 days ago
Deploy failing each time due to an auth issue. I've updated a redeployed many times with no luck
2 Replies
23 days ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 23 days ago
23 days ago
Check your DB connection string is using the internal Railway/private host, not localhost or external URL.
Most common causes:
Using localhost inside container (won’t resolve)
Wrong DB host (must be Railway-provided internal service URL)
Missing ?sslmode=require (Postgres) or SSL requirement mismatch
Credentials correct but DB not exposed to same network/service
Using public URL instead of internal private networking hostname
Fix:
Use the DB service’s Railway internal connection variable
Redeploy after updating env vars (not just restart)
If still failing, paste the exact auth error log line.