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

Nextcloud Postgres SSL issue #237

Open
davidfrickert opened this issue Jun 2, 2024 · 0 comments
Open

Nextcloud Postgres SSL issue #237

davidfrickert opened this issue Jun 2, 2024 · 0 comments

Comments

@davidfrickert
Copy link

davidfrickert commented Jun 2, 2024

Small issue that i encountered but relatively easy fix.

If you use postgres as a database and it enforces SSL, you need to ensure your config.php has the appropriate ssl connection param, or MediaDC will fail. e.g.:

  'dbhost' => 'tools-pg:5432;sslmode=require',

The above works.

  'dbhost' => 'tools-pg

The above does not:

pg8000.exceptions.DatabaseError: {'S': 'FATAL', 'V': 'FATAL', 'C': '28000', 'M': 'pg_hba.conf rejects connection for host "10.42.3.91", user "nextcloud", database "nextcloud", no encryption', 'F': 'auth.c', 'L': '467', 'R': 'ClientAuthentication'}

It seems that Nextcloud by default attempts SSL connection, but MediaDC does not I guess.

This issue can be used to investigate the behaviour difference, or purely for info if anyone else encounters the same issue.

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

No branches or pull requests

1 participant