SUMMARY The akonadi server does not start after the distro upgraded its MariaDB package to 10.5.5 OBSERVED RESULT org.kde.pim.akonadiserver: database server stopped unexpectedly org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection! org.kde.pim.akonadiserver: executable: "/usr/bin/mysqld" org.kde.pim.akonadiserver: arguments: ("--defaults-file=/home/user/.local/share/akonadi/mysql.conf", "--datadir=/home/user/.local/share/akonadi/db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000/akonadi/mysql.pid") org.kde.pim.akonadiserver: stdout: "" org.kde.pim.akonadiserver: stderr: "2020-08-20 22:44:34 0 [Note] /usr/bin/mysqld (mysqld 10.5.5-MariaDB) starting as process 19981 ...\n" org.kde.pim.akonadiserver: exit code: 1 org.kde.pim.akonadiserver: process error: "Unknown error" SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.19.4 KDE Frameworks Version: 5.73.0 Qt Version: 5.15.0 Kernel Version: 5.8.1-zen1-1-zen
I am not entirely sure whether this is the same issue, but the usr.bin.akonadiserver (as well as mysqld_akonadi) AppArmor profile is broken with MariaDB 10.5.x. Apparently, 10.5.x renamed all paths and executables to be mariadb-branded while the mysql versions are now symlinks (I believe the inverse was true up to 10.4.x); which messes up the Akonadi AA profiles pretty thoroughly, since AA works with paths and seems to (sensibly) always follow links for permission checks. Relevant MariaDB (server) PR: https://github.com/MariaDB/server/pull/1544 This would (at least in my case) result in EACCES when trying to start the database server: org.kde.pim.akonadiserver: process error: "execvp: Permission denied" This can be worked around by disabling AA for akonadi (sudo aa-disable /usr/bin/akonadiserver). This is on Arch Linux with Applications 20.08.0-1, Frameworks 5.73.0-1, Qt 5.15.0-4 and MariaDB 10.5.5-2.
@Sandro, please see comment#1
A possibly relevant merge request was started @ https://invent.kde.org/pim/akonadi/-/merge_requests/34