MariaDb container suddenly stopped starting

I installed the most recent 2024.1.4. update. Then I rebooted my Home Assistant Supervised x86 server. After that, suddenly, MariaDb does not start any more. It is very difficult to find anything, because even the manual start of MariaDb does not run. Here is what happens when I Docker run it. Can anyone help?

~ at orava ➜  sudo docker run homeassistant/amd64-addon-mariadb:latest
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service mariadb-pre: starting
[06:49:44] INFO: Create a new mariadb
s6-rc: info: service mariadb-pre successfully started
s6-rc: info: service mariadb-core: starting
s6-rc: info: service mariadb-core successfully started
s6-rc: info: service mariadb-post: starting
[06:49:45] INFO: Starting MariaDB
2024-01-20  6:49:45 0 [Note] Starting MariaDB 10.6.12-MariaDB source revision 4c79e15cc3716f69c044d4287ad2160da8101cdc as process 119
2024-01-20  6:49:45 0 [Note] InnoDB: Compressed tables use zlib 1.2.12
2024-01-20  6:49:45 0 [Note] InnoDB: Number of pools: 1
2024-01-20  6:49:45 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-01-20  6:49:45 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
2024-01-20  6:49:45 0 [Note] InnoDB: Using Linux native AIO
2024-01-20  6:49:45 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-01-20  6:49:45 0 [Note] InnoDB: Completed initialization of buffer pool
2024-01-20  6:49:45 0 [Note] InnoDB: 128 rollback segments are active.
2024-01-20  6:49:45 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-01-20  6:49:45 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-01-20  6:49:45 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-01-20  6:49:45 0 [Note] InnoDB: 10.6.12 started; log sequence number 42120; transaction id 14
2024-01-20  6:49:45 0 [Note] InnoDB: Loading buffer pool(s) from /data/databases/ib_buffer_pool
2024-01-20  6:49:45 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-01-20  6:49:45 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-01-20  6:49:45 0 [Note] Server socket created on IP: '::'.
2024-01-20  6:49:45 0 [Note] InnoDB: Buffer pool(s) load completed at 240120  6:49:45
2024-01-20  6:49:45 0 [Warning] 'proxies_priv' entry '@% root@66d6614eb4cb' ignored in --skip-name-resolve mode.
2024-01-20  6:49:45 0 [Note] mysqld: ready for connections.
Version: '10.6.12-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  MariaDB Server
[06:49:46] INFO: MariaDB started
curl: (6) Could not resolve host: supervisor
[06:49:46] INFO: Check data integrity and fix corruptions
mysql.column_stats                                 OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.global_priv                                  OK
mysql.gtid_slave_pos                               OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.index_stats                                  OK
mysql.innodb_index_stats                           OK
mysql.innodb_table_stats                           OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.roles_mapping                                OK
mysql.servers                                      OK
mysql.table_stats                                  OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.transaction_registry                         OK
sys.sys_config                                     OK
[06:49:47] INFO: Ensuring internal database upgrades are performed
[06:49:47] INFO: Ensure databases exists
curl: (6) Could not resolve host: supervisor
[06:49:47] ERROR: Something went wrong contacting the API
[06:49:47] INFO: Create database null
[06:49:47] INFO: Ensure users exists and are updated
jq: error (at <stdin>:1): null (null) has no keys
[06:49:47] INFO: Init/Update rights
jq: error (at <stdin>:1): null (null) has no keys
[06:49:47] INFO: Sending service information to Home Assistant
curl: (6) Could not resolve host: supervisor
[06:49:47] ERROR: Something went wrong contacting the API
s6-rc: warning: unable to start service mariadb-post: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service mariadb-core: stopping
2024-01-20  6:49:47 0 [Note] mysqld (initiated by: unknown): Normal shutdown
2024-01-20  6:49:47 0 [Note] InnoDB: FTS optimize thread exiting.
2024-01-20  6:49:47 0 [Note] InnoDB: Starting shutdown...
2024-01-20  6:49:47 0 [Note] InnoDB: Dumping buffer pool(s) to /data/databases/ib_buffer_pool
2024-01-20  6:49:47 0 [Note] InnoDB: Buffer pool(s) dump completed at 240120  6:49:47
2024-01-20  6:49:47 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-01-20  6:49:47 0 [Note] InnoDB: Shutdown completed; log sequence number 42132; transaction id 15
2024-01-20  6:49:47 0 [Note] mysqld: Shutdown complete

[06:49:47] INFO: Service mariadb exited with code 0 (by signal 0)
s6-rc: info: service mariadb-core successfully stopped
s6-rc: info: service mariadb-pre: stopping
s6-rc: info: service mariadb-pre successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

To add clarification, all subsequent errors happen because core-mariadb container is not running.

I found the reason and I think it is very important to know. I also did an update to docker-ce version 5.25.0.0. IT DOES NOT WORK with MariaDB container, at least in my setup. The solution is to downgrade to 5.24.0.7. Now it runs fine. This is Debian Bookworm amd64 and the package source is directly from Docker Bookworm stable repository.

1 Like

I had the same problem after updating to docker 5.25.0.0 running on Debian 12.4. Reverting to a previous snapshot with docker 5.24.0.7 got me running again.

1 Like

Can confirm, same setup here.

The full instructions and a notification is here: Home Assistant Supervisor based installations fail after Docker upgrade