Akonadi not starting

Today akonadi did not start:

beq-osleap@linux-91w7:~> akonadictl start
org.kde.pim.akonadictl: Starting Akonadi Server...
org.kde.pim.akonadicontrol: Service org.freedesktop.Akonadi.Control.lock already registered, terminating now.
Error: akonadi_control was started but didn't register at D-Bus session bus.
Make sure your system is set up correctly!
beq-osleap@linux-91w7:~>

As I needed my mail, calendar, etc, I set the system back with # snapper rollback.

It looks like openSUSE-SLE-15.4-2022-2017 (1) - security update for MariaDB - is the culprit. I started a new upgrade and ticked it off. Kontact/KMail/Akonadi is still working.

Best regards,
Bequimao

@Bequimao:

This system has suffered 3 MariaDB updates with no ill effects –


 > journalctl --no-hostname | grep -i 'maria'
Hint: You are currently not seeing messages from other users and the system.
      Users in the 'systemd-journal' group can see all messages. Pass -q to
      turn off this notice.
Dez 24 13:39:24 plasmashell[2497]: plasma-pk-updates: Got update package: "openSUSE-SLE-15.3-2021-3835;1;noarch;repo-sle-update" , summary: "Security update for mariadb" , type: "security"
Dez 24 13:42:56 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb;10.5.13-3.12.1;x86_64;repo-sle-update" , info: "installing"
Dez 24 13:42:56 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb-client;10.5.13-3.12.1;x86_64;repo-sle-update" , info: "installing"
Dez 24 13:42:56 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.13-3.12.1;noarch;repo-sle-update" , info: "installing"
Dez 24 13:51:26 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.13-3.12.1;noarch;repo-sle-update" , info: "downloading"
Dez 24 13:51:36 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb-client;10.5.13-3.12.1;x86_64;repo-sle-update" , info: "downloading"
Dez 24 13:51:44 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb;10.5.13-3.12.1;x86_64;repo-sle-update" , info: "downloading"
Dez 24 14:03:08 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.13-3.12.1;noarch;repo-sle-update" , info: "installing"
Dez 24 14:03:16 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb-client;10.5.13-3.12.1;x86_64;repo-sle-update" , info: "installing"
Dez 24 14:03:19 plasmashell[2497]: plasma-pk-updates: Package updating: "mariadb;10.5.13-3.12.1;x86_64;repo-sle-update" , info: "installing"
Apr 05 19:26:41 plasmashell[2413]: plasma-pk-updates: Got update package: "openSUSE-SLE-15.3-2022-731;1;noarch;repo-sle-update" , summary: "Security update for mariadb" , type: "security"
Apr 05 19:27:30 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb;10.5.15-150300.3.15.1;x86_64;repo-sle-update" , info: "installing"
Apr 05 19:27:30 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb-client;10.5.15-150300.3.15.1;x86_64;repo-sle-update" , info: "installing"
Apr 05 19:27:30 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.15-150300.3.15.1;noarch;repo-sle-update" , info: "installing"
Apr 05 19:54:38 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.15-150300.3.15.1;noarch;repo-sle-update" , info: "downloading"
Apr 05 19:55:34 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb-client;10.5.15-150300.3.15.1;x86_64;repo-sle-update" , info: "downloading"
Apr 05 19:56:45 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb;10.5.15-150300.3.15.1;x86_64;repo-sle-update" , info: "downloading"
Apr 05 20:09:19 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.15-150300.3.15.1;noarch;repo-sle-update" , info: "installing"
Apr 05 20:09:39 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb-client;10.5.15-150300.3.15.1;x86_64;repo-sle-update" , info: "installing"
Apr 05 20:09:59 plasmashell[2413]: plasma-pk-updates: Package updating: "mariadb;10.5.15-150300.3.15.1;x86_64;repo-sle-update" , info: "installing"
Jun 13 14:27:27 plasmashell[2369]: plasma-pk-updates: Got update package: "openSUSE-SLE-15.3-2022-2003;1;noarch;repo-sle-update" , summary: "Security update for mariadb" , type: "security"
Jun 13 14:27:37 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb;10.5.16-150300.3.18.1;x86_64;repo-sle-update" , info: "installing"
Jun 13 14:27:37 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb-client;10.5.16-150300.3.18.1;x86_64;repo-sle-update" , info: "installing"
Jun 13 14:27:37 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.16-150300.3.18.1;noarch;repo-sle-update" , info: "installing"
Jun 13 14:33:59 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.16-150300.3.18.1;noarch;repo-sle-update" , info: "downloading"
Jun 13 14:35:07 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb-client;10.5.16-150300.3.18.1;x86_64;repo-sle-update" , info: "downloading"
Jun 13 14:36:28 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb;10.5.16-150300.3.18.1;x86_64;repo-sle-update" , info: "downloading"
Jun 13 14:44:46 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb-errormessages;10.5.16-150300.3.18.1;noarch;repo-sle-update" , info: "installing"
Jun 13 14:45:53 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb-client;10.5.16-150300.3.18.1;x86_64;repo-sle-update" , info: "installing"
Jun 13 14:46:20 plasmashell[2369]: plasma-pk-updates: Package updating: "mariadb;10.5.16-150300.3.18.1;x86_64;repo-sle-update" , info: "installing"
 > 


Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.14.21-150400.22-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × AMD A10-5750M APU with Radeon(tm) HD Graphics
Memory: 7.0 GiB of RAM
Graphics Processor: AMD ARUBA

How often do you perform the Akonadi housekeeping?

 > *akonadictl fsck 2>&1 | grep -iE 'found|no RID'*
  • And, “akonadictl vacuum
    ” …

The patch you’ve mentioned (openSUSE-SLE-15.4-2022-2017) is addressed at IceWM …

  • I suspect that, you mean the patch “openSUSE-SLE-15.4-2022-2107” …

What you can do is, to forcibly re-install the patch –

  • First, “zypper verify
    ” the ensure that everything is more or less OK. - And, check the Repositories you’re using – should be the Leap 15.4 Respository set.
  • Also “rpm --verify --all
    ”. - Then, “zypper install --type patch openSUSE-SLE-15.4-2022-2107
    ”. - And, for good measure: “zypper install --type patch openSUSE-SLE-15.4-2022-731

But, before you do that, you’ll need to check the D-Bus service –

 > systemctl status --user dbus.service

You may have to restart the systemd User dbus.service.

  • Also, take a look in ‘~/.local/share/akonadi/’ for any lock files.
  • Also, check that, a link exists pointing to ‘/run/user/1000/akonadi/’ – assuming that, your user has the UID 1000.

Digging deeper – you’ll need “qdbus-qt5” which is provided by the package “libqt5-qdbus” which should be installed via package dependencies.


 > qdbus-qt5 | grep -A 2 -B 2 -i '.Akonadi.Control'
:1.38
:1.39
 org.freedesktop.Akonadi.Control
 org.freedesktop.Akonadi.Control.lock
:1.4
 org.kde.Startup
 > 

The D-Bus service “org.freedesktop.Akonadi.Control.lock” is normal and present on every system with Akonadi running.


 > akonadictl status
Akonadi Control: running
Akonadi Server: running
Akonadi Server Search Support: available (Remote Search, Akonadi Search Plugin)
Available Agent Types: akonadi_akonotes_resource, akonadi_archivemail_agent, akonadi_birthdays_resource, akonadi_contacts_resource, akonadi_davgroupware_resource, akonadi_ews_resource, akonadi_ewsmta_resource, akonadi_followupreminder_agent, akonadi_google_resource, akonadi_ical_resource, akonadi_icaldir_resource, akonadi_imap_resource, akonadi_indexing_agent, akonadi_kalarm_dir_resource, akonadi_kalarm_resource, akonadi_knut_resource, akonadi_kolab_resource, akonadi_maildir_resource, akonadi_maildispatcher_agent, akonadi_mailfilter_agent, akonadi_mailmerge_agent, akonadi_mbox_resource, akonadi_migration_agent, akonadi_mixedmaildir_resource, akonadi_newmailnotifier_agent, akonadi_notes_agent, akonadi_notes_resource, akonadi_openxchange_resource, akonadi_pop3_resource, akonadi_sendlater_agent, akonadi_tomboynotes_resource, akonadi_unifiedmailbox_agent, akonadi_vcard_resource, akonadi_vcarddir_resource
 > 

Attempting to start Akonadi again should result in this message being displayed –


 > akonadictl start
Akonadi is already running.
 > 

Stopping Akonadi results in this:


 > qdbus-qt5 | grep -A 2 -B 2 -i '.Akonadi.Control'
 > 

Restarting Akonadi results in this:


 > qdbus-qt5 | grep -A 2 -B 2 -i '.Akonadi.Control'
 org.kde.plasmashell
:1.134
 org.freedesktop.Akonadi.Control
 org.freedesktop.Akonadi.Control.lock
:1.135
:1.136
 > 

In other words, the Akonadi Control D-Bus services are restarted with another offset within the list of D-Bus services.
[HR][/HR]Looking at the error message being presented on your system when attempting to (re)start Akonadi, it seems that, the RPM packages related to Akonadi and KDE Plasma in general are missing some components or, some of the components have been corrupted or, you’ve picked up some components from a repository which is not compatible with Leap 15.4.

  • Please, recheck your Leap 15.4 repositories – a minimal list of URLs is –

[INDENT=2]http://download.opensuse.org/update/leap/15.4/backports/
http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/
http://download.opensuse.org/distribution/leap/15.4/repo/oss/
http://download.opensuse.org/update/leap/15.4/sle/
http://download.opensuse.org/update/leap/15.4/oss/
http://download.opensuse.org/update/leap/15.4/non-oss/
[/INDENT]

  • Please, forcibly refresh – “zypper refresh --force”
  • Please, rebuild the RPM database – “rpm --rebuilddb”
    And then, please, forcibly refresh again.
  • Please, verify the packages – “zypper verify” and “rpm --verify --all” – and forcibly (re-)install the indicated packages to repair the installation.
  • If that doesn’t repair the issue, please forcibly re-install all the KDE Plasma packages and the dependent packages such as the Akonadi packages.

@ dcurtisfra:
Thanks or your detailed response, which certainly is valid for others. As I said before, akonadi was working again after a # snapper rollback. Now I updated everything including MariaDB, and everything is working well. Unfortunately data from the journal is already excluded, as its size is constrained to 100M. It might have been a lock as you already guessed.

The repolist is ok. I used plasma-pk-updates as well, but did not see any error messages.

The history: I had serious problems with KMail during Leap 15.3. My 2 Imap accounts constantly went offline. $ akonadictl fsck or akonadictl vacuum did not help. Before trying a fresh install, I created another test user, and when everything was well, I switched over. No other intervention since then.

Thanks,
Bequimão