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

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

Closed
simonhammes opened this issue Aug 23, 2024 · 6 comments
Closed
Assignees
Labels
mariadb solved stale 15 days without activity tech-issues The user has a technical issue about an application

Comments

@simonhammes
Copy link
Contributor

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 #70392 (comment) 🤷

11.2 works fine.

@simonhammes simonhammes added the tech-issues The user has a technical issue about an application label Aug 23, 2024
@github-actions github-actions bot added the triage Triage is needed label Aug 23, 2024
@github-actions github-actions bot removed the triage Triage is needed label Aug 26, 2024
@github-actions github-actions bot assigned migruiz4 and unassigned carrodher Aug 26, 2024
Copy link

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 github-actions bot added the stale 15 days without activity label Sep 11, 2024
@simonhammes
Copy link
Contributor Author

The problem still exists.

@github-actions github-actions bot removed the stale 15 days without activity label Sep 13, 2024
Copy link

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 github-actions bot added the stale 15 days without activity label Sep 28, 2024
@simonhammes
Copy link
Contributor Author

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 simonhammes changed the title [bitnami/mariadb] [11.4] Healthcheck fails with TLS/SSL error [bitnami/mariadb] [11.4] Healthcheck fails if ALLOW_EMPTY_PASSWORD is enabled Sep 30, 2024
@github-actions github-actions bot removed the stale 15 days without activity label Oct 1, 2024
Copy link

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 github-actions bot added the stale 15 days without activity label Oct 17, 2024
Copy link

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.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mariadb solved stale 15 days without activity tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

4 participants