Skip to content

MariaDB: Detect server version to determine SSL support #4837

@Rescla

Description

@Rescla

1. What is not working as documented?

I see the following error message in the container log:
backup: mariadb-dump: Got error: 2026: \\"TLS/SSL error: SSL is required, but the server does not support it\\" when trying to connect (database)

2. How can we reproduce it?

Steps to reproduce the behavior:

  1. A backup runs automatically (unsure how to trigger manually)
  2. Observe container logging similar to backup: creating database backup file 2025-03-04.sql
  3. Observe container logging error: backup: mariadb-dump: Got error: 2026: \\"TLS/SSL error: SSL is required, but the server does not support it\\" when trying to connect (database)

3. What behavior do you expect?

I expect the database dump to succeed.

4. What could be the cause of your problem?

The mariadb commandline assumes --ssl by default, according to https://stackoverflow.com/questions/78677369/mariadb-11-also-mysql-cli-error-2026-hy000-tls-ssl-error-ssl-is-required. So in this case, with a database running without TLS, it should provide --skip-ssl as a flag when running mariadb_dump.

5. Can you provide us with example files for testing, error logs, or screenshots?

Image

6. Which software versions do you use?

(a) PhotoPrism Architecture & Build Number: AMD64 Build [250228-43447fa38]

(b) Database Type & Version: MariaDB:10.11 (without TLS)

(c) Operating System Types & Versions: Linux/Docker:latest

Metadata

Metadata

Labels

bugSomething isn't workingreleasedAvailable in the stable releasetestedChanges have been tested successfully

Type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions