containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/mariadb] [11.4] Healthcheck fails if `ALLOW_EMPTY_PASSWORD` is enabled

Open simonhammes opened this issue 1 year ago • 5 comments

Name and Version

bitnami/mariadb:11.4.3

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Create docker-compose.yml:
services:
  mariadb:
    image: docker.io/bitnami/mariadb:11.4.3
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    healthcheck:
      test: ['CMD', '/opt/bitnami/scripts/mariadb/healthcheck.sh']
      interval: 15s
      timeout: 5s
      retries: 6
  1. docker compose up -d

What is the expected behavior?

Service is healthy

What do you see instead?

Service is unhealthy (docker compose ps)

Output of docker inspect $CONTAINER_ID --format "{{json .State.Health }}" | jq:

Output

{
  "Status": "unhealthy",
  "FailingStreak": 51,
  "Log": [
    {
      "Start": "2024-08-23T22:32:44.165685203+02:00",
      "End": "2024-08-23T22:32:44.260822122+02:00",
      "ExitCode": 1,
      "Output": "mysqladmin: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/bin/mariadb-admin' instead\n\u0007mysqladmin: connect to server at '0.0.0.0' failed\nerror: 'TLS/SSL error: self-signed certificate'\n"
    },
    {
      "Start": "2024-08-23T22:32:59.262190858+02:00",
      "End": "2024-08-23T22:32:59.344709051+02:00",
      "ExitCode": 1,
      "Output": "mysqladmin: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/bin/mariadb-admin' instead\n\u0007mysqladmin: connect to server at '0.0.0.0' failed\nerror: 'TLS/SSL error: self-signed certificate'\n"
    },
    {
      "Start": "2024-08-23T22:33:14.345391098+02:00",
      "End": "2024-08-23T22:33:14.427617974+02:00",
      "ExitCode": 1,
      "Output": "mysqladmin: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/bin/mariadb-admin' instead\n\u0007mysqladmin: connect to server at '0.0.0.0' failed\nerror: 'TLS/SSL error: self-signed certificate'\n"
    },
    {
      "Start": "2024-08-23T22:33:29.42864501+02:00",
      "End": "2024-08-23T22:33:29.521816032+02:00",
      "ExitCode": 1,
      "Output": "mysqladmin: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/bin/mariadb-admin' instead\n\u0007mysqladmin: connect to server at '0.0.0.0' failed\nerror: 'TLS/SSL error: self-signed certificate'\n"
    },
    {
      "Start": "2024-08-23T22:33:44.522180335+02:00",
      "End": "2024-08-23T22:33:44.609854913+02:00",
      "ExitCode": 1,
      "Output": "mysqladmin: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/bin/mariadb-admin' instead\n\u0007mysqladmin: connect to server at '0.0.0.0' failed\nerror: 'TLS/SSL error: self-signed certificate'\n"
    }
  ]
}

Additional information

Possibly related to https://github.com/bitnami/containers/issues/70392#issuecomment-2260885622 :shrug:

11.2 works fine.

simonhammes avatar Aug 23 '24 20:08 simonhammes

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Sep 11 '24 01:09 github-actions[bot]

The problem still exists.

simonhammes avatar Sep 12 '24 19:09 simonhammes

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Sep 28 '24 01:09 github-actions[bot]

I've further isolated the issue:

The problem only occurs if ALLOW_EMPTY_PASSWORD is enabled. This worked when using 10.11, i.e. the service got healthy.

simonhammes avatar Sep 30 '24 18:09 simonhammes

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Oct 17 '24 01:10 github-actions[bot]

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

github-actions[bot] avatar Oct 23 '24 01:10 github-actions[bot]