Kmail Loses Passwords In KMail Session, Akonadi won't restart

Hi

I run two users concurrently in my KDE session on my laptop: work, home.
They need to kept completely separate.
So I switch a lot between the two.
My laptop is closed (not shutdown) when I’m not using it.

I used to have frequent problems with older versions of KMail where Akonadi forgot POP passwords. This often appeared when I switched between sessions after re-opening the laptop.
I could see the actual Akonadi errors if I had an Akonadi session running in the background.

Old Solution:
In older versions of KMail/Akonadi I just used the command “akonadictl restart” command.
Saved me having to restart the user session…

Leap 16.0:
In Leap 16.0 the problem appears to be less frequent.
But the problem has reared itself again in Kmail:

Please enter the username and password for account 'Chairman'.
You are asked here because the previous login was not successful.

I just had the same problem occur but now the “akonadictl restart” command fails repeatedly:

asd@localhost:~> sudo akonadictl restart
[sudo] password for root: 
D-Bus session bus is not available!
KCrash: Application 'akonadictl' crashing... crashRecursionCounter = 2
Aborted

The current KDE documentation suggests Akonadi can still be managed from the command line:
Akonadi Documentation

Setup:

Kontact: 6.4.3 (25.04.3)
KDE Frameworks: 6.16.0
Qt: Using 6.9.1 and built against 6.9.1
KMail build 25.04.3-bp160.1.2
Akonadi build 25.04.3-bp160.1.4

openSUSE Leap 16.0 (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.12.0-160000.5-default

Any ideas please?

Many thanks,
Andrew

Why root?

akonadi is normally running in user content.

2 Likes

Hi Sauerland

Thanks for your reply.

Why root?
Good question! I can’t remember whether it was done with root before or not in the past…

Anyway, running akonadictl restartwithout root sorted the problem!
Thanks very much for helping me out.

Best wishes,
Andrew