- Edited
Hi all,
I have upgraded to 2025-03 and are now facing the problem, that the mariadb container is not starting properly [1]. Subsequentially, th sogo container is also restarting frequently as it is “Waiting for schema update...
”
Maybe somebody has encountered a similar issue and has a suggestion on how to fix the DB?
Cheers and thanks for all suggestions,
Thomas
[1]
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [ERROR] mariadbd: Got error ‘Could not get an exclusive lock; file is probably in use by another process’ when trying to use aria control file ‘/var/lib/mysql/aria_log_control’
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [ERROR] Plugin ‘Aria’ registration as a STORAGE ENGINE failed.
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [Note] InnoDB: Number of transaction pools: 1
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [Note] InnoDB: Using ARMv8 crc32 + pmull instructions
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [Note] InnoDB: Initializing buffer pool, total size = 24.000MiB, chunk size = 1.000MiB
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [Note] InnoDB: Completed initialization of buffer pool
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [ERROR] InnoDB: Upgrade after a crash is not supported. The redo log was created with MariaDB 10.5.27. You must start up and shut down MariaDB 10.7 or earlier.
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [Note] InnoDB: Starting shutdown…
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [ERROR] Could not open mysql.plugin table: “Unknown storage engine ‘Aria’”. Some plugins may be not loaded
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [ERROR] Failed to initialize plugins.
mysql-mailcow-1 | 2025-04-03 17:11:06 0 [ERROR] Aborting
mysql-mailcow-1 | 2025-04-03 17:11:08+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.11+mariaubu2204 started.
mysql-mailcow-1 | 2025-04-03 17:11:08+02:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
mysql-mailcow-1 | 2025-04-03 17:11:08+02:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
mysql-mailcow-1 | 2025-04-03 17:11:08+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.11+mariaubu2204 started.
mysql-mailcow-1 | 2025-04-03 17:11:09+02:00 [Note] [Entrypoint]: MariaDB upgrade (mariadb-upgrade or creating healthcheck users) required, but skipped due to $MARIADB_AUTO_UPGRADE setting
mysql-mailcow-1 | 2025-04-03 17:11:09 0 [Note] Starting MariaDB 10.11.11-MariaDB-ubu2204 source revision e69f8cae1a15e15b9e4f5e0f8497e1f17bdc81a4 server_uid h7KYG0k9MEUPd9OA122fCL4wNdA= as process 1
mysql-mailcow-1 | 2025-04-03 17:11:09 0 [ERROR] mariadbd: Can’t lock aria control file ‘/var/lib/mysql/aria_log_control’ for exclusive use, error: 11. Will retry for 30 seconds
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [ERROR] mariadbd: Got error ‘Could not get an exclusive lock; file is probably in use by another process’ when trying to use aria control file ‘/var/lib/mysql/aria_log_control’
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [ERROR] Plugin ‘Aria’ registration as a STORAGE ENGINE failed.
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [Note] InnoDB: Number of transaction pools: 1
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [Note] InnoDB: Using ARMv8 crc32 + pmull instructions
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [Note] InnoDB: Initializing buffer pool, total size = 24.000MiB, chunk size = 1.000MiB
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [Note] InnoDB: Completed initialization of buffer pool
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [ERROR] InnoDB: Upgrade after a crash is not supported. The redo log was created with MariaDB 10.5.27. You must start up and shut down MariaDB 10.7 or earlier.
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [Note] InnoDB: Starting shutdown…
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [ERROR] Could not open mysql.plugin table: “Unknown storage engine ‘Aria’”. Some plugins may be not loaded
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [ERROR] Failed to initialize plugins.
mysql-mailcow-1 | 2025-04-03 17:11:39 0 [ERROR] Aborting
mysql-mailcow-1 | 2025-04-03 17:11:40+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.11+mariaubu2204 started.
mysql-mailcow-1 | 2025-04-03 17:11:41+02:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
mysql-mailcow-1 | 2025-04-03 17:11:41+02:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
mysql-mailcow-1 | 2025-04-03 17:11:41+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.11+mariaubu2204 started.
mysql-mailcow-1 | 2025-04-03 17:11:41+02:00 [Note] [Entrypoint]: MariaDB upgrade (mariadb-upgrade or creating healthcheck users) required, but skipped due to $MARIADB_AUTO_UPGRADE setting
mysql-mailcow-1 | 2025-04-03 17:11:41 0 [Note] Starting MariaDB 10.11.11-MariaDB-ubu2204 source revision e69f8cae1a15e15b9e4f5e0f8497e1f17bdc81a4 server_uid GdLkEL5lwb8lB3sQXUkjGqckhq4= as process 1
mysql-mailcow-1 | 2025-04-03 17:11:41 0 [ERROR] mariadbd: Can’t lock aria control file ‘/var/lib/mysql/aria_log_control’ for exclusive use, error: 11. Will retry for 30 seconds
looks like the db version upgrade did not got applied
# mysql_upgrade -p
Enter password:
Major version upgrade detected from 10.5.27-MariaDB to 10.11.11-MariaDB. Check required!
Error: Server version (10.5.27-MariaDB-ubu2004)
does not match the version of the server (10.11.11-MariaDB)
with which this program was built/distributed. You can
use --skip-version-check to skip this check.
FATAL ERROR: Upgrade failed
mariadb container is at mariadb:10.11
but it looks like my database got corrupted?!
# mysql_upgrade -p --skip-version-check
Enter password:
ERROR 1 (HY000) at line 14: Can't create/write to file '/tmp/#sql-temptable-1-384-3.MAI' (Errcode: 2 "No such file or directory")
ERROR 1 (HY000) at line 15: Can't create/write to file '/tmp/#sql-temptable-1-384-4.MAI' (Errcode: 2 "No such file or directory")
ERROR 1 (HY000) at line 124: Can't create/write to file '/tmp/#sql-temptable-1-384-7.MAI' (Errcode: 2 "No such file or directory")
ERROR 1193 (HY000) at line 184: Unknown system variable 'log_slow_query'
ERROR 1193 (HY000) at line 185: Unknown system variable 'log_slow_query'
ERROR 1193 (HY000) at line 203: Unknown system variable 'log_slow_query'
ERROR 1 (HY000) at line 568: Can't create/write to file '/tmp/#sql-temptable-1-384-14.MAI' (Errcode: 2 "No such file or directory")
ERROR 1 (HY000) at line 586: Can't create/write to file '/tmp/#sql-temptable-1-384-16.MAI' (Errcode: 2 "No such file or directory")
ERROR 1 (HY000) at line 587: Can't create/write to file '/tmp/#sql-temptable-1-384-17.MAI' (Errcode: 2 "No such file or directory")
ERROR 1 (HY000) at line 589: Can't create/write to file '/tmp/#sql-temptable-1-384-18.MAI' (Errcode: 2 "No such file or directory")
ERROR 1 (HY000) at line 648: Can't create/write to file '/tmp/#sql-temptable-1-384-19.MAI' (Errcode: 2 "No such file or directory")
ERROR 1 (HY000) at line 776: Can't create/write to file '/tmp/#sql-temptable-1-384-1b.MAI' (Errcode: 2 "No such file or directory")
ERROR 1 (HY000) at line 807: Can't create/write to file '/tmp/#sql-temptable-1-384-20.MAI' (Errcode: 2 "No such file or directory")
ERROR 1728 (HY000) at line 853: Cannot load from mysql.proc. The table is probably corrupted
ERROR 1728 (HY000) at line 855: Cannot load from mysql.proc. The table is probably corrupted
ERROR 1728 (HY000) at line 888: Cannot load from mysql.proc. The table is probably corrupted
ERROR 1728 (HY000) at line 890: Cannot load from mysql.proc. The table is probably corrupted
ERROR 1728 (HY000) at line 920: Cannot load from mysql.proc. The table is probably corrupted
is there a good way to recover the DB - or would the way to go to scrap everything and retore it from a backup?