Bug 338967 - Communication with exchange server breaks down after initial sync
Summary: Communication with exchange server breaks down after initial sync
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 1.13.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Mollekopf
URL: https://bugs.debian.org/cgi-bin/bugre...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-10 09:09 UTC by Franz Schrober
Modified: 2018-02-01 09:52 UTC (History)
12 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 Franz Schrober 2014-09-10 09:09:35 UTC
Debian updated recently to KDE 4.14 (from KDE 4.13) and during that time also updated akonadi to 1.13 (from 1.12.1). After this update the communication with exchange servers (provided by hostedexchange.com) seems to be broken. Sometimes I get new messages after the restart of the system (or akonadi) but during a normal run (even when trying to sync a folder) I cannot get new messages at all. I would also say that it downloads all my messages again after a system start (at least this is what happened right now and a co-worker also told me that he sees this all the time). Also changing the state of a mail (read -> unread) doesn't seem to change it on the server. The account is a disconnected imap and I can see all changes on my imap folder in akonadiconsole but not on the server. The only communication with the server is following (even trying to get new messages/change messages/....):

SERVER: * OK The Microsoft Exchange IMAP4 service is ready.
CLIENT: A000001 AUTHENTICATE PLAIN
SERVER: +
CLIENT: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SERVER: A000001 OK AUTHENTICATE completed.
CLIENT: A000002 CAPABILITY
SERVER: * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS
SERVER: CHILDREN IDLE NAMESPACE LITERAL+
SERVER: A000002 OK CAPABILITY completed.
CLIENT: A000003 NAMESPACE
SERVER: * NAMESPACE (("" "/")) NIL NIL
SERVER: A000003 OK NAMESPACE completed.

and after a while the server just disconnects the client with a TCP reset.

Any recommendations what I should try? Can I gather more informations to help debugging?

Also pressing the "Synchronize Folder" in akonadi for the INBOX of this account, or check mail in kmail2 for this account, or "Update Folder" on this account's INBOX in kmail2 doesn't create any output in the akonadiconsole debug output.  As said before, also no new messages are exchanged with the server of TCP when doing that.

Reproducible: Always
Comment 1 Franz Schrober 2014-09-10 09:40:57 UTC
Additional info: I am also using some dovecot IMAP servers with the same client. And the akonadi_imap_resource doesn't seem to have any problem with them. I can communicate with the dovecot servers normally even when the akonadi_imap_resource communicating with the exchange server became "very stupid"
Comment 2 Tamás Gere 2014-09-10 12:54:21 UTC
I'm experiencing quite same since upgrade, the only difference is the non-working server type. It's courier instead of exchange, while dovecot works fine.
But I don't see relation between server software and our problem. It's more likely the configuration. 
If I start akonadi in console, I see the this on mail check:


akonadi_imap_resource_2(24516) RetrieveItemsTask::onFinalSelectDone: Detected inconsistency in local cache, we're missing some messages. Server:  1635  Local:  1595
akonadi_imap_resource_2(24516) RetrieveItemsTask::onFinalSelectDone: Refetching complete mailbox.
akonadi_imap_resource_2(24516) BatchFetcher::onUidSearchDone: Search job failed:  "Search failed, server replied: A000480 NO Error in IMAP command received by server. "
akonadi_imap_resource_2(24516) RetrieveItemsTask::onRetrievalDone: ""


Yes, the courier server has search functionality disabled (their headstrong persuasion that this makes less load on already overstressed servers), while it's enabled on dovecot.
Maybe there are some new code which doesn't handle this case well?
Comment 3 Tamás Gere 2014-09-10 13:03:19 UTC
Oh, I forgot to mention that I don't have any new message since upgrade. Akonadi doesn't want download on startup, nor later.
Comment 4 Franz Schrober 2014-09-10 14:03:31 UTC
At least I could workaround a little bit for me. I've used the exchange web frontend to remove all new messages from this account (5000 mails) because they would have been moved by a client filter to a different folder. So I was able to use this account for a limited time. After a while the connection was again reset by the server and then the akonadi resource was "very stupid" again. Only killing (SIGTERM) the process for this imap resource made it possible to use it again. Even using the "restart resource" functionality in akonadiconsole did not work. Also setting the resource offline+online again did not work.

Now it received two mails again and I am only waiting until the resource goes back into the "very stupid" mode
Comment 5 Franz Schrober 2014-09-10 16:13:39 UTC
Just from my dump of the complete sync when the akonadi resource turned "very dump"

First stream ends

SERVER * 2689 RECENT
SERVER * 3500 EXISTS
SERVER * 2690 RECENT
SERVER * 3501 EXISTS
SERVER * 2691 RECENT
SERVER * 3502 EXISTS
SERVER * 2692 RECENT
SERVER * 3503 EXISTS
CLIENT DONE
SERVER A000059 OK IDLE completed.
CLIENT A000060 LOGOUT
SERVER * BYE Microsoft Exchange Server 2010 IMAP4 server signing off.
SERVER A000060 OK LOGOUT completed.

connection now ends with a normal FIN+ACK from the client.


But there was an parallel data stream at the same time which ended with an TCP RST

SERVER: * OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags
SERVER: * OK [UNSEEN 812] Is the first unseen message
SERVER: * OK [UIDVALIDITY 36549] UIDVALIDITY value
SERVER: * OK [UIDNEXT 33952] The next unique identifier value
SERVER: A000270 OK [READ-WRITE] SELECT completed.
SERVER: A000271 UID STORE 31272,31273,31274,31275,31276,31277,31278,31279,31280,31281,31282,31283,31284,31285,31286,31287,31288,31289,31290,31291,31292,31294,31295,31296,31297,31298,31299,31300,31301,31303,31304,31305,31306,31307,31308,31309,31310,31311,31312,31313,31314,31315,31316,31317,31318,31319,31320,31321,31322,31324,31325,31326,31327,31328,31329,31330,31331,31332,31333,31334,31335,31336,31337,31338,31339,31340,31341,31342,31343,31344,31345,31346,31347,31348,31349,31350,31351,31352,31353,31354,31355,31356,31357,31358,31359,31360,31361,31362,31363,31364,31365,31366,31367,31368,31369,31370,31371,31373,31374,31375,31376,31377,31378,31379,31380,31381,31382,31383,31384,31385,31386,31387,31388,31389,31390,31391,31392,31393,31394,31395,31396,31397,31398,31399,31400,31401,31402,31403,31404,31405,31406,31407,31408,31409,31410,31411,31412,31413,31414,31415,31416,31417,31418,31419,31420,31421,31422,31423,31424,31425,31426,31427,31428,31429,31430,31431,31432,31433,31434,31435,31436,31437,31438,31439,31440,31441,31442,31443,31444,31445,31446,31447,31448,31449,31452,31453,31454,31455,31456,31457,31458,31459,31460,31461,31463,31464,31465,31466,31467,31468,31469,31470,31471,31472,31473,31474,31475,31476,31477,31478,31479,31480,31481,31482,31483,31484,31485,31486,31488,31489,31490,31491,31492,31493,31494,31495,31496,31497,31498,31499,31500,31501,31502,31503,31504,31505,31506,31507,31509,31510,31511,31512,31513,31514,31515,31516,31517,31518,31519,31520,31521,31522,31523,31524,31525,31526,31527,31528,31529,31530,31531,31532,31533,31534,31535,31536,31537,31538,31539,31540,31541,31542,31543,31544,31545,31546,31547,31548,31549,31550,31551,31552,31553,31554,31555,31556,31557,31558,31559,31560,31561,31562,31564,31565,31566,31567,31568,31569,31570,31571,31572,31573,31574,31575,31576,31577,31578,31579,31580,31581,31582,31583,31584,31585,31586,31587,31588,31589,31590,31591,31592,31593,31594,31595,31596,31597,31598,31599,31601,31602,31603,31604,31605,31606,31607,31608,31609,31610,31611,31612,31613,31614,31615,31616,31617,31618,31619,31620,31621,31622,31623,31624,31625,31626,31627,31628,31629,31630,31631,31632,31633,31634,31635,31636,31638,31639,31640,31641,31642,31643,31644,31645,31646,31647,31648,31649,31650,31651,31652,31653,31654,31655,31656,31657,31658,31659,31660,31661,31662,31663,31664,31665,31666,31667,31668,31669,31670,31671,31672,31673,31674,31675,31676,31677,31678,31679,31680,31681,31682,31683,31684,31685,31686,31687,31688,31689,31690,31691,31692,31693,31694,31695,31696,31697,31698,31699,31700,31701,31702,31703,31704,31705,31706,31707,31708,31709,31710,31711,31712,31713,31714,31715,31716,31717,31718,31719,31720,31721,31722,31723,31724,31725,31726,31727,31728,31729,31730,31731,31732,31733,31734,31735,31736,31737,31738,31739,31740,31741,31742,31743,31744,31745,31746,31747,31748,31749,31750,31751,31752,31753,31754,31755,31756,31757,31758,31760,31761,31762,31763,31764,31765,31766,31767,31768,31769,31770,31771,31772,31773,31774,31775,31776,31777,31778,31779,31780,31781,31782,31783,31784,31785,31786,31787,31788,31789,31790,31791,31792,31793,31794,31795,31796,31797,31798,31799,31800,31801,31802,31803,31804,31805,31806,31807,31808,31809,31810,31811,31812,31813,31814,31815,31816,31817,31818,31819,31820,31821,31822,31823,31826,31827,31828,31829,31830,31831,31832,31833,31834,31835,31836,31837,31838,31839,31840,31841,31843,31844,31845,31846,31847,31848,31849,31850,31851,31852,31853,31854,31855,31856,31857,31858,31859,31860,31861,31862,31863,31864,31865,31866,31867,31868,31869,31870,31871,31872,31873,31874,31875,31876,31877,31878,31879,31880,31881,31882,31883,31884,31885,31886,31887,31888,31889,31890,31891,31892,31893,31894,31895,31896,31897,31898,31899,31900,31901,31902,31903,31904,31905,31906,31907,31908,31909,31910,31911,31912,31913,31914,31915,31916,31917,31918,31919,31920,31921,31922,31923,31924,31925,31926,31927,31928,31929,31930,31931,31932,31933,31934,31935,31936,31937,31938,31939,31940,31941,31942,31943,31945,31946,31947,31948,31949,31950,31951,31952,31955,31956,31957,31958,31959,31960,31961,31962,31963,31964,31965,31966,31971,31972,31973,31974,31975,31976,31977,31978,31980,31981,31982,31983,31985,31986,31987,31988,31989,31990,31991,31992,31993,31994,31995,31996,31997,31998,31999,32000,32001,32002,32003,32004,32005,32006,32007,32008,32009,32010,32011,32012,32013,32014,32015,32016,32017,32018,32019,32020,32021,32022,32023,32024,32025,32026,32027,32028,32029,32030,32031,32032,32033,32034,32035,32036,32037,32038,32039,32040,32041,32042,32043,32044,32045,32046,32047,32048,32049,32050,32052,32053,32054,32055,32056,32057,32058,32059,32060,32061,32062,32063,32064,32065,32066,32067,32069,32070,32071,32072,32073,32074,32075,32076,32077,32078,32079,32080,32081,32082,32083,32084,32085,32086,32087,32088,32089,32090,32091,32092,32093,32094,32095,32096,32097,32098,32099,32100,32101,32102,32103,32104,32105,32106,32107,32108,32109,32110,32111,32112,32113,32114,32115,32116,32117,32118,32119,32120,32121,32122,32123,32124,32125,32126,32127,32128,32129,32130,32131,32132,32133,32134,32135,32136,32137,32138,32139,32140,32141,32142,32143,32144,32145,32146,32147,32148,32149,32150,32151,32152,32153,32154,32155,32156,32157,32158,32159,32160,32161,32162,32163,32164,32165,32166,32167,32168,32169,32170,32171,32172,32173,32174,32175,32176,32177,32178,32179,32180,32181,32182,32183,32184,32185,32186,32187,32188,32189,32190,32191,32192,32194,32195,32196,32197,32198,32199,32200,32201,32202,32203,32204,32205,32206,32207,32208,32209,32210,32211,32212,32213,32214,32215,32216,32217,32218,32219,32220,32221,32222,32223,32224,32225,32226,32227,32228,32229,32230,32231,32232,32233,32234,32235,32236,32237,32238,32239,32240,32241,32242,32243,32244,32245,32246,32247,32248,32249,32250,32251,32252,32253,32254,32255,32256,32257,32258,32259,32260,32261,32263,32264,32265,32266,32267,32268,32269,32270,32271,32272,32273,32274,32275,32276,32277,32278,32279,32280,32281,32282,32283,32284,32285,32286,32287,32288,32289,32290,32291,32292,32293,32294,32295,32296,32297,32298,32299,32300,32301,32302,32303,32304,32305,32306,32307,32308,32309,32310,32311,32312,32313,32314,32315,32316,32317,32318,32319,32320,32321,32322,32323,32324,32325,32326,32327,32328,32329,32330,32331,32332,32333,32334,32335,32336,32337,32338,32339,32340,32341,32342,32343,32344,32345,32346,32347,32348,32349,32350,32351,32352,32353,32354,32355,32356,32357,32358,32359,32360,32361,32362,32363,32364,32365,32366,32367,32368,32369,32370,32371,32372,32373,32374,32375,32376,32377,32378,32379,32380,32381,32382,32383,32384,32385,32386,32387,32388,32389,32390,32391,32392,32393,32394,32395,32396,32397,32398,32399,32400,32401,32402,32403,32404,32405,32406,32407,32408,32409,32410,32411,32412,32413,32414,32415,32416,32417,32418,32419,32420,32421,32422,32423,32424,32425,32426,32427,32428,32429,32430,32431,32432,32433,32434,32435,32436,32437,32438,32439,32440,32441,32442,32443,32444,32445,32446,32447,32448,32449,32450,32451,32452,32453,32454,32455,32456,32457,32458,32459,32460,32461,32462,32463,32464,32465,32466,32467,32469,32470,32471,32472,32473,32474,32475,32476,32477,32478,32479,32480,32481,32482,32483,32484,32485,32486,32487,32488,32489,32490,32491,32492,32493,32494,32495,32496,32497,32498,32499,32500,32501,32502,32503,32504,32505,32506,32507,32508,32509,32510,32511,32512,32513,32514,32515,32517,32518,32519,32520,32521,32522,32523,32524,32525,32526,32527,32528,32529,32530,32531,32532,32533,32534,32535,32536,32537,32538,32539,32540,32541,32542,32543,32544,32545,32546,32547,32548,32550,32551,32552,32553,32554,32555,32556,32557,32558,32559,32560,32561,32562,32563,32564,32565,32566,32567,32568,32569,32570,32571,32572,32573,32574,32575,32576,32577,32578,32579,32580,32581,32582,32583,32584,32585,32586,32587,32588,32589,32590,32591,32592,32593,32594,32595,32596,32597,32598,32599,32600,32601,32602,32603,32604,32605,32606,32607,32608,32609,32610,32611,32612,32613,32614,32615,32616,32617,32618,32619,32620,32621,32622,32623,32624,32625,32626,32627,32628,32629,32630,32631,32632,32633,32634,32635,32636,32637,32638,32639,32640,32641,32642,32643,32644,32645,32646,32647,32648,32649,32650,32651,32652,32653,32654,32655,32656,32657,32658,32659,32660,32661,32662,32663,32664,32665,32666,32667,32668,32669,32670,32671,32672,32673,32674,32675,32676,32677,32678,32679,32680,32681,32682,32683,32684,32685,32686,32687,32688,32689,32690,32691,32692,32693,32694,32695,32696,32697,32698,32699,32700,32701,32702,32703,32704,32705,32706,32707,32708,32709,32710,32711,32712,32713,32714,32715,32716,32717,32718,32719,32720,32721,32722,32723,32724,32725,32726,32727,32728,32729,32730,32731,32732,32733,32734,32735,32736,32737,32738,32739,32740,32741,32742,32743,32744,32745,32746,32747,32748,32749,32750,32751,32752,32753,32754,32755,32756,32757,32758,32759,32760,32761,32762,32763,32764,32765,32766,32767,32768,32769,32770,32771,32772,32773,32774,32775,32776,32777,32778,32779,32780,32781,32782,32783,32784,32785,32786,32787,32788,32789,32790,32791,32792,32793,32794,32795,32796,32797,32798,32799,32800,32801,32802,32803,32804,32805,32806,32807,32808,32809,32810,32811,32812,32813,32814,32815,32816,32817,32818,32819,32820,32821,32822,32823,32824,32825,32826,32827,32828,32829,32830,32831,32832,32833,32834,32835,32836,32837,32838,32839,32840,32841,32842,32843,32844,32845,32846,32847,32848,32849,32850,32851,32852,32853,32854,32855,32856,32857,32858,32859,32860,32861,32862,32863,32864,32865,32866,32867,32868,32869,32870,32871,32872,32873,32874,32875,32876,32877,32878,32879,32880,32881,32882,32883,32884,32885,32886,32887,32888,32889,32890,32891,32892,32893,32894,32895,32896,32897,32898,32899,32900,32901,32902,32903,32904,32905,32906,32907,32908,32909,32910,32911,32912,32913,32914,32915,32916,32917,32918,32919,32920,32921,32922,32923,32924,32925,32926,32927,32928,32929,32930,32931,32932,32933,32934,32935,32936,32937,32938,32939,32940,32941,32942,32943,32944,32945,32946,32947,32948,32949,32950,32951,32952,32953,32954,32955,32956,32957,32958,32959,32960,32961,32962,32963,32964,32965,32966,32967,32968,32969,32970,32971,32972,32973,32974,32975,32976,32977,32978,32979,32980,32981,32982,32983,32984,32985,32986,32987,32988,32989,32990,32991,32992,32993,32994,32995,32996,32997,32998,32999,33000,33001,33002,33003,33004,33005,33006,33007,33008,33009,33010,33011,33012,33013,33014,33015,33016,33017,33018,33019,33020,33021,33022,33023,33024,33025,33026,33027,33028,33029,33030,33031,33032,33033,33034,33035,33036,33037,33038,33039,33040,33041,33042,33043,33044,33045,33046,33047,33048,33049,33050,33051,33052,33053,33054,33055,33056,33057,33058,33059,33060,33061,33062,33063,33064,33065,33066,33067,33068,33069,33070,33071,33072,33073,33074,33075,33076,33077,33078,33079,33080,33081,33082,33083,33084,33085,33086,33087,33088,33089,33090,33091,33092,33093,33094,33095,33096,33097,33098,33099,33100,33101,33102,33103,33104,33105,33106,33107,33108,33109,33110,33111,33112,33113,33114,33115,33116,33117,33118,33119,33120,33121,33122,33123,33124,33125,33126,33127,33128,33129,33130,33131,33132,33133,33134,33135,33136,33137,33138,33139,33140,33141,33142,33143,33144,33145,33146,33147,33148,33149,33150,33151,33152,33153,33154,33155,33156,33157,33158,33159,33160,33161,33162,33163,33164,33165,33166,33167,33168,33169,33170,33171,33172,33173,33174,33175,33176,33177,33178,33179,33180,33181,33182,33183,33184,33185,33186,33187,33188,33189,33190,33191,33192,33193,33194,33195,33196,33197,33198,33199,33200,33201,33202,33203,33204,33205,33206,33207,33208,33209,33210,33211,33212,33213,33214,33215,33216,33217,33218,33219,33220,33221,33222,33223,33224,33225,33226,33227,33228,33229,33230,33231,33232,33233,33234,33235,33236,33237,33238,33239,33240,33241,33242,33243,33244,33245,33246,33247,33248,33249,33250,33251,33252,33253,33254,33255,33256,33257,33258,33259,33260,33261,33262,33263,33264,33265,33266,33267,33268,33269,33270,33271,33272,33273,33274,33275,33276,33277,33278,33279,33280,33281,33282,33283,33284,33285,33286,33287,33288,33289,33290,33291,33292,33293,33294,33295,33296,33297,33298,33299,33300,33301,33302,33303,33304,33305,33306,33307,33308,33309,33310,33311,33312,33313,33314,33315,33316,33317,33318,33319,33320,33321,33322,33323,33324,33325,33326,33327,33328,33329,33330,33331,33332,33333,33334,33335,33336,33337,33338,33339,33340,33341,33342,33343,33344,33345,33346,33347,33348,33349,33350,33351,33352,33353,33354,33355,33356,33357,33358,33359,33360,33361,33362,33363,33364,33365,33366,33367,33368,33369,33370,33371,33372,33373,33374,33375,33376,33377,33378,33379,33380,33381,33382,33383,33384,33385,33386,33387,33388,33389,33390,33391,33392,33393,33394,33395,33396,33397,33398,33399,33400,33401,33402,33403,33404,33405,33406,33407,33408,33409,33410,33411,33412,33413,33414,33415,33416,33417,33418,33419,33420,33421,33422,33423,33424,33425,33426,33427,33428,33429,33430,33431,33432,33433,33434,33435,33436,33437,33438,33439,33440,33441,33442,33443,33444,33445,33446,33447,33448,33449,33450,33451,33452,33453,33454,33455,33456,33457,33458,33459,33460,33461,33462,33463,33464,33465,33466,33467,33468,33469,33470,33471,33472,33473,33474,33475,33476,33477,33478,33479,33480,33481,33482,33483,33484,33485,33486,33487,33488,33489,33490,33491,33492,33493,33494,33495,33496,33497,33498,33499,33500,33501,33502,33503,33504,33505,33506,33507,33508,33509,33510,33511,33512,33513,33514,33515,33516,33517,33518,33519,33520,33521,33522,33523,33524,33525,33526,33527,33528,33529,33530,33531,33532,33533,33534,33535,33536,33537,33538,33539,33540,33541,33542,33543,33544,33545,33546,33547,33548,33549,33550,33551,33552,33553,33554,33555,33556,33557,33558,33559,33560,33561,33562,33563,33564,33565,33566,33567,33568,33569,33570,33571,33572,33573,33574,33575,33576,33577,33578,33579,33580,33581,33582,33583,33584,33585,33586,33587,33588,33589,33590,33591,33592,33593,33594,33595,33596,33597,33598,33599,33600,33601,33602,33603,33604,33605,33606,33607,33608,33609,33610,33611,33612,33613,33614,33615,33616,33617,33618,33619,33620,33621,33622,33623,33624,33625,33626,33627,33628,33629,33630,33631,33632,33633,33634,33635,33636,33637,33638,33639,33640,33641,33642,33643,33644,33645,33646,33647,33648,33649,33650,33651,33652,33653,33654,33655,33656,33657,33658,33659,33660,33661,33662,33663,33664,33665,33666,33667,33668,33669,33670,33671,33672,33673,33674,33675,33676,33677,33678,33679,33680,33681,33682,33683,33684,33685,33686,33687,33688,33689,33690,33691,33692,33693,33694,33695,33696,33697,33698,33699,33700,33701,33702,33703,33704,33705,33706,33707,33708,33709,33710,33711,33712,33713,33714,33715,33716,33717,33718,33719,33720,33721,33722,33723,33724,33725,33726,33727,33728,33729,33730,33731,33732,33733,33734,33735,33736,33737,33738,33739,33740,33741,33742,33743,33744,33745,33746,33747,33748,33749,33750,33751,33752,33753,33754,33755,33756,33757,33758,33759,33760,33761,33762,33763,33764,33765,33766,33767,33768,33769,33770,33771,33772,33773,33774,33775,33776,33777,33778,33779,33780,33781,33782,33783,33784,33785,33786,33787,33788,33789,33790,33791,33792,33793,33794,33795,33796,33797,33798,33799,33800,33801,33802,33803,33804,33805,33806,33807,33808,33809,33810,33811,33812,33813,33814,33815,33816,33817,33818,33819,33820,33821,33822,33823,33824,33825,33826,33827,33828,33829,33830,33831,33833,33834,33835,33836,33837,33838,33839,33840,33841,33842,33843,33844,33845,33846,33847,33848,33849,33850,33851,33852,33853,33854,33855,33856,33857,33858,33859,33860,33861,33862,33863,33864,33865,33866,33867,33868,33869,33870,33871,33872,33873,33874,33875,33876,33877,33878,33879,33880,33881,33882,33883,33884,33885,33886,33887,33888,33889,33890,33891,33892,33893,33894,33895,33896,33897,33898,33899,33900,33901,33902,33903,33904,33905,33906,33907,33908,33909,33910,33911,33912,33913,33914,33915,33916,33917,33918,33919,33920,33921,33922,33923,33924,33925,33926,33927,33928,33929,33930,33931,33932,33933,33934,33935,33936,33937,33938,33939,33940,33941,33942,33943,33944,33945,33946,33947,33948,33949,33950 +FLAGS (\Seen)
SERVER: A000271 BAD Command Error. 10
SERVER: * BYE Connection closed.


This repeats some times and then akonadi_resource goes in "very stupid"-mode
Comment 6 Franz Schrober 2014-09-10 16:14:46 UTC
Small correction. The "SERVER: A000271 UID STORE " with the long uid list is from the client and not from the server
Comment 7 Franz Schrober 2014-09-10 16:25:18 UTC
Maybe it is also interesting that I see a lot of connections which go this way:

CLIENT: TCP(Syn) -> Server
Server: TCP(RST, ACK) -> Client

Maybe this also causes the "very stupid" mode of akonadi_resource_imap
Comment 8 Nolwenn 2014-09-11 09:15:06 UTC
Same here (Archlinux with KDE 4.14) but with one of three gmail account akonadi retrieve mail only at startup or after akonadi server restart. 

Here, some log from the job tracker in akonadiconsole : akonadi_imap_resource_2 working well and not akonadi_imap_resource_0 (default account)

Job ID		Created		Wait Time	Job Duration	Job Type		State	Info
akonadi_imap_resource_2						
	c8c2c0	11:09:15.737	00:00:00.000	00:00:00.009	Akonadi::CollectionFetchJob	Ended	Collection Id 107
	e78850	11:09:15.737	00:00:00.009	00:00:00.002	Akonadi::CollectionFetchJob	Ended	Collection Id 106
	c8c510	11:09:15.737	00:00:00.011	00:00:00.005	Akonadi::CollectionFetchJob	Ended	Collection Id 105
	e76400	11:09:15.737	00:00:00.016	00:00:00.002	Akonadi::CollectionFetchJob	Ended	Collection Id 109
	c8c4a0	11:09:15.737	00:00:00.018	00:00:00.004	Akonadi::CollectionFetchJob	Ended	Collection Id 108
	e55930	11:09:15.737	00:00:00.022	00:00:00.004	Akonadi::CollectionFetchJob	Ended	Collection Id 103
	c8d300	11:09:15.737	00:00:00.026	00:00:00.003	Akonadi::CollectionFetchJob	Ended	Collection Id 104
	d73440	11:09:15.737	00:00:00.029	00:00:00.001	Akonadi::CollectionFetchJob	Ended	Collection Id 102
	cd37b0	11:09:16.021	00:00:00.000	00:00:00.023	Akonadi::CollectionSync	Ended	
		e76280	11:09:17.892	00:00:00.003	00:00:00.001	Akonadi::ItemFetchJob	Ended	All items from collection 109
	e87d80	11:09:16.045	00:00:00.000	00:00:00.002	Akonadi::CollectionFetchJob	Ended	Collection Id 107
	e51500	11:09:16.047	00:00:00.000	00:00:00.313	Akonadi::ItemSync	Ended	Collection 107 (Suivis)
		e815d0	11:09:16.356	00:00:00.000	00:00:00.004	Akonadi::TransactionSequence	Ended	
			e775e0	11:09:16.356	00:00:00.000	00:00:00.001	Akonadi::TransactionBeginJob	Ended	
			e48770	11:09:17.385			Akonadi::TransactionSequence	Ended	
			e43ea0	11:09:16.359	00:00:00.000	00:00:00.001	Akonadi::TransactionCommitJob	Ended	
	d013e0	11:09:16.360	00:00:00.000	00:00:00.002	Akonadi::CollectionFetchJob	Ended	Collection Id 106
	e06210	11:09:16.362	00:00:00.000	00:00:00.536	Akonadi::ItemSync	Ended	Collection 106 (Spam)
		e783b0	11:09:16.897			Akonadi::TransactionSequence	Ended	
	c8e770	11:09:16.898	00:00:00.000	00:00:00.005	Akonadi::CollectionFetchJob	Ended	Collection Id 105
	dd83e0	11:09:16.903	00:00:00.000	00:00:00.482	Akonadi::ItemSync	Ended	Collection 105 (Messages envoyés)
		e48770	11:09:17.385			Akonadi::TransactionSequence	Ended	
	e14c40	11:09:17.385	00:00:00.000	00:00:00.004	Akonadi::CollectionFetchJob	Ended	Collection Id 109
	d73590	11:09:17.389	00:00:00.000	00:00:00.508	Akonadi::ItemSync	Ended	Collection 109 (Corbeille)
		e08300	11:09:17.892	00:00:00.000	00:00:00.005	Akonadi::TransactionSequence	Ended	
			d572c0	11:09:17.892	00:00:00.000	00:00:00.003	Akonadi::TransactionBeginJob	Ended	
			e76280	11:09:17.892	00:00:00.003	00:00:00.001	Akonadi::ItemFetchJob	Ended	All items from collection 109
			e78f20	11:09:17.896	00:00:00.000	00:00:00.001	Akonadi::TransactionCommitJob	Ended	
	e4aef0	11:09:17.898	00:00:00.000	00:00:00.004	Akonadi::CollectionFetchJob	Ended	Collection Id 108
	da74c0	11:09:17.902	00:00:00.000	00:00:00.446	Akonadi::ItemSync	Ended	Collection 108 (Brouillons)
		e7b320	11:09:18.343	00:00:00.002	00:00:00.003	Akonadi::TransactionSequence	Ended	
			c8eae0	11:09:18.345	00:00:00.000	00:00:00.000	Akonadi::TransactionBeginJob	Ended	
			e781d0	11:09:19.242	00:00:00.000	00:00:00.004	Akonadi::CollectionModifyJob	Ended	Collection Id 105
			d01ce0	11:09:18.347	00:00:00.000	00:00:00.001	Akonadi::TransactionCommitJob	Ended	
	da6ac0	11:09:18.348	00:00:00.000	00:00:00.003	Akonadi::CollectionFetchJob	Ended	Collection Id 103
	e7aa90	11:09:18.351	00:00:00.000	00:00:00.461	Akonadi::ItemSync	Ended	Collection 103 (INBOX)
		e449e0	11:09:18.812			Akonadi::TransactionSequence	Ended	
	d6cc10	11:09:18.812	00:00:00.000	00:00:00.003	Akonadi::CollectionFetchJob	Ended	Collection Id 107
	e57780	11:09:18.954	00:00:00.000	00:00:00.003	Akonadi::CollectionModifyJob	Ended	Collection Id 107
	c8e170	11:09:18.954	00:00:00.003	00:00:00.002	Akonadi::CollectionFetchJob	Ended	Collection Id 106
	c8e930	11:09:19.099	00:00:00.000	00:00:00.003	Akonadi::CollectionModifyJob	Ended	Collection Id 106
	e84010	11:09:19.099	00:00:00.003	00:00:00.002	Akonadi::CollectionFetchJob	Ended	Collection Id 105
	e781d0	11:09:19.242	00:00:00.000	00:00:00.004	Akonadi::CollectionModifyJob	Ended	Collection Id 105
	d08aa0	11:09:19.242	00:00:00.004	00:00:00.001	Akonadi::CollectionFetchJob	Ended	Collection Id 109
	d70dd0	11:09:19.423	00:00:00.000	00:00:00.004	Akonadi::CollectionModifyJob	Ended	Collection Id 109
	c8e250	11:09:19.423	00:00:00.004	00:00:00.001	Akonadi::CollectionFetchJob	Ended	Collection Id 108
	d737b0	11:09:19.568	00:00:00.001	00:00:00.002	Akonadi::CollectionModifyJob	Ended	Collection Id 108
	d73280	11:09:19.569	00:00:00.002	00:00:00.002	Akonadi::CollectionFetchJob	Ended	Collection Id 103
	d5fab0	11:09:19.716	00:00:00.000	00:00:00.004	Akonadi::CollectionModifyJob	Ended	Collection Id 103
akonadi_imap_resource_0						
	27e9630	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 128
	27e5570	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 127
	2e8b8d0	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 130
	2e8e8c0	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 120
	2e93bc0	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 143
	2dfd910	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 132
	2aa6440	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 131
	2cf41b0	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 129
	2cad790	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 126
	2b721d0	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 125
	2c26cf0	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 124
	2cd87b0	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 123
	2be7a20	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 122
	2b89380	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 121
	2af8160	11:09:15.741			Akonadi::CollectionFetchJob	Waiting	Collection Id 119
	2e9b560	11:09:15.746			Akonadi::CollectionFetchJob	Waiting	Collection Id 118
Comment 9 Tamás Gere 2014-09-15 11:29:02 UTC
Hello!

I just upgraded akonadi today (to version 1.14.0-1.4 in opensuse) and now everything is going well again.
Thanks for the fix.
Comment 10 Franz Schrober 2014-09-19 10:26:15 UTC
Still the same problem here in Debian. The stuff mentioned by the other posters may be complete unrelated to this problem
Comment 11 Franz Schrober 2014-09-19 10:32:30 UTC
Btw. akonadi 1.14.0 cannot be downloaded from the source download directory nor is there a git tag in the repo
Comment 12 Franz Schrober 2014-09-19 10:56:48 UTC
Even opensuse doesn't have this version: https://build.opensuse.org/package/show/openSUSE:Factory/akonadi-runtime (the current version is 1.13.0)

Where did you get that 1.14.0-1.4?
Comment 13 Andre Woebbeking 2014-10-15 12:35:51 UTC
This seems to be a duplicate of #339393.
Comment 14 Ariel Garcia 2014-11-05 13:24:28 UTC
Andre, i don't think this could be a duplicate of  #339393 .
This issue happens for me with a yahoo account where i have less than 30 mails / 1 megabyte in total.

It never ever happens to me with Gmail or with my own Dovecot servers, but it happens reliably over and over again with Yahoo mail. Kmail "hangs" (just the blue blank background waiting for message content) until I restart akonadi with
   "akonadictl restart"
then everything works fine for a few hours again.
Debian versions   akonadi-server 1.13.0-2, kmail  4:4.14.1-1  here.
Comment 15 Sandro Knauß 2015-01-04 10:41:20 UTC
@(In reply to Franz Schrober from comment #12)
> Where did you get that 1.14.0-1.4?
I think it is a typo. He means kdepim 4.14.0-1.4 (don't know that distro)... At least till now the newest akonadi version is 1.13.0.
Comment 16 Miloš Kožina 2015-04-02 19:11:38 UTC
Is there any progress in this issue? I have the same troubles - after initial synchronizatoin no new messages are comming. In Akonadi console I can see a lot of increasing entries like this:
Akonadi::CollectionFetchJob     Waiting Collection Id 15

There're more of them, increasing amount in time. Nothing happens, until I restart akonadi - then it works again for a short while...
Comment 17 Denis Kurz 2017-06-23 19:59:27 UTC
This bug has never been confirmed for a KDE PIM version that is based on KDE Frameworks (5.x). Those versions differ significantly from the old 4.x series. Therefore, I plan to close it in around two or three months. In the meantime, it is set to WAITINGFORINFO to give reporters the oportunity to check if it is still valid. As soon as someone confirms it for a recent version (at least 5.1, ideally even more recent), I'll gladly reopen it.

Please understand that we lack the manpower to triage bugs reported for versions almost two years beyond their end of life.
Comment 18 Denis Kurz 2018-02-01 09:52:26 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.1 aka 15.12; preferably much more recent), please open a new one unless it already exists. Thank you for all your input.