Bug 344163 - "Unable to fetch item from backend (collection 8260) : Unable to retrieve item from resource"
Summary: "Unable to fetch item from backend (collection 8260) : Unable to retrieve ite...
Status: REOPENED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.6.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-14 15:19 UTC by piedro
Modified: 2018-02-26 21:35 UTC (History)
5 users (show)

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 piedro 2015-02-14 15:19:03 UTC
After importing a whole maildir from a NAS archive (created via rsync from another computer) I can open and work with many mails but when I try to open some mails, try to move or delete the folder of that mail or otherwise manipulate it I get the following: 

'Unable to fetch item from backend (collection 8260) : Unable to retrieve item from resource' 

Trying to do anything with the folder containing the affected mail results in 

'local folder: error reading folder, maildir "" is invalid' 

The other mails in the folder open fine an can be moved or deleted. 

This would be a minor problem if I could see all the affected mails, but it's guesswork which mails are the ones that create "invalid entries"... but as is it is a major problem because there are folders with over 2000 mails that give me this error ... 

I have no idea how to clean up, resolve or workaround this issue. 

The best hints I find are: 
"reindex the folder by clicking "reindex this folder" in the folder tab "maintainance"..." 
Well, there is no more option to that since there is no more nepomuk. 

So: 
- first of all this should not happen 
- second if there is an "invalid entry" with some mails this must not make the whole folder unusable 
- third the error message should be clear and give some clue about which mails  and what to do
- and finally: if something about an imported mail is "invalid" in a way that kmail can't handle it this mail should not be imported at all

Even in the KDE forums nobody how to clean this up after importing a few thousand mails. 
(these mails are all kmail mails from an rsynced local-mail directory on a NAS!) 
BTW: I tried reimporting folder by folder but that had the same result. 

 






Reproducible: Always
Comment 1 Dave Thompson 2015-04-25 12:45:39 UTC
I can confirm this is still a bug.

I have an Outlook.com email address set and when I try and configure kMail to only download all items I get this error message as well.

Can we supply logs to help you diagnose this?

Dave
Comment 2 Martin Steigerwald 2015-09-09 20:51:36 UTC
piedro, Dave, thank you for your report and comment. Can you still reproduce it with KDEPIM 4.4.10? Please see to use a recent version of Akonadi 1.13. If you can try out KDEPIM 15.08 and Akonadi 15.08 please do so. Akonadi 15.08 contains some performance improvements like binary protocol already. Akonadi 15.12 will contain even more improvements like optimized queries, further database indexes and leveled file_db directory. I am currently using Akonadi and KDEPIM from master and it is a massive improvment. Basically now its the threading in KMail and other things in KMail being the main bottleneck.

Feel free to reopen if you still see it. If you can try at least with KDEPIM and Akonadi 15.08.

Thank you and greetings from KDE Randa Meetings,
Martin
Comment 3 piedro 2015-09-09 21:05:34 UTC
Sry can't test at the moment, for me there is so much stuff messed up at the moment, I first have to fix local folders, email filtering, searching before I can look into this again. the upgrade to 15.08 broke a lot for me. 

Maybe later... 
p.
Comment 4 Martin Steigerwald 2015-09-09 21:53:03 UTC
Piedro, no problem. Take your time.

Feel free to ask in kdepim-users mailing list about your issues with upgrading to 15.08. And describe there how you upgraded (packages?, compiled with kdesrc-build? and so on). Please don´t use the bug report for this. Just as a heads up, I upgraded a massive KDEPIM setup from 4.14.10 to KDEPIM from master as two days ago. And it works really nicely. I built with kdesrc-build.
Comment 5 piedro 2016-01-16 19:16:01 UTC
Hello! 

Now I do not get any of these errors anymore. The only error messages in my akonadiserver.error are these: 

Cannot pause an inactive timer 
Cannot resume a timer that is not paused. 
Cannot pause an inactive timer 
Cannot pause an inactive timer 
Cannot resume a timer that is not paused. 
Cannot resume a timer that is not paused. 

As I guess this is not related I'd consider this bug as solved! 

Cheers, :-), 
piedro
Comment 6 Martin Steigerwald 2016-01-18 14:38:23 UTC
Thanks, Piedro. Good to read that it works for you. I am closing this.
Comment 7 Erik Quaeghebeur 2016-05-03 21:29:06 UTC
(In reply to Martin Steigerwald from comment #6)
> I am closing this.

Perhaps reopen, or is this a different issue:

I get "Unable to fetch item from backend (collection -1) Unable to retrieve item from resource: Ongeldige item opgehaald", where the last part is a bad Dutch translation of ‘retrieved invalid item’.

Akonadi 1.13.0
KMail 4.14.10

In akonadiconsole the problematic mail in question is grayed out and cannot be interacted with. I'd deleted that mail, but appartently something went wrong. This is an IMAP resource; the mail is not present on the IMAP server.