Why am I getting the error "WARNING server login failed..." when using PGBouncer on Heroku Postgres

Issue

When trying to connect to Heroku Postgres with a custom PGBouncer installation, all connections fail with an error like

WARNING server login failed: FATAL password authentication failed for user "..."

Note that this does not apply when using the Heroku PGBouncer buildpack.

Resolution

Any of the above should work around the issue

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support