Can not load mysql-akonadi apparmor profile
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | akonadi (Ubuntu) |
High
|
Unassigned | ||
| | apparmor (Ubuntu) |
High
|
Unassigned | ||
Bug Description
Apparmor fails to start witch exit code 123, because it can not load the mysql-akonadi profile:
% sudo systemctl status apparmor -l
● apparmor.service - LSB: AppArmor initialization
Loaded: loaded (/etc/init.
Active: failed (Result: exit-code) since So 2015-04-05 12:29:33 CEST; 55s ago
Docs: man:systemd-
Process: 13906 ExecStart=
Apr 05 12:29:33 benediktZ50-70 apparmor[13906]: Skipping profile in /etc/apparmor.
Apr 05 12:29:33 benediktZ50-70 apparmor[13906]: AppArmor parser error for /etc/apparmor.
Apr 05 12:29:33 benediktZ50-70 apparmor[13906]: Skipping profile in /etc/apparmor.
Apr 05 12:29:33 benediktZ50-70 apparmor[13906]: Skipping profile in /etc/apparmor.
Apr 05 12:29:33 benediktZ50-70 apparmor[13906]: AppArmor parser error for /etc/apparmor.
Apr 05 12:29:33 benediktZ50-70 apparmor[13906]: ...fail!
Apr 05 12:29:33 benediktZ50-70 systemd[1]: apparmor.service: control process exited, code=exited status=123
Apr 05 12:29:33 benediktZ50-70 systemd[1]: Failed to start LSB: AppArmor initialization.
Apr 05 12:29:33 benediktZ50-70 systemd[1]: Unit apparmor.service entered failed state.
Apr 05 12:29:33 benediktZ50-70 systemd[1]: apparmor.service failed.
However Apparmor loaded successfully:
% sudo aa-status
apparmor module is loaded.
17 profiles are loaded.
17 profiles are in enforce mode.
/sbin/dhclient
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/sbin/cupsd
/usr/
/usr/
/usr/
docker-default
0 profiles are in complain mode.
5 processes have profiles defined.
5 processes are in enforce mode.
/sbin/dhclient (11821)
/usr/
/usr/
/usr/sbin/cupsd (12783)
/usr/
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
It is really necessary to set Apparmor as failed if one profile could not be loaded?
| tags: | added: kubuntu vivid |
| summary: |
- Can not load mysql-akonadi profile + Can not load mysql-akonadi apparmor profile |
| tags: | added: systemd-boot |
| tags: | removed: systemd-boot |
| Martin Tang (infinitesimal) wrote : | #1 |
| Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in akonadi (Ubuntu): | |
| status: | New → Confirmed |
| Changed in apparmor (Ubuntu): | |
| status: | New → Confirmed |
| Changed in akonadi (Ubuntu): | |
| importance: | Undecided → High |
| Changed in apparmor (Ubuntu): | |
| importance: | Undecided → High |
| Steve Beattie (sbeattie) wrote : | #4 |
For some reason, the dh-apparmor hook invocation in the akonadi package is not causing the postinst script to be created for the akonadi-
| Steve Beattie (sbeattie) wrote : | #5 |
Ah, this merge http://
| Steve Beattie (sbeattie) wrote : | #6 |
The attached debdiff fixes the issue.
| Changed in apparmor (Ubuntu): | |
| status: | Confirmed → Invalid |
| Changed in akonadi (Ubuntu): | |
| status: | Confirmed → Fix Committed |
The attachment "akonadi_
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
| tags: | added: patch |
| Launchpad Janitor (janitor) wrote : | #8 |
This bug was fixed in the package akonadi - 1.13.0-2ubuntu4
---------------
akonadi (1.13.0-2ubuntu4) vivid; urgency=medium
* debian/rules: re-enable the override_
in an earlier merge from debian. This allows dh-apparmor to create
the postinst for the akonadi-
the missing part of that package's apparmor profile at install time
(LP: #1440501)
-- Steve Beattie <email address hidden> Wed, 15 Apr 2015 10:48:33 -0700
| Changed in akonadi (Ubuntu): | |
| status: | Fix Committed → Fix Released |


Putting a file in /etc/apparmor. d/local/ usr.sbin. mysqld- akonadi (like the other examples already there) resolves the issue. Maybe the packaging for akonadi- backend- mysql forgot to generate an empty configuration file there?