11 days ago
Hello Railway Support Team,
I am running into a persistent internal networking issue after rotating the POSTGRES_PASSWORD on my Postgres service.
My app (dcc-v2-app) is failing to deploy because the internal database connection throws a 28P01 (password authentication failed) error during the build phase. However, I have verified that the credentials are correct.
Here is the hard evidence of the paradox:
- Public DSN works: If I connect using
DATABASE_PUBLIC_URLfrom my local machine using the exact same password, authentication succeeds perfectly. - Hashes match: I have verified that the password hash on
dcc-v2-app'sDATABASE_URLis 100% identical to the Postgres service'sPOSTGRES_PASSWORDandDATABASE_PUBLIC_URL. - The failure is strictly internal: The deployment (using the internal
postgres.railway.internalDSN) fails with28P01, even though the exact same password string works externally. Restarting the Postgres service did not clear the issue.
Example Failed Deployment ID:22b46015-9b94-460e-a5b9-ce8ae0eb3b5e
It appears that Railway's internal TCP proxy or network layer has cached a stale connection state or is failing to route the new credentials properly for internal VPC connections.
Could you please investigate and flush the internal network cache for my project so the internal DSN resolves correctly during deployment?
Thank you!
1 Replies
11 days ago
Private networking is not available during the build phase, so any connection to postgres.railway.internal will fail during a build regardless of credentials. This is not a caching issue. If you need database access at build time (e.g. for migrations or schema generation), use DATABASE_PUBLIC_URL instead, or move the database-dependent step to the deploy/start phase where the private network is available.
Status changed to Awaiting User Response Railway • 11 days ago
Status changed to Solved mmusamba • 8 days ago