Summary: | After update to plasma 6, akonadi can't start because mysql configuration is missing/faulty | ||
---|---|---|---|
Product: | [KDE Neon] neon | Reporter: | Martin Tlustos <martin.tlustos> |
Component: | general | Assignee: | Neon Bugs <neon-bugs> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ach, carl, carlosd.kde, joshua, jr, jshand2013, marco.freducci, marcus, neon-bugs, sitter |
Priority: | NOR | Keywords: | qt6 |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Martin Tlustos
2024-03-05 06:59:41 UTC
Similar problems. Fresh install. Installed kmail, had to manually install akonadi-backend-mysql. Akonadi still won't start. $ akonadictl start org.kde.pim.akonadictl: Starting Akonadi Server... org.kde.pim.akonadictl: done. Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) org.kde.pim.akonadiserver: Starting up the Akonadi Server... org.kde.pim.akonadiserver: Failed to detect mysqld version! org.kde.pim.akonadiserver: Could not start database server! org.kde.pim.akonadiserver: executable: "/usr/sbin/mysqld" org.kde.pim.akonadiserver: arguments: QList("--defaults-file=/home/jkugler/.local/share/akonadi/mysql.conf", "--datadir=/home/jkugler/.local/share/akonadi/db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000/akonadi/mysql.pid") org.kde.pim.akonadiserver: process error: "execve: Permission denied" org.kde.pim.akonadiserver: Shutting down AkonadiServer... org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally... Tried sudo aa-complain /usr/bin/akonadiserver and got the error "ERROR: Include file /etc/apparmor.d/local/mariadbd_akonadi not found" Currently stuck. :) Seems this bug had a similar error (Permission denied): https://bugs.kde.org/show_bug.cgi?id=427618 In trying to invoke mysqld directly: $ /usr/sbin/mysqld --defaults-file=/home/jkugler/.local/share/akonadi/mysql.conf --datadir=/home/jkugler/.local/share/akonadi/db_data/ --socket=/run/user/1000/akonadi/mysql.socket --pid-file=/run/user/1000/akonadi/mysql.pid MariaDB starts and runs without issue. In /etc/apparmor.d/, I ran: sudo aa-complain ./mariadbd_akonadi sudo aa-complain ./mysqld_akonadi Akonadi is up and running now. have fixed a packaging error which should mean that all the apparmor files are installed. building now but plasma 6.0.1 just started as well so could take a while - https://invent.kde.org/neon/kde/akonadi/-/commit/2ebb2156dda19bed3d0795d95fa24a78e32193b6 hhhmmm no. that actually made it worse. reverted. investigating the nuances of dh_apparmor and why it isn't working correctly Since an update some time ago, it started working again. If no one is against it, I would suggest closing this as fixed. *** Bug 484574 has been marked as a duplicate of this bug. *** Same here: Freshly installed neon user 20240614-1438 + all updates. Copied my old $HOME to the new installation. Installed kmail, korganizer and akonadictl start fails with 'Failed to detect mysqld version!' Touching missing files aa-complain complains about does not help: [0]master|root@op04lt:/etc/apparmor.d# aa-complain usr.bin.akonadiserver ERROR: Include file /etc/apparmor.d/local/mariadbd_akonadi not found [1]master|root@op04lt:/etc/apparmor.d# touch /etc/apparmor.d/local/mariadbd_akonadi [0]master|root@op04lt:/etc/apparmor.d# aa-complain usr.bin.akonadiserver ERROR: Include file /etc/apparmor.d/local/mysqld_akonadi not found [1]master|root@op04lt:/etc/apparmor.d# ll /etc/apparmor.d/local/mysqld_akonadi ls: cannot access '/etc/apparmor.d/local/mysqld_akonadi': No such file or directory [2]master|root@op04lt:/etc/apparmor.d# touch /etc/apparmor.d/local/mysqld_akonadi [0]master|root@op04lt:/etc/apparmor.d# aa-complain usr.bin.akonadiserver Setting /etc/apparmor.d/usr.bin.akonadiserver to complain mode. After touching the 2 missing files aa-complained about + systemctl reload apparmor.service Now **akonadictl start** works :-) Bumping this, I just found out the hard way that I have to touch those files before apparmor will run with the installed akonadi_mysql and akonadi_mariabdb config files. System versions: Operating System: KDE neon 6.2 KDE Plasma Version: 6.2.3 KDE Frameworks Version: 6.8.0 Qt Version: 6.8.0 Just installed the latest Neon User image on a machine and still had this problem. Had to touch /etc/apparmor.d/local/mysqld_akonadi and /etc/apparmor.d/local/mysqld_akonadi Then: systemctl reload apparmor.service aa-complain usr.bin.akonadiserver And it worked. |