Bug 247134 - akonadi imap resource takes several days to sync Gmail account
Summary: akonadi imap resource takes several days to sync Gmail account
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-09 14:09 UTC by Soren Harward
Modified: 2011-09-17 16:33 UTC (History)
4 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 Soren Harward 2010-08-09 14:09:14 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

I have added by Gmail IMAP account to Akonadi several times in the past, but it always took a long time to synchronize.  Akonadi clients (like Kaddressbook and Kontact) slowed to a crawl while it was synchronizing, and while the resource was working on one folder, other folders would not get updated, so receiving new emails was sporadic at best.

So this weekend I finally decided to create an IMAP resource for Gmail let the synchronizing go all the way to completion.  It has thus far taken 4 days to sync about 800MB of mail, which is just ridiculously slow.  And if I browse the resource using the Akonadi Console, I can see the IMAP tree and it reports the proper number of messages, but the folders don't appear to contain any messages within them (ie, the right column in the Browser tab is completely blank), so I'm not even sure that the messages have downloaded correctly.  If Kmail is going to start using Akonadi in a couple of months, this needs to be improved.

I am happy to help debug, but I really don't know much about Akonadi, so I'll need instructions like "do steps A, B and C and tell us what happens".

Reproducible: Didn't try




The server log is full of messages like the following, which appear about once every 30 seconds with a new item number:

[akonadiserver] 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.
[akonadiserver] posting retrieval request for item 1612 there are 1 queues and 0 items in mine
[akonadiserver] checking if request for item 1612 has been processed...
[akonadiserver] request for item 1612 still pending - waiting

Does that indicate there is some kind of problem downloading items from Gmail?  And could the download problems be causing the slow sync, such as making it wait for a timeout for every one of thousands of items?
Comment 1 Murz 2010-08-19 13:39:18 UTC
Similar bug: https://bugs.kde.org/show_bug.cgi?id=247061
Comment 2 Kevin Ottens 2011-09-17 16:33:38 UTC
Is it still happening for you with 4.7.x? I've been unable to reproduce that one, it just works for me. I managed to sync 80k emails from GMail yesterday night in around an hour.

In case you still experience this please feel free to reopen so that we can try to investigate further. Getting an idea of the IMAP traffic going on really helps for this kind of cases.