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
Answer a question...

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