Error when trying to connect a Postgresql database : could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
-
This error occurs with default engine (psycopg2)
(psycopg2.OperationalError) connection to server at "**********" (151.80.10.***), port 5432 failed: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied (Background on this error at: https://sqlalche.me/e/14/e3q8)I think it is a cloudron app issue
You can workaround using sqlalchemy.
-
pretty sure it has to be via ssh if your app is outside of cloudron
*nvm i now see you're going out from cloudron -
There is in issue in the library somewhere. See https://github.com/psycopg/psycopg2/issues/1535 and https://gitlab.alpinelinux.org/alpine/aports/-/issues/14565 . I put a workaround to make it work. Should have a new package soon.
-
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login


