Migration 0021_migrate_to_bullseye did not complete (mariadb-common)

Looking at your log, it is a different error than in DBR’s case:


2022-09-18 18:46:49,238: INFO - + Processing triggers for mariadb-server-10.3 (1:10.3.36-0+deb10u1) ...
2022-09-18 18:46:49,450: WARNING - postinst called with unknown argument 'triggered'
2022-09-18 18:46:49,560: WARNING - dpkg: error processing package mariadb-server-10.3 (--configure):

@tituspijean and @Lapineige found a (recent) bug report and a fix (just a few days ago). The fix is available for apt, to be sure to receive it I would

$ sudo apt clean #to remove cached packages
$ sudo apt update #to inform apt of new packages
$ yunohost tools migrations run # with some luck it will now `just work`