Hello,
one of my akonadi IMAP accounts got somehow broken. Maybe it was because my computer got hard resetted or because of update to 25.04.2, I am not sure.
When i start akonadi server from konsole, I see message:
Cannot connect to agent instance with identifier 'akonadi_imap_resource_4', error message: '' - akonadi_imap_resource_4 is identifier of the broken account.
Kmail shows the account as offline, but i can access old e-mails.
When I try to make the account online, console message says:
"AgentManager::agentInstanceSynchronizeCollection" Agent instance "akonadi_imap_resource_4" has no resource interface!
When I try to modify settings for the account via kmail, account shows generic name “E-mail IMAP server” instead of previously configured account name. Clicking ond “Modify” button does nothing and console shows:
Cannot connect to agent instance with identifier 'akonadi_imap_resource_4', error message: ''
Agent instance ( "agentInstanceConfigure" ) "akonadi_imap_resource_4" has no agent interface.
Also when akonadi is started the akonadi_imap_resource --identifier akondi_imap_resource_4 process is runnning but is slowly eating all available RAM and needs to but shut down.
I am not sure if this misconfiguration or bug, but I would appreciate if somenone would know hot to repair this some other way then configuring the account from scratch.
Akonadi will rebuild all its databases clean, without the bits that are causing the problem*.
Note that you may lose some configuration! Which means you may have to tweak some stuff by hand—review especially the the contents of Settings > Configure KMail… > Identities. But all your data, messages, and so on will be preserved.
I hope that helps!
* If Akonadi does not start automatically, start it from the command line with akonadictl start.
Well I know about this workaround, but I would rather try other solution, if its available. Also it seems to me, the data are actually ok and there are problems with mailtransports / agent configuration. Althought I tried to skim trough various akonadi related config files in ~/.config/ and could not find anything suspicious.
I have deleted the account per @olivierbelleux and @krake suggestion. Then “IMAP account 16” instantly appeared in kmail, which I have reconfigured with settings from deleted account. Now everything works, but the downside is I lost tags which were assingned to some the messages. Not a big deal but some loss of a data should be expected with this method.
You have to launch akonadiconsole then, in tab agents, search and delete the agent corresponding to the imap account. The menu is avalaible from right-click.