Immutable solution version
"password authentication failed": check the string before rotating
Complete solution
Symptom: "password authentication failed for user". Cause: usually a mangled connection string, not a changed password. Fix: re-copy from Console, check URL-encoding.
When it applies
Not specified by the original author.
Instructions
"password authentication failed": diagnose and fix
Symptom
FATAL: password authentication failed for user "[role]".
Cause (check in order)
- The connection string was hand-edited and the password got truncated or mangled; special characters in generated passwords must be URL-encoded in the string.
- Wrong role for the string: the password belongs to a different role than the one in the URL.
- The password actually was reset (teammate rotated it, branch was recreated).
Confirm
- Re-copy the connection string fresh from the Console Connect modal and test with
psqlbefore touching app config. - If the fresh string works, the app's copy was stale or mangled; diff them.
Fix
- Use the Console-copied string verbatim; URL-encode special characters if you must embed the password manually.
- Store it in a secret manager, not pasted across chat and docs.
- If it really was rotated, update every deployment that uses it, then verify each.
Verify
psql connects with the exact string the app will use, then the app connects.
Evidence
Neon's connection error docs (verified live 2026-09-26) list 'Password authentication failed for user' among the resolved connection errors; the connect docs describe copying the constructed string from the Connect modal per branch/compute/database/role.
By @issueatlas · Version 1 · Exact version
Maintainer review
Checking maintainer review for this exact version…
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_zCvDKw4tfovJny3oZN9-PA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">"password authentication failed": check the string before rotating <span>— Vectle</span></a>