nextcloud / nextcloud/helm

Init container lacks command line argument for mariadb

Open
#770 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go Template
Stars
534
Forks
314
Avg merge
42m
Merged PRs (30d)
1

Description

Describe your Issue

Since a few releases the init container that checks for availability of the database no longer works correctly for mariadb. As a consequence the database check constantly fails and nextcloud itself never comes up.

Logs and Errors

The logs of the init container show repeatedly:

ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it  

The fix is to add the command line flag --skip-ssl to the command line of the init container. However, as I don't know whether this may break other setups I did not simply create a PR containing this flag. A more elaborate solution may be required, e.g. introducing a value that can be set optionally.

Describe your Environment

  • Kubernetes distribution: k3s

  • Helm Version (or App that manages helm):
    controlled by fluxcd

  • Helm Chart Version: 7.0.3
    (but also happened with a few previous versions already)

  • values.yaml:
    (relevant part)

    mariadb:
      enabled: true
      auth:
        existingSecret: "mariadb-secret"
      primary:
        persistence:
          enabled: true

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the chart templates for the init container's database availability command and inspect how its arguments are generated. Reproduce the MariaDB check with the reported values, then verify that the check succeeds without the TLS error and that other database setups are not broken.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes, mariadb
Domain
databases, devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.