> Btw. a successful migration should also take care of the redo logs. The user > normally does not know, whether the database was shut down correctly or not.
Maybe they should, or at least take a backup before a big upgrade so they can go back to the old version when they see an error message like this in the upgrade? This error message is from the MariaDB server and not from the Debian packaging scripts. You will get the exact same result on any distro if you crash the database and then proceed to start it with another version. The software is open source, so if you have an idea how to avoid this (e.g. how to tell users if their database crashed or how to do database recovery in every possible situation), feel free to open a pull request upstream at MariaDB Server. - Otto