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

Docker compose up errors when MySQL configuration got modified - MySQL not available. Retrying... #8

Open
nook24 opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nook24
Copy link
Member

nook24 commented Nov 1, 2024

When setup a new instance, changing the MySQL credentials will break the docker compose up.

In fact, when changing one of those values from openitcockpit.env, the container startup will fail with MySQL not available. Retrying...

MYSQL_DATABASE=openitcockpit_database
MYSQL_USER=openitcockpit
MYSQL_PASSWORD=openitcockpit_password 

compose output

penitcockpit-ce-docker-statusengine-worker-1   | MySQL not available. Retrying...
openitcockpit-ce-docker-openitcockpit-1        | Waiting for Statusengine to create tables...
openitcockpit-ce-docker-mod_gearman_worker-1   | Waiting for openITCOCKPIT source code to be available
openitcockpit-ce-docker-openitcockpit-1        | Waiting for Statusengine to create tables...
openitcockpit-ce-docker-statusengine-worker-1  | MySQL not available. Retrying...
openitcockpit-ce-docker-openitcockpit-1        | Waiting for Statusengine to create tables...
openitcockpit-ce-docker-statusengine-worker-1  | MySQL not available. Retrying...
openitcockpit-ce-docker-openitcockpit-1        | Waiting for Statusengine to create tables...
openitcockpit-ce-docker-openitcockpit-1        | ERROR!  

Changing this values works fine:

MYSQL_ROOT_PASSWORD=root_password
MYSQL_HOST=database-host

I was not able to test MYSQL_PORT

This affects version 4.8.2

To be fair, the comment says it's not recommended to change these values, how ever it should still be possible :)

Relates to #1
#1 (comment)

@nook24 nook24 added the bug Something isn't working label Nov 1, 2024
@nook24 nook24 mentioned this issue Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant