[bitnami/mariadb] [11.4] Healthcheck fails if `ALLOW_EMPTY_PASSWORD` is enabled
Name and Version
bitnami/mariadb:11.4.3
What architecture are you using?
amd64
What steps will reproduce the bug?
- 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
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.
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.
The problem still exists.
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.
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.
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.
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.