![]() Registered Member ![]()
|
I saw your comment on the bug report and tried the above commands, and they worked fine. Then I came over here and got caught up, and added
though it didn't seem to make a difference. So, akonadi & kmail work after your teardown and restart, but if I reboot my machine, akonadi doesn't and can't start:
(The error message is slightly different now from the one I was getting the other day, probably because the apparmor teardown and restart allowed me to actually get all of akonadi's files & folders re-created by following the Clean Start After A Failed Migration directions) Anyway, If I use your teardown & restart commands again...
...everything works fine again, until I shut the machine down, in which case I have to do it all again after starting. Are you seeing this behavior, too? If not, any idea how you're getting apparmor to do its thing persistently? Thanks! |
![]() Registered Member ![]()
|
You can set an AppArmor profile into complain mode. In this mode AppArmor allow access to all files but write violations into syslog. So try
With
Another think ... The profile file for myslq-akonadi includes another file for making local justfications
|
![]() Registered Member ![]()
|
I installed apparmor utilities but when I run this command i get an strange error - still reading up on it, but if you have any hints or pointers...?
This https://gitlab.com/apparmor/apparmor/bl ... -enumerate purports to be that file, so I created it, and now get the error
ugh. i'll keep going, but this is crazy. does an akonadi migration modify apparmor to this degree? I think I'll file the bug report again, see if they'll fix whatever's wrong.
Yeah, it's globally readable.
This file doesn't exist, assuming "local" means home/username/.local - but everything in my main file seems to match yours and bovender's...? UPDATE: i had to create 6 new files in /abstractions, and then
finally ran with no errors, and akonadi was running automatically when i rebooted. Thanks VERY much for all your help! I'll write all this up as a bug and leave it open so hopefully no one will have to bother this this again after they release the next bunch of fixes/updates.
Last edited by dfoskett on Fri Aug 23, 2019 2:50 am, edited 5 times in total.
|
![]() Registered Member ![]()
|
double posted, sorry, not sure how to delete this
Last edited by dfoskett on Fri Aug 23, 2019 1:04 am, edited 1 time in total.
|
![]() Registered Member ![]()
|
double-posted, sorry - not sure how to delete this
|
![]() Registered Member ![]()
|
"local" means /etc/apparmor.d/local. The idea is not to edit config files contained in packages (because the changes may lost after package update), but include a file where the user can make (local) changes.
I'm happy, it is running, but not sure, if the profile is automaticaly activated (in enforce mode) after reboot. You can check this with sudo aa-status. You should see in the output
It's looks like your AppArmor setup is a little bit "entangled". Maybe it's because of the newer kernel ![]() |
![]() Registered Member ![]()
|
Ah, okay. /etc/apparmor.d/local/usr.bin.mysqld-akonadi is empty. I'm not sure what I would put there, the contents of the main usr.bin.mysqld-akonadi seem to match yours and the OP's, so I'm not sure what's wrong. And yes, it's in complain mode, that's what's enabling akonadi to start on boot, saving me from having to teardown and restart apparmor every time i turn on my PC:
Still no idea what's wrong, but at least it's working. |
![]() Registered Member ![]()
|
Sorry for my silence in the last couple of days. I finally got around to rebooting my machine, and yes, the error occurred again. Haven't yet had the time to test the things that you found out in the mean time. |
![]() Registered Member ![]()
|
It's not really working ... When in complain mode, AppArmor does not block mysqld from starting, but reports any violation to syslog. AppArmor does't care abount mysql in this moment. You shoud now look in the syslog what AppArmor is reporting there. If you activates the profile with "sudo aa-enforce /usr/sbin/mysqld-akonadi", mysqld will propably not start. |
![]() Registered Member ![]()
|
Here's what I see in /var/log/syslog after putting the mysqld-akonadi profile into complain mode and restarting akonadi:
(I clipped the first characters from each line which contained the timestamp, which does not seem to matter here. User and machine names are redacted.) I do not understand why read access to /home/[REDACTED]/.local/share/akonadi/mysql.conf is denied even when it should be permitted by the line
in /etc/apparmor.d/usr.sbin.mysqld-akonadi |
![]() Registered Member ![]()
|
It's looks good. AppArmor allows all access mysqld needs (apparmor="ALLOWED"). Time to bring the profile /usr/sbin/mysqld-akonadi in enforce mode and check, if akonadi starts ...
|
![]() Registered Member ![]()
|
Hm. When I `aa-enforce` the mysqld-akonadi rules, akonadi keeps running. But after a reboot, it won't start again. I'll keep the rules in complain mode for now...
|
![]() Registered Member ![]()
|
Strange
![]()
Hm, you can delete or disable the profile at all ![]() |
![]() Registered Member ![]()
|
Same problem here. Any solution? |
![]() Registered Member ![]()
|
So far just the apparmor hack discussed above. Lets you use akonadi, lets it start when your machine starts, but isn't really a "solution". |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]