Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring Postgresql when running the container as a non-root user. #395

Merged
merged 5 commits into from
Jan 11, 2025

Conversation

OriolFilter
Copy link
Contributor

@OriolFilter OriolFilter commented Jan 5, 2025

Using container linuxserver.io image, when the ENV PUID is not set to root/0 it raises the following error:

sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "bazarr-db" (10.105.54.22), port 5432 failed: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
connection to server at "bazarr-db" (10.105.54.22), port 5432 failed: FATAL:  pg_hba.conf rejects connection for host "127.0.0.6", user "bazarr", database "bazarr_db", no encryption

To circumvent this, the ENV variable PGSSLCERT can be populated with a path the user has access to.

ie.

PGSSLCERT="/tmp/postgresql.crt"

Nevertheless I'm not sure if that's something that want to be specified within the Wiki.

@morpheus65535
Copy link
Contributor

Wrong image URL?

@OriolFilter
Copy link
Contributor Author

True, fixed it

@morpheus65535 morpheus65535 merged commit 6703e1b into bazarr:main Jan 11, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants