Postgres password out of sync - production app down
suirunakamura
PROOP

a month ago

Project: restaurant-analysis (106ff76f-5655-4723-a328-d38e691fd237)

Environment: production (4db1ff34-397b-43e5-b4cf-faa0e9d0931e)

Postgres Service: postgres-production-3438 (611a8eb9-d672-40db-b332-aa96e0636254)

App Service: restaurant-analysis (87c63d05-a8c3-400c-b1f0-217af1d1217d)

URGENT: production app is down. The postgres user's password got out of sync

with all environment variables after multiple ALTER USER attempts today.

  • Postgres Online, data intact
  • restaurant-analysis CRASHED: "FATAL: password authentication failed for user postgres"
  • All external connections rejected; no in-container terminal access
  • All DB variables are direct values

Request (either is fine):

(A) If possible, roll back the Postgres password / variables to the state

  before today's changes (before ~03:00 UTC / 12:00 JST July 9).

(B) Otherwise, reset the postgres user's password at the infrastructure level

  (data intact) and set POSTGRES_PASSWORD / PGPASSWORD / DATABASE_URL / 

  DATABASE_PUBLIC_URL to a single matching value.
$20 Bounty

3 Replies

Railway
BOT

a month ago

The Credentials tab on your Postgres service can regenerate the password and update all related environment variables in sync, which is exactly what you need here. Open the Postgres service, go to the Credentials tab, and use the regenerate option. After that, redeploy your restaurant-analysis service so it picks up the new values.


Status changed to Awaiting User Response Railway about 1 month ago


suirunakamura
PROOP

a month ago

The bot's answer doesn't work — there is NO "Credentials" tab on the Postgres

service in the current UI. I checked all tabs:

Deployments / Database / Backups / Variables / Metrics / Console / Settings.

Under Settings: Source / Networking / Edge / Scale / Deploy / Feature-flags / Danger.

There is no self-service password regenerate option anywhere.

I have already confirmed (via Railway's own AI assistant) that this requires

infrastructure-level access. Please have a human from the Railway team:

(A) roll back the Postgres password/variables to before ~03:00 UTC July 9, OR

(B) reset the postgres user's password at the infra level (data intact) and

sync POSTGRES_PASSWORD / PGPASSWORD / DATABASE_URL / DATABASE_PUBLIC_URL 

to a single matching value.

Production app (restaurant-analysis) has been down for hours. This is urgent.


Status changed to Awaiting Railway Response Railway about 1 month ago


Railway
BOT

a month ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway about 1 month ago


There should be a place for you to regenerate/rotate credentials if you go to the Database tab > Config.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...