Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Nextcloud Postgres SSL issue #237

@davidfrickert

Description

@davidfrickert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions