Error when trying to connect a Postgresql database : could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
Solved
Superset
-
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.
-
@Valexico Fixed in latest package. Atleast, I can connect to DO postgres db with the change
-
-