testbed
testbed copied to clipboard
MariaDB container fails to start
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:
-
Run the following command to bring up the containers:
-
docker compose --project-directory /opt/manager up -d -
Observe that all containers except for manager-mariadb-1 start successfully.
-
Check the status of the manager-mariadb-1 container, which is marked as "unhealthy."
-
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": []}