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.
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...