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

Configure host to be 'localhost' in healthchecks #640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomasbach-dev
Copy link

Not sure, what the exact condition is that this occurs, but on my system I get

ERROR 1045 (28000): Access denied for user 'healthcheck'@'172.17...' (using password: YES)

The healthcheck user is granted access only from localhost. So we should ensure that the host we query is indeed localhost.

Not sure, what the exact condition is that this occurs, but on my system I get

ERROR 1045 (28000): Access denied for user 'healthcheck'@'172.17...' (using password: YES)

The healthcheck user is granted access only from localhost. So we should ensure that the host we query is indeed localhost.
@grooverdan
Copy link
Member

Its probably an old datadir.

Can reboot the healthcheck is user by removing the /var/lib/mysql/.my-healthcheck.cnf and start the container with MARIADB_AUTO_UPGRADE=1. This will fill in the creation of all the healtcheck users.

Localhost isn't recommended as part of the early container starts a temporary mariadbd instance in upgrade/initialization with --skip-networking, which means it is accessible via localhost (socket), and will falsely report a successful healthcheck even though not ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants