![]() Registered Member ![]()
|
Hello
After today's Akonadi's update, it doesn't start anymore. Here is the answer from akonadictl :
It seems like MySql can't start, so I looked to ~/.local/share/akonadi/db_data/mysql.err and saw this three errors in the log :
The /run/user/1000/akonadi/default/ directory has 775 permissions and belongs to my regular user. Does anybody knows why MySql can't create the lock file ? And how to resolve this, so I can start Akonadi ? Thank you. |
![]() Registered Member ![]()
|
I assume that apparmor prevents access to the directory. Check configuration of apparmor for mysql.
|
![]() Registered Member ![]()
|
Hello raphaelra, it seems OK to me :
And the content of the profil /etc/apparmor.d/usr.sbin.mysqld-akonadi :
|
![]() Registered Member ![]()
|
And did you found there someting abount /run/user/... ?
Try to add someting like:
to /etc/apprmor.d/local/usr.sbin.mysqld-akonadi |
![]() Registered Member ![]()
|
I added this line to the Apparmor profile :
And it worked ! Akonadi is running now... thank you raphaelra ![]() In ~/.local/share/akonadi (which was already in the apparmor profile) there's a link to the /run/user/1000/akonadi/default directory, but it seems not enough to give the permission to create the socket. |
![]() Registered Member ![]()
|
Great to hear that it works
![]()
I would recommend to use a wildcards (or regexp) in the path for user id (here "1000"). Otherwise nobody else could start mysql for akonadi.
The mysqld argument for --socket probably determines where to create the lockfile and it is /run/user/... and not the linked folder in ~/.local/share/akonadi/.... I don't know where to change the arguments for launching mysqld for akonadi. |
![]() Registered Member ![]()
|
You're right. In my case it works because I'm the only user on the computer.
True, but I thought Apparmor gave permissions recursively to the linked sub-folder ; I was wrong...
I don't know either... |
![]() Registered Member ![]()
|
Thanks guys! I had the same problem after updating KDE apps to 19.04.3 (starting to second-guess using Neon as my primary OS) by adding raphaelra's line
in "/etc/apparmor.d/usr.sbin.mysqld-akonadi", followed by a restart. |
![]() Registered Member ![]()
|
In fact it was a bug. There's a new update to akonadi-backend-mysql in the KDE Neon repository, with a corrected apparmor profile containing this new line:
If you have changed the usr.sbin.mysql-akonadi file, APT will ask you what to do whith that file when you upgrade it. Answer Y to replace it with the package version.
Last edited by xleon on Fri Jul 12, 2019 12:56 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
The fix should be in the archive now, please update. I'll discuss with the kdepim team about making changes during a bugfix release which will affect security profiles. Sorry for the breakage.
|
![]() Registered Member ![]()
|
Works now! Very Thanks for fast Update
![]() ![]() |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]