wallabag / docker

Official docker-composer for wallabag.
615 stars 153 forks source link

MariaDB healthcheck changes in docker-compose sample #342

Open simondarwent opened 1 year ago

simondarwent commented 1 year ago

With the recent update to MariaDB 11, the health check in the sample docker-compose leaves the container showing as unhealthy with an error output:

OCI runtime exec failed: exec failed: unable to start container process: exec: "mysqladmin": executable file not found in $PATH: unknown

Appears this is expected behaviour due to the removal of mysqladmin and suggests an alternative method to track container health using a healthcheck.sh script:

https://mariadb.org/mariadb-server-docker-official-images-healthcheck-without-mysqladmin/

emijime commented 1 year ago

I have exactly the same issue from the previous update.

couladin commented 1 year ago

This is related to the tip given in #311, except the mysqladmin command no longer works. Suspect MariaDB removed that recently, but mariadb-admin does work properly.

In Docker, my Wallabag+MariaDB+Redis stack stopped working with a recent update, but altering the healthcheck line in my docker-compose file to the following makes it work perfectly:

test: ["CMD", "mariadb-admin" ,"ping", "-h", "localhost", "--password=<value_of_MYSQL_ROOT_PASSWORD_variable>"]
GAS85 commented 7 months ago

There is a solution in a #381