Bug 397609

Summary: Akonadi server dies using fsck to remove orphan resources
Product: [Frameworks and Libraries] Akonadi Reporter: kde
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description kde 2018-08-19 09:30:00 UTC
System:
Opensuse 15.0
+ KDE:Applications (KDE_Frameworks5_openSUSE_Leap_15.0)
+ KDE Frameworks 5 development repository (openSUSE_Leap_15.0)
+ The Qt5 development repository (openSUSE_Leap_15.0)

Background: I wanted to add a new IMAP account, got hit with the new fangled "wizard", after I entered the server address, nothing seemed to happen, I clicked on the [DETAILS] button and had an empty dialog - the wizard was probably doing something but maybe my internet connection was slow - so I closed the dialogs and tried again, and maybe again a couple more times.

Then I realised I should have used the "custom resource" option to manually configure it instead. So finally I got my new IMAP account setup in KMail. However the folders column on the left showed the failed accounts that was setup by the "wizard" having names "IMAP Account 9 (offline)", ..., "IMAP Account 12 (offline)".

There doesn't seem to be any way of deleting these accounts from within KMail (they don't show up in "Settings > Configure KMail > Accounts > Receiving")

So I used "akonadictl fsck" to try and clean them out:

=======================================
Looking for resources in the DB not matching a configured resource...
Found 4 orphan resources: akonadi_imap_resource_8,akonadi_imap_resource_9,akonadi_imap_resource_10,akonadi_imap_resource_11
Removing resource akonadi_imap_resource_8
=======================================

At this point a dialog pops up to say "Akonadi Server has Closed Unexpectedly" and akonadictl itself hangs and I need to CTRL-C to terminate it.
Comment 1 kde 2018-08-23 07:24:56 UTC
An update has resolved this. Can this entry be deleted?