Bug 427262 - "akonadictl fsck" hung, apparmor blocks access (?)
Summary: "akonadictl fsck" hung, apparmor blocks access (?)
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-02 18:01 UTC by Lukáš Karas
Modified: 2021-10-29 06:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukáš Karas 2020-10-02 18:01:47 UTC
Hi. 

I am running akonadi 20.08.1 (akonadi server build from source code) on Kubuntu 20.10. When I want to run "akonadictl fsck" this tool hung. When I run "dbus-monitor --session" meanwhile, I see these errors:

error time=1601657704.646568 sender=org.freedesktop.DBus -> destination=:1.920 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=5
   string "Could not get owner of name 'org.freedesktop.Akonadi.Janitor': no such name"
method call time=1601657704.647468 sender=:1.920 -> destination=org.freedesktop.DBus serial=6 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.Akonadi.Janitor',path='/Janitor',interface='org.freedesktop.Akonadi.Janitor',member='information'"
method call time=1601657704.648362 sender=:1.920 -> destination=org.freedesktop.DBus serial=7 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.Akonadi.Janitor'"
method call time=1601657704.649335 sender=:1.920 -> destination=org.freedesktop.DBus serial=8 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.freedesktop.Akonadi.Janitor"
error time=1601657704.649368 sender=org.freedesktop.DBus -> destination=:1.920 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=8
   string "Could not get owner of name 'org.freedesktop.Akonadi.Janitor': no such name"
method call time=1601657704.650208 sender=:1.920 -> destination=org.freedesktop.DBus serial=9 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.Akonadi.Janitor',path='/Janitor',interface='org.freedesktop.Akonadi.Janitor',member='done'"
method call time=1601657704.652083 sender=:1.920 -> destination=org.freedesktop.Akonadi.Janitor serial=10 path=/Janitor; interface=org.freedesktop.Akonadi.Janitor; member=check
error time=1601657704.652102 sender=org.freedesktop.DBus -> destination=:1.920 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=10
   string "The name org.freedesktop.Akonadi.Janitor was not provided by any .service files"

When I run akonadi-server from different location (during debugging), fsck process correctly. So, it is possible that Apparmor rules are involved.
Comment 1 Lukáš Karas 2021-10-29 06:49:06 UTC
Hi. 

This problem still persist on Kubuntu 21.10 with Akonadi 21.08.1. 

Access is blocked by AppArmor definitely. When I edit /etc/apparmor.d/usr.bin.akonadiserver and replace line:

  #include <abstractions/dbus-session-strict>

by:

  #include <abstractions/dbus-session>

akonadictl fsck starts working...