Bug 320420 - Can not accessing email (or contacts) due to hung maildir resource updates .dat file
Summary: Can not accessing email (or contacts) due to hung maildir resource updates .d...
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Maildir Resource (show other bugs)
Version: GIT (master)
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 12:54 UTC by Aaron J. Seigo
Modified: 2013-06-04 10:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
.dat file that was on disk at the time of breakage (13.33 KB, application/octet-stream)
2013-05-29 12:55 UTC, Aaron J. Seigo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron J. Seigo 2013-05-29 12:54:04 UTC
Sicnce the new bulk-updating code went in, approximately once a day I experience a hand in Kontact where it can (usually) list all the mails in a folder and all the folders, and the address book will list all the contact names in the address book, but clicking on an email or a contact will not load the relevant email or contact card in the viewer.

When this happens, trying to delete an email also returns an error about my IMAP account not having an associated trash folder. This is odd as I do not have IMAP set up :) see below:

My setup is as follows:

* POP3 server for incoming mail
* A couple dozen local mail filters, all of which match on to/cc/bcc (and for some also the subject) and send incoming email into folders
* Local maildir storage in the default location

When this happens, I can exit Kontact, shut down akaondi, remove ~/.config/akonadi/agent_config_akonadi_maildir_resource_0_changes.dat and then start everything up again and it once again functions correctly.

When hung, the maildir resource is simply waiting quietly in its event loop. It is not stuck in a loop anywhere nor is it hung on a blocking call.

Using akonadiconsole, requests for emails simply go unanswered with no apparent debug output in the debut panel (though I do get debug output for listing the folders themselves, incoming email over pop3, filtering, etc)

Attached is an example .dat file which was on disk at the time of a breakage.

Reproducible: Sometimes
Comment 1 Aaron J. Seigo 2013-05-29 12:55:19 UTC
Created attachment 80155 [details]
.dat file that was on disk at the time of breakage
Comment 2 Aaron J. Seigo 2013-05-29 12:58:09 UTC
Just happened again .. and this time I noticed that when I *drag* items to the trash, it says "No items found" and fails. Pressing the Delete key gives me the usual IMAP related error. I also noticed that the email header list is stuck at whatever the listing was prior to the hang.

It seems to happen more often when I'm receiving emails (pop3) while I am moving emails around in the client. Perhaps an interplay between recv, filtering and manual movement? That is an unverified "shot in the dark", but thought I'd include it in case that could be related.
Comment 3 Laurent Montel 2013-06-04 09:52:22 UTC
Fixed yesterday by Dan in kdepimlibs
Rebuild it.
akonadictl stop && akonadictrl start

Regards
Comment 4 Aaron J. Seigo 2013-06-04 10:51:33 UTC
awesome! thanks everyone .. if the problem re-occurs (hopefully not :) i'll let you know. otherwise, silence will be golden.