Summary | ActiveSync via iOS 6.1.2 for INBOX stops syncing after ERR "Collection does not exist" |
Queue | Synchronization |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | mrubinsk (at) horde (dot) org |
Requester | vt (at) volkerthen (dot) de |
Created | 03/14/2013 (4577 days ago) |
Due | |
Updated | 03/19/2013 (4572 days ago) |
Assigned | 03/19/2013 (4572 days ago) |
Resolved | 03/19/2013 (4572 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
thirty minutes. All stable.
commit 6fcfa96ea2e260c9e74610e95c4db0329d381442
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Tue Mar 19 13:12:09 2013 -0400
Bug #12117Include the lasthbsyncstarted time check for PINGrequests also.
Prevents multiple PING requests from running against the same syncCache.
framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php | 6 ++++++
framework/ActiveSync/lib/Horde/ActiveSync/SyncCache.php | 3 ++-
2 files changed, 8 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/6fcfa96ea2e260c9e74610e95c4db0329d381442
For some reason, your client is running at least 3 different PING
threads, and multiple SYNC threads all against the same collections.
What's happening is one of the "older" threads is still asking for an
obsolete state.
This shouldn't happen, but there is code in the syncCache that is
supposed to catch this.
State ⇒ Feedback
to the fact that the state was dropped from storage - something that
normally wouldn't happen without either user intervention (explicitly
clearing the state from the UI) or an infinite sync loop (which is
detected by the code and causes the state to be forcibly cleared).
Without seeing the earlier entries in the log, it's impossible to
determine what is going on that initially caused this issue.
iOS 6.1 and iPod 4 on iOS 5.1.1.
In observed also that sometimes, inbox folder just dissapears from
sync log without an error message.
Here is an example:
2013-03-17T22:08:41+02:00 DEBUG: [27216] Initializing state for
collection: @Tasks@, synckey: {51462227-16e8-4b1d-9a6a-6f7e524c92eb}2
2013-03-17T22:08:41+02:00 DEBUG: [27216] Loading state for synckey
{51462227-16e8-4b1d-9a6a-6f7e524c92eb}2
2013-03-17T22:08:41+02:00 DEBUG: [27216] Initializing message diff
engine for @Tasks@
2013-03-17T22:08:41+02:00 DEBUG: [27216]
Horde_Core_ActiveSync_Driver::getServerChanges(@Tasks@, 1363550760,
1363550921, 0, 1)
2013-03-17T22:08:41+02:00 DEBUG: [27216] Found 0 message changes in @Tasks@.
2013-03-17T22:08:41+02:00 DEBUG: [27216] Initializing state for
collection: @Calendar@, synckey: {51462225-fdc0-4e46-b40a-6f7e524c92eb}2
2013-03-17T22:08:41+02:00 DEBUG: [27216] Loading state for synckey
{51462225-fdc0-4e46-b40a-6f7e524c92eb}2
2013-03-17T22:08:41+02:00 DEBUG: [27216] Initializing message diff
engine for @Calendar@
2013-03-17T22:08:41+02:00 DEBUG: [27216]
Horde_Core_ActiveSync_Driver::getServerChanges(@Calendar@, 1363550758,
1363550921, 1361131721, 1)
2013-03-17T22:08:41+02:00 DEBUG: [27216] Found 0 message changes in
@Calendar@.
2013-03-17T22:08:41+02:00 DEBUG: [27216] Initializing state for
collection: INBOX, synckey: {51462219-0dfc-40fc-bd58-67a5524c92eb}11
2013-03-17T22:08:41+02:00 DEBUG: [27216] Loading state for synckey
{51462219-0dfc-40fc-bd58-67a5524c92eb}11
2013-03-17T22:08:41+02:00 DEBUG: [27216] Initializing message diff
engine for INBOX
2013-03-17T22:08:41+02:00 DEBUG: [27216]
Horde_Core_ActiveSync_Driver::getServerChanges(INBOX, 1363550894,
1363550921, 1363464521, 1)
2013-03-17T22:08:41+02:00 DEBUG: [27216] Found 0 message changes in INBOX.
2013-03-17T22:08:41+02:00 DEBUG: [27216] Initializing state for
collection: @Contacts@, synckey: {5146221f-c270-499a-8eae-6f26524c92eb}2
2013-03-17T22:08:41+02:00 DEBUG: [27216] Loading state for synckey
{5146221f-c270-499a-8eae-6f26524c92eb}2
2013-03-17T22:08:41+02:00 DEBUG: [27216] Initializing message diff
engine for @Contacts@
2013-03-17T22:08:41+02:00 DEBUG: [27216]
Horde_Core_ActiveSync_Driver::getServerChanges(@Contacts@, 1363550752,
1363550921, 0, 1)
2013-03-17T22:08:41+02:00 DEBUG: [27216] Found 0 message changes in
@Contacts@.
2013-03-17T22:08:44+02:00 DEBUG: [28101] Initializing state for
collection: @Tasks@, synckey: {51462227-16e8-4b1d-9a6a-6f7e524c92eb}2
2013-03-17T22:08:44+02:00 DEBUG: [28101] Loading state for synckey
{51462227-16e8-4b1d-9a6a-6f7e524c92eb}2
2013-03-17T22:08:44+02:00 DEBUG: [28101] Initializing message diff
engine for @Tasks@
2013-03-17T22:08:44+02:00 DEBUG: [28101]
Horde_Core_ActiveSync_Driver::getServerChanges(@Tasks@, 1363550760,
1363550924, 0, 1)
2013-03-17T22:08:44+02:00 DEBUG: [28101] Found 0 message changes in @Tasks@.
2013-03-17T22:08:44+02:00 DEBUG: [28101] Initializing state for
collection: @Calendar@, synckey: {51462225-fdc0-4e46-b40a-6f7e524c92eb}2
2013-03-17T22:08:44+02:00 DEBUG: [28101] Loading state for synckey
{51462225-fdc0-4e46-b40a-6f7e524c92eb}2
2013-03-17T22:08:44+02:00 DEBUG: [28101] Initializing message diff
engine for @Calendar@
2013-03-17T22:08:44+02:00 DEBUG: [28101]
Horde_Core_ActiveSync_Driver::getServerChanges(@Calendar@, 1363550758,
1363550924, 1361131724, 1)
2013-03-17T22:08:44+02:00 DEBUG: [28101] Found 0 message changes in
@Calendar@.
2013-03-17T22:08:44+02:00 DEBUG: [28101] Initializing state for
collection: INBOX, synckey: {51462219-0dfc-40fc-bd58-67a5524c92eb}11
2013-03-17T22:08:44+02:00 DEBUG: [28101] Loading state for synckey
{51462219-0dfc-40fc-bd58-67a5524c92eb}11
2013-03-17T22:08:44+02:00 DEBUG: [28101] Initializing message diff
engine for INBOX
2013-03-17T22:08:44+02:00 DEBUG: [28101]
Horde_Core_ActiveSync_Driver::getServerChanges(INBOX, 1363550894,
1363550924, 1363464524, 1)
2013-03-17T22:08:44+02:00 DEBUG: [28101] Found 0 message changes in INBOX.
2013-03-17T22:08:44+02:00 DEBUG: [28101] Initializing state for
collection: @Contacts@, synckey: {5146221f-c270-499a-8eae-6f26524c92eb}2
2013-03-17T22:08:44+02:00 DEBUG: [28101] Loading state for synckey
{5146221f-c270-499a-8eae-6f26524c92eb}2
2013-03-17T22:08:44+02:00 DEBUG: [28101] Initializing message diff
engine for @Contacts@
2013-03-17T22:08:44+02:00 DEBUG: [28101]
Horde_Core_ActiveSync_Driver::getServerChanges(@Contacts@, 1363550752,
1363550924, 0, 1)
2013-03-17T22:08:44+02:00 DEBUG: [28101] Found 0 message changes in
@Contacts@.
2013-03-17T22:08:44+02:00 INFO: [28542]
Horde_Core_ActiveSync_Driver::authenticate() attempt for
catalin.draghiciu@primeit.ro
2013-03-17T22:08:44+02:00 DEBUG: [28542] PING request received for
user catalin.draghiciu@primeit.ro
2013-03-17T22:08:44+02:00 DEBUG: [ApplF2LK60R6DTWD] loadDeviceInfo:
catalin.draghiciu@primeit.ro
2013-03-17T22:08:44+02:00 INFO: Request being handled for device:
ApplF2LK60R6DTWD Supporting protocol version: 12.1
2013-03-17T22:08:44+02:00 INFO: [28542] Handling PING command received
at timestamp: 1363550924.
2013-03-17T22:08:44+02:00 DEBUG: Reusing PING state: Array
(
[@Tasks@] => Array
(
[class] => Tasks
[windowsize] => 25
[truncation] => 0
[mimesupport] => 0
[mimetruncation] => 8
[conflict] => 1
[bodyprefs] => Array
(
[wanted] => 1
[1] => Array
(
[type] => 1
[truncationsize] => 32768
)
)
[lastsynckey] => {51462227-16e8-4b1d-9a6a-6f7e524c92eb}2
[pingable] => 1
[id] => @Tasks@
[synckey] => {51462227-16e8-4b1d-9a6a-6f7e524c92eb}2
)
[@Calendar@] => Array
(
[class] => Calendar
[windowsize] => 25
[filtertype] => 5
[truncation] => 0
[mimesupport] => 0
[mimetruncation] => 8
[conflict] => 1
[bodyprefs] => Array
(
[wanted] => 1
[1] => Array
(
[type] => 1
[truncationsize] => 32768
)
)
[lastsynckey] => {51462225-fdc0-4e46-b40a-6f7e524c92eb}2
[id] => @Calendar@
[pingable] => 1
[synckey] => {51462225-fdc0-4e46-b40a-6f7e524c92eb}2
)
[@Contacts@] => Array
(
[class] => Contacts
[windowsize] => 25
[truncation] => 0
[mimesupport] => 0
[mimetruncation] => 8
[conflict] => 1
[bodyprefs] => Array
(
[wanted] => 1
[1] => Array
(
[type] => 1
[truncationsize] => 32768
)
)
[lastsynckey] => {5146221f-c270-499a-8eae-6f26524c92eb}2
[id] => @Contacts@
[pingable] => 1
[synckey] => {5146221f-c270-499a-8eae-6f26524c92eb}2
)
)
2013-03-17T22:08:44+02:00 DEBUG: [28542] Waiting for changes
(heartbeat interval: 900)
State ⇒ Assigned
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Synchronization
Summary ⇒ ActiveSync via iOS 6.1.2 for INBOX stops syncing after ERR "Collection does not exist"
Type ⇒ Bug
"Push" activated in the iPhone settings.
But now the Syncing of my inbox fails after a few dozen of messages.
In the log file I can see this:
2013-03-14T16:06:58+01:00 DEBUG: [26682] Initializing state for
collection: INBOX, synckey: {5141e457-bd6c-4454-8b16-6b44c0a8bb01}28
2013-03-14T16:06:58+01:00 DEBUG: [26682] Loading state for synckey
{5141e457-bd6c-4454-8b16-6b44c0a8bb01}28
2013-03-14T16:06:58+01:00 ERR: [26682] Could not find state for
synckey {5141e457-bd6c-4454-8b16-6b44c0a8bb01}28.
2013-03-14T16:06:58+01:00 ERR: [26682] State gone, PING terminating
and forcing a SYNC:
2013-03-14T16:06:58+01:00 DEBUG: [26682] Changes available!
and a few seconds later this:
2013-03-14T16:07:10+01:00 DEBUG: [28973] Found 1 message changes in INBOX.
2013-03-14T16:07:10+01:00 DEBUG: [28973] Checking for PIM initiated changes.
2013-03-14T16:07:10+01:00 ERR: Collection does not exist.
and after this, no more email messages get synced.
In the first place I suspected the jailbroken device doing something
to the syncing operations. Then I reset the phone to factory defaults
and tried again, same result.
Contacts, calendar and tasks are still working with "Push" activated.
I'm using Debian 7.0 (wheezy) and the most recent Horde version (incl.
ActiveSync 2.3.2)
Let me know, if you need the complete sync log.