Bug 424935 - Akonadi crashes/loops importing imap mail box
Summary: Akonadi crashes/loops importing imap mail box
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.13.2
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-02 17:00 UTC by Steve
Modified: 2020-08-02 17:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve 2020-08-02 17:00:29 UTC
SUMMARY
There is a problem in one of my folders.
Aug  1 09:28:19 x2 akonadi_imap_resource[3094]: org.kde.pim.imapresource: Detected inconsistency in local cache, we're missing some messages. Server:  165935  Local:  9
Aug  1 09:28:19 x2 akonadi_imap_resource[3094]: org.kde.pim.imapresource: Refetching complete mailbox.

So, it spends a long time fetching 5Gb of email. But before it can finish,

Aug  1 10:05:04 x2 akonadi_mixedmaildir_resource[3108]: org.kde.pim.mixedmaildirresource: Failed to read item "1442061842.R339.x2" in Maildir "/home/sgrubb/.kde/share/apps/kmail/mail/Fedora-devel"
Aug  1 10:06:11 x2 akonadi_mixedmaildir_resource[3108]: org.kde.pim.mixedmaildirresource: Store fetch for new item "" in collection -124 , "" did not return the expected item. error= 102 , "Error while reading mails from folder Fedora-devel"
Aug  1 10:06:15 x2 akonadi_mixedmaildir_resource[3108]: org.kde.pim.mixedmaildirresource: Failed to read item "1442061842.R339.x2" in Maildir "/home/sgrubb/.kde/share/apps/kmail/mail/Fedora-devel"
Aug  1 10:06:15 x2 akonadi_mixedmaildir_resource[3108]: org.kde.pim.mixedmaildirresource: Store fetch for new item "" in collection -124 , "" did not return the expected item. error= 102 , "Error while reading mails from folder Fedora-devel"
Aug  1 12:09:43 x2 akonadi_indexing_agent[3100]: org.kde.pim.akonadicore: Failed to open external payload: "/home/sgrubb/.local/share/akonadi/file_db_data/30/9573130_r0" "No such file or directory"
Aug  1 12:09:43 x2 akonadi_indexing_agent[3100]: org.kde.pim.akonadicore: Failed to open external payload: "/home/sgrubb/.local/share/akonadi/file_db_data/33/9573133_r0" "No such file or directory"

It does not work any longer. I have to reboot my system. It then repeats the same cycle. My Fedora-devel folder is a local folder that my imap account gets filtered into. No amount of refetching imap will fix the local folder. If there was corruption in the imap cache, sure. But the local folder should just have the missing entry deleted and life goes on.

How do I fix this? And can akonadi just delete missing entries to fix itself? I'd rather lose an email than lose all of them.

Linux/KDE Plasma: 5.18.5-2
KDE Plasma Version:
KDE Frameworks Version: 19.12.2
Qt Version: 5.14.2

ADDITIONAL INFORMATION
This is a Fedora 32 x86_64 system.