Question

<PG::ConnectionBad: FATAL: role "xxx" is not permitted to log in yyy

My app are experimenting some issue with Postgres Database on Basic Configuration with No Database Component was in use. We are using some kind of PG service provided by App Plataform that we do not know how to control.

Until now the app doesn’t show any errors at all from PG. But today we received an Exception named <PG::ConnectionBad: FATAL: role “xxx” is not permitted to log in yyy.

No changes was made to the code before that exception, only environment CONFIG_LOG_LEVEL was changed from debug to fatal.

That is all We now. Our app it is in production, so we need some useful responses to back to respond to users. Thanks.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
December 4, 2022

Hi there,

As you are getting a connection error it is possible that the problem was related to the following incident:

https://status.digitalocean.com/incidents/fmk878fdmp3k

This seems to be fixed already, are you still existing the problem?

If this is the case, it sounds like you are using a dev database. Note that, dev databases, are not intended for production use. If this is the case, I would recommend upgrading your dev database to a managed Postgres instance as described here:

https://docs.digitalocean.com/products/app-platform/how-to/manage-databases/#upgrade-dev-database-to-managed-database

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel