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

MariaDB container fails to start #2437

Open
Richie1710 opened this issue Sep 4, 2024 · 0 comments
Open

MariaDB container fails to start #2437

Richie1710 opened this issue Sep 4, 2024 · 0 comments

Comments

@Richie1710
Copy link
Contributor

When attempting to bring up the containers using docker compose, the manager-mariadb-1 container fails to start and is marked as "unhealthy." All other containers start without issue.

The relevant logs show that the MariaDB entrypoint script attempts to check the configuration but fails during the validation step:

2024-09-04 12:09:19+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.5.2+maria~ubu2404 started.
2024-09-04 12:09:19+00:00 [ERROR] [Entrypoint]: mariadbd failed while attempting to check config
        command was: mariadbd --verbose --help

Steps to Reproduce:

  1. Run the following command to bring up the containers:

  2. docker compose --project-directory /opt/manager up -d

  3. Observe that all containers except for manager-mariadb-1 start successfully.

  4. Check the status of the manager-mariadb-1 container, which is marked as "unhealthy."

  5. Run docker logs manager-mariadb-1 to view the error logs.

logs in zuul

2024-09-04 12:04:21.601819 | ubuntu-jammy | RUNNING HANDLER [osism.services.manager : Ensure that all containers are up] ***
2024-09-04 12:04:22.435427 | ubuntu-jammy | fatal: [testbed-manager.testbed.osism.xyz]: FAILED! => {"changed": true, "cmd": ["docker", "compose", "--project-directory", "/opt/manager", "up", "-d"], "delta": "0:00:00.635876", "end": "2024-09-04 12:04:22.378981", "msg": "non-zero return code", "rc": 1, "start": "2024-09-04 12:04:21.743105", "stderr": " Container manager-conductor-1  Running\n Container osismclient  Running\n Container manager-listener-1  Running\n Container manager-beat-1  Running\n Container manager-redis-1  Running\n Container manager-flower-1  Running\n Container manager-watchdog-1  Running\n Container manager-openstack-1  Running\n Container manager-netbox-1  Running\n Container manager-inventory_reconciler-1  Running\n Container manager-api-1  Running\n Container manager-mariadb-1  Starting\n Container manager-mariadb-1  Started\n Container manager-mariadb-1  Waiting\n Container manager-mariadb-1  Error\ndependency failed to start: container manager-mariadb-1 is unhealthy", "stderr_lines": [" Container manager-conductor-1  Running", " Container osismclient  Running", " Container manager-listener-1  Running", " Container manager-beat-1  Running", " Container manager-redis-1  Running", " Container manager-flower-1  Running", " Container manager-watchdog-1  Running", " Container manager-openstack-1  Running", " Container manager-netbox-1  Running", " Container manager-inventory_reconciler-1  Running", " Container manager-api-1  Running", " Container manager-mariadb-1  Starting", " Container manager-mariadb-1  Started", " Container manager-mariadb-1  Waiting", " Container manager-mariadb-1  Error", "dependency failed to start: container manager-mariadb-1 is unhealthy"], "stdout": "", "stdout_lines": []}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant