Bug 332653 - After mail receive on filtering: Unable to retrieve item from resource: NO ImapParserException: Unable to read more data
Summary: After mail receive on filtering: Unable to retrieve item from resource: NO Im...
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Maildir Resource (show other bugs)
Version: 4.12
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-26 21:03 UTC by Martin Steigerwald
Modified: 2015-03-12 12:33 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 Martin Steigerwald 2014-03-26 21:03:47 UTC
On testing performance issues with Akonadi I ran into this error message after I disabled Nepomuk mail indexing and downloaded / filtered new mail for a huge POP3 account with kernel-ml folder of about 220000 unread mails[1] I got this error and it seemed that the Akonadi maildir resource crashed. 

I got this once before already.

[1] See:
- [Kde-pim] Akonadi MySQL backend: tuning for larger accounts or switching to MariaDB with a different storage engine?
http://lists.kde.org/?l=kde-pim&m=139583561813493&w=2
- [kmail2] [Bug 331848] displaying, moving, deleting mails takes 10-20 seconds  when Akonadi synchronizes in background

Reproducible: Sometimes

Steps to Reproduce:
I don´t know yet.
Actual Results:  
Akonadi maildir agent hogging a Sandybridge core 100% for minutes. KMail didn´t respond anymore to any requests to display mails, change folders and so on.

And I got this:

martin@merkaba:~/.local/share/akonadi> egrep -i "(imap|ItemRetrieverException)" ~/.xsession-errors
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: NO ImapParserException: Unable to read more data
akonadi_mailfilter_agent(16407): Error while moving items.  103 "Unable to retrieve item from resource: NO ImapParserException: Unable to read more data"  to destinationCollection.id() : 188 
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: NO ImapParserException: Unable to read more data
akonadi_mailfilter_agent(16407): Error while moving items.  103 "Unable to retrieve item from resource: NO ImapParserException: Unable to read more data"  to destinationCollection.id() : 260 

=> Note: I do not have any Imap account configured. And no imap agent running

ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Message did not receive a reply (timeout by message bus)
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: NO ImapParserException: Unable to read more data
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to retrieve item from resource: NO ImapParserException: Unable to read more data"  to destinationCollection.id() : 188 
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: Message did not receive a reply (timeout by message bus)
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource
ItemRetrieverException :  Unable to contact resource


On exiting Akonadi it seemed that maildir resource had crashed:

ItemRetrieverException :  Unable to retrieve item from resource: Message did not receive a reply (timeout by message bus)
Application '/usr/bin/akonadi_pop3_resource' exited normally...
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to retrieve item from resource: Message did not receive a reply (timeout by message bus
)"  to destinationCollection.id() : 122 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.a
konadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.a
konadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 115 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.a
konadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of na
[…]
akonadi_pop3_resource_4(15312)/akonadiresource (pop3) SettingsHelper::~SettingsHelper: Settings(0x25f5d80) 
akonadi_pop3_resource_5(15313)/akonadiresource (pop3) SettingsHelper::~SettingsHelper: Settings(0x2283f50) 
akonadi_pop3_resource_2(15310)/akonadiresource (pop3) SettingsHelper::~SettingsHelper: Settings(0xb2c850) 
akonadi_pop3_resource_3(15311)/akonadiresource (pop3) SettingsHelper::~SettingsHelper: Settings(0x124a000) 
akonadi_pop3_resource_1(15309)/akonadiresource (pop3) SettingsHelper::~SettingsHelper: Settings(0x184d0a0) 
Application '/usr/bin/akonadi_pop3_resource' exited normally...
akonadi_pop3_resource_6(15314)/akonadiresource (pop3) SettingsHelper::~SettingsHelper: Settings(0xa824d0) 
akonadi_pop3_resource_0(15308)/akonadiresource (pop3) SettingsHelper::~SettingsHelper: Settings(0x17cf410) 
Application '/usr/bin/akonadi_newmailnotifier_agent' exited normally...
Application '/usr/bin/akonadi_pop3_resource' exited normally...
Application '/usr/bin/akonadi_birthdays_resource' exited normally...
Application '/usr/bin/akonadi_nepomuk_feeder' exited normally...
Application '/usr/bin/akonadi_agent_launcher' exited normally...
Application '/usr/bin/akonadi_agent_launcher' exited normally...
Application '/usr/bin/akonadi_sendlater_agent' exited normally...
ProcessControl: Application /usr/bin/akonadi_agent_launcher stopped unexpectedly ( "Process crashed" )
Application '/usr/bin/akonadi_agent_launcher' crashed. No restart!
Application '/usr/bin/akonadi_agent_launcher' exited normally...
Application '/usr/bin/akonadi_archivemail_agent' exited normally...
Application '/usr/bin/akonadi_maildispatcher_agent' exited normally...
Application '/usr/bin/akonadi_migration_agent' exited normally...
Application '/usr/bin/akonadi_pop3_resource' exited normally...
Application '/usr/bin/akonadi_pop3_resource' exited normally...
Application '/usr/bin/akonadi_pop3_resource' exited normally...
Application '/usr/bin/akonadi_folderarchive_agent' exited normally...
[…]
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 257 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.a
konadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 257 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.a
konadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 122 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.a
konadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 188 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.a
konadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 175 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.a
konadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 188 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 188 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 114 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 188 
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_maildir_resource_0': no such name'"
ItemRetrieverException :  Unable to contact resource
akonadi_mailfilter_agent(15304): Error while moving items.  103 "Unable to contact resource"  to destinationCollection.id() : 188 
Application '/usr/bin/akonadi_mailfilter_agent' exited normally...
Application '/usr/bin/akonadi_pop3_resource' exit

Expected Results:  
Kmail is responsive. No crashes.

martin@merkaba:~/.local/share> du -sh local-mail              
11G     local-mail
martin@merkaba:~/.local/share> find local-mail -type d | wc -l
1001
martin@merkaba:~/.local/share> find local-mail -type f | wc -l
815149


martin@merkaba:~/.local/share/akonadi> find file_db_data -type f | wc -l
824



Located on BTRFS RAID 1 dual SSD setup.

martin@merkaba:~> phoronix-test-suite system-info

Phoronix Test Suite v4.8.3
System Information

Hardware:
Processor: Intel Core i5-2520M @ 3.20GHz (4 Cores), Motherboard: LENOVO 42433WG, Chipset: Intel 2nd Generation Core Family DRAM, Memory: 8192MB, Disk: 300GB INTEL SSDSA2CW30 + 480GB Crucial_CT480M50, Graphics: Intel HD 3000 (1300MHz), Audio: Conexant CX20590, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205

Software:
OS: Debian unstable, Kernel: 3.14.0-rc7-tp520 (x86_64), Desktop: KDE 4.12.3, Display Server: X Server 1.15.0, Display Driver: intel 2.21.15, OpenGL: 3.1 Mesa 10.1.0, Compiler: GCC 4.8, File-System: btrfs, Screen Resolution: 1920x1080
Comment 1 Martin Steigerwald 2014-03-26 21:12:22 UTC
Probably could be related to Akonadi still trying to feed stuff into Nepomuk? How long does it take till Akonadi respect that I disabled mail indexing. Will observe this further and close if it doesn´t happen again.
Comment 2 Martin Steigerwald 2015-03-12 12:33:20 UTC
I did not see this anymore since quite some time, currently using Akonadi 1.13 current master, kdepimlibs and kdepim-runtime from 24th of February and KMail 4.14.2. Also its still Nepomuk related and Nepomuk is gone. Thus closing.