<div dir="ltr"><div>Package: mariadb-server</div><div>Version:
1:10.11.3-1</div><div><br>
</div><div>Dear Maintainer,</div><div><br></div><div>When trying to upgrade a (sysvinit) Debian Bullseye[-backports] server with MariaDB 10.5 to Bookworm, I ran into the following issue:</div><div><br></div><div>Setting up mariadb-server (1:10.11.3-1) ...<br>Stopping MariaDB database server: mariadbd.<br>Starting MariaDB database server: mariadbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!<br>invoke-rc.d: initscript mariadb, action "start" failed.<br>dpkg: error processing package mariadb-server (--configure):<br> installed mariadb-server package post-installation script subprocess returned error exit status 1<br>[...]</div><div>dpkg: dependency problems prevent configuration of mariadb-plugin-provider-lz4:<br> mariadb-plugin-provider-lz4 depends on mariadb-server (>= 1:10.11.1-1); however:<br> Package mariadb-server is not configured yet.<br></div><div><br></div><div>dpkg: error processing package mariadb-plugin-provider-lz4 (--configure):<br> dependency problems - leaving unconfigured</div><div><br></div><div></div><div>This occurred because the piwik/matamo database already contained lz4-compressed tables. MariaDB complained about lacking the plugin, and
mariadb-server could not complete config. mariadb-plugin-provider-lz4 could not be installed as it depended on mariadb-server.<br></div><div></div><div>
<div><br></div><div>My my.cnf has (from
<a href="https://mariadb.com/kb/en/innodb-page-compression/">https://mariadb.com/kb/en/innodb-page-compression/</a>
):</div><div>innodb_compression_algorithm=lz4<br>innodb_compression_default=ON</div><div><br></div>
</div><div>I ended up having to manually download from:</div><div><a href="https://packages.debian.org/bookworm/amd64/mariadb-plugin-provider-lz4/download">https://packages.debian.org/bookworm/amd64/mariadb-plugin-provider-lz4/download</a></div><div>and force it to ignore the dependency:</div><div>dpkg -i --force-depends mariadb-plugin-provider-lz4_10.11.3-1_amd64.deb<br><br></div><div>After this I could fix the installation and the server started. Removing the plugin package predictably breaks the server again - this also reproduces the "not available" error I got after trying to run the server manually, which wasn't surfaced during the install:<br></div><div><br></div><div>2023-06-11 13:08:58 0 [Note] Starting MariaDB 10.11.3-MariaDB-1 source revision as process 16188<br>2023-06-11 13:08:58 0 [ERROR] mysqld: Can't open shared library '/usr/lib/mysql/plugin/provider_lz4.so' (errno: 2, cannot open shared object file: No such file or directory)<br>2023-06-11 13:08:58 0 [ERROR] Couldn't load plugins from 'provider_lz4.so'.<br>2023-06-11 13:08:58 0 [ERROR] mysqld: InnoDB: compression algorithm lz4 (2) is not available. Please, load the corresponding provider plugin.<br>2023-06-11 13:08:58 0 [ERROR] Plugin 'InnoDB' init function returned error.<br>2023-06-11 13:08:58 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.<br>2023-06-11 13:08:58 0 [Note] Plugin 'FEEDBACK' is disabled.<br>2023-06-11 13:08:58 0 [ERROR] mysqld: unknown variable 'provider_lz4=force_plus_permanent'<br>2023-06-11 13:08:58 0 [ERROR] Aborting<br></div><div><br></div><div>I can appreciate that the plugins may rely on mariadb-server to be installed to an extent. However it does not have to be installed the whole way otherwise dpkg wouldn't have worked. Perhaps the plugins could be installed despite mariadb-server not being fully configured, and in this case it should trigger the server to be reconfigured after the plugins are installed.<br></div><br><div>Sample table structure shows "PAGE_COMPRESSED":</div><div>| piwik_log_action | CREATE TABLE `piwik_log_action` (<br> `idaction` int(10) unsigned NOT NULL AUTO_INCREMENT,<br> `name` varchar(4096) DEFAULT NULL,<br> `hash` int(10) unsigned NOT NULL,<br> `type` tinyint(3) unsigned DEFAULT NULL,<br> `url_prefix` tinyint(2) DEFAULT NULL,<br> PRIMARY KEY (`idaction`),<br> KEY `index_type_hash` (`type`,`hash`)<br>) ENGINE=InnoDB AUTO_INCREMENT=116404687 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`=1 |<br></div><div><br></div><div># uname -a</div><div>Linux acedia 6.1.27 #1 SMP Thu Jun 8 16:12:46 CEST 2023 x86_64 GNU/Linux</div><div></div><div>Libc: Version: 2.36-9</div><div><br></div><div>Best regards,<br></div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Laurence "GreenReaper" Parry<br><a href="https://www.greenreaper.co.uk/" target="_blank">https://www.greenreaper.co.uk<br></a></div></div></div>