"akonadictl fsck" hung, dbus inspection fails on the background

Bug #1904742 reported by Lukáš Karas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
akonadi (Ubuntu)
New
Undecided
Unassigned

Bug Description

cross posting upstream bug: https://bugs.kde.org/show_bug.cgi?id=427262

I am running akonadi 20.08.1 on Kubuntu 20.10 (akonadi server build from source code, but package version behaves the same). 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.

Is here some Apparmor master that would help me fix D-Bus rules?

Revision history for this message
Lukáš Karas (lukas-karas) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.