as my HA installation "just worked" in the past threeish years, I didn't take much (or any) time for updates. So, I am stuck now with a two year old problem related to the MariaDB addon.
I am coming from HAOS 10.1 and HA Core 2023.something, which I already upgraded to 17.3 and 2026.5.4.
I do fail, however, to upgrade the MariaDB addon from 2.5.2, which seems to be related to this problem of the DB not properly shutting down. As soon as I upgrade (in my case to 3.0.1 which is offered by the addons/apps UI), I get repeatedly the following log output:
[07:50:50] INFO: Starting MariaDB
2026-06-01 7:50:50 0 [Note] Starting MariaDB 11.4.10-MariaDB source revision 054a893f1645b77e52a329a7fc8cf614eebd1fad server_uid Vax+WMZfLOTEqhu0bqDBLuI8SRI= as process 279
2026-06-01 7:50:50 0 [Note] InnoDB: Compressed tables use zlib 1.3.2
2026-06-01 7:50:50 0 [Note] InnoDB: Number of transaction pools: 1
2026-06-01 7:50:50 0 [Note] InnoDB: Using generic crc32 instructions
2026-06-01 7:50:50 0 [Note] InnoDB: Using Linux native AIO
2026-06-01 7:50:50 0 [Note] InnoDB: innodb_buffer_pool_size_max=128m, innodb_buffer_pool_size=128m
2026-06-01 7:50:50 0 [Note] InnoDB: Completed initialization of buffer pool
2026-06-01 7:50:50 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2026-06-01 7:50:50 0 [ERROR] InnoDB: Upgrade after a crash is not supported. The redo log was created with MariaDB 10.6.8. You must start up and shut down MariaDB 10.7 or earlier.
2026-06-01 7:50:50 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2026-06-01 7:50:50 0 [Note] InnoDB: Starting shutdown...
2026-06-01 7:50:50 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2026-06-01 7:50:50 0 [Note] Plugin 'FEEDBACK' is disabled.
2026-06-01 7:50:50 0 [Note] Plugin 'wsrep-provider' is disabled.
2026-06-01 7:50:50 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2026-06-01 7:50:50 0 [ERROR] Aborting
[07:50:50] INFO: Service mariadb exited with code 1 (by signal 0)
All my attempts to manually gracefully shut down the 2.5.2 addon_core_mariadb docker container failed so far.
Executing docker stop -t 600 addon_core_mariadb (after disabling recorder and watchdog for restart) takes the full 10 minutes and after that docker inspect addon_core_mariadb shows ExitCode 137, which is "forcefully killed with SIGKILL".
I can't find any other logs showing me what might have gone wrong. docker logs addon_core_mariadb just ends with the latest startup results:
[...]
2026-06-01 7:26:19 0 [Note] /usr/bin/mariadbd: ready for connections.
Version: '10.6.10-MariaDB' socket: '/run/mysqld/mysqld.sock' port: 3306 MariaDB Server
[07:26:20] INFO: Check data integrity and fix corruptions
mysql.column_stats OK
[...]
sys.sys_config OK
[07:26:20] INFO: Ensuring internal database upgrades are performed
[07:26:21] INFO: Ensure databases exists
[07:26:21] INFO: Create database homeassistant
[07:26:21] INFO: Ensure users exists and are updated
[07:26:21] INFO: Update user homeassistant
[07:26:21] INFO: Init/Update rights
[07:26:21] INFO: Granting all privileges to homeassistant on homeassistant
[07:26:22] INFO: Successfully send service information to Home Assistant.
I also tried to jump into the container with docker exec -it addon_core_mariadb sh to shut down mariadb properly, but I not really confident what to do there. Just killing the /usr/bin/mariadbd process results in s6 to just spawn a new one:
2026-06-01 7:57:31 0 [Note] /usr/bin/mariadbd (initiated by: unknown): Normal shutdown
2026-06-01 7:57:31 0 [Note] InnoDB: FTS optimize thread exiting.
2026-06-01 7:57:31 0 [Note] InnoDB: Starting shutdown...
2026-06-01 7:57:31 0 [Note] InnoDB: Dumping buffer pool(s) to /data/databases/ib_buffer_pool
2026-06-01 7:57:31 0 [Note] InnoDB: Restricted to 2028 pages due to innodb_buf_pool_dump_pct=25
2026-06-01 7:57:31 0 [Note] InnoDB: Buffer pool(s) dump completed at 260601 7:57:31
2026-06-01 7:57:31 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2026-06-01 7:57:31 0 [Note] InnoDB: Shutdown completed; log sequence number 196819667167; transaction id 44695680
2026-06-01 7:57:31 0 [Note] /usr/bin/mariadbd: Shutdown complete
260601 07:57:31 mysqld_safe mysqld from pid file /data/databases/core-mariadb.pid ended
[05:57:31] INFO: Service restart after closing
[07:57:31] INFO: Using existing mariadb initial system
[07:57:31] INFO: Starting MariaDB
[...]
When I s6-svc -d /run/s6/legacy-services/mariadb and s6-svc -d /run/s6/legacy-services/mariadb-lock it remains gone:
2026-06-01 7:59:19 0 [Note] /usr/bin/mariadbd (initiated by: root[root] @ localhost []): Normal shutdown
2026-06-01 7:59:19 0 [Note] InnoDB: FTS optimize thread exiting.
2026-06-01 7:59:19 0 [Note] InnoDB: Starting shutdown...
2026-06-01 7:59:19 0 [Note] InnoDB: Dumping buffer pool(s) to /data/databases/ib_buffer_pool
2026-06-01 7:59:19 0 [Note] InnoDB: Restricted to 2028 pages due to innodb_buf_pool_dump_pct=25
2026-06-01 7:59:19 0 [Note] InnoDB: Buffer pool(s) dump completed at 260601 7:59:19
2026-06-01 7:59:20 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2026-06-01 7:59:20 0 [Note] InnoDB: Shutdown completed; log sequence number 196819985010; transaction id 44695739
2026-06-01 7:59:20 0 [Note] /usr/bin/mariadbd: Shutdown complete
260601 07:59:20 mysqld_safe mysqld from pid file /data/databases/core-mariadb.pid ended
[05:59:20] INFO: Service restart after closing
(there is no restart after the final INFO output)
However, stopping the container still results in SIGKILL after the 10 minutes timeout and the "Upgrade after a crash is not supported" problem after upgrading the addon to 3.0.1 remains, even though it seemed that the database properly shut down, but not the container.
I am running out of ideas, so I am trying my luck here. Is there anything more I can try?
Thanks in advance
Stefan