Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Error logged on sync: "Syncroton_Command_Sync::getResponse::782 unable to convert entry to xml" #7453

Open
mokraemer opened this issue Apr 4, 2023 · 1 comment

Comments

@mokraemer
Copy link

I found the following error in log file. After changing loglevel to debug got this output:

c8b847 - x - 2023-04-04T08:52:31+00:00 DEBUG (7): Syncroton_Command_Wbxml::__construct::163 sync timestamp: 2023-04-04 08:52:31
c8b847 - x - 2023-04-04T08:52:31+00:00 INFO (6): Syncroton_Command_Sync::handle::223 SyncKey is 1799 Class: Email CollectionId: a2b91649ccad341342f7bee78bf4310f5f9753c6
c8b847 - x - 2023-04-04T08:52:31+00:00 DEBUG (7): Syncroton_Backend_SyncState::_deleteOtherStates::72 deleting sync states of type 1dc254770e5871b2cc32aa4cfb972b821e355b60 and counter != 1799
c8b847 - x - 2023-04-04T08:52:31+00:00 DEBUG (7): Tinebase_Config_Abstract::_loadAllAppConfigsInCache::720 Loading all configs for app ActiveSync
c8b847 - x - 2023-04-04T08:52:31+00:00 DEBUG (7): ActiveSync_Frontend_Abstract::__construct::196 Created controller for device type iphone
c8b847 - x - 2023-04-04T08:52:31+00:00 INFO (6): Syncroton_Command_Sync::handle::415 found 1 entries to be fetched from server
c8b847 - x - 2023-04-04T08:52:31+00:00 DEBUG (7): ActiveSync_Frontend_Abstract::__construct::196 Created controller for device type iphone
c8b847 - x - 2023-04-04T08:52:31+00:00 WARN (4): Syncroton_Command_Sync::getResponse::780 unable to convert entry to xml: 
c8b847 - x - 2023-04-04T08:52:31+00:00 DEBUG (7): Syncroton_Command_Sync::getResponse::782 unable to convert entry to xml: #0 /mnt/www/tine/vendor/syncroton/syncroton/lib/Syncroton/Command/Sync.php(772): ActiveSync_Frontend_Abstract->getEntry(Object(Syncroton_Model_SyncCollection), '7e383232c1c5d61...')
#1 /mnt/www/tine/vendor/syncroton/syncroton/lib/Syncroton/Server.php(147): Syncroton_Command_Sync->getResponse()
#2 /mnt/www/tine/vendor/syncroton/syncroton/lib/Syncroton/Server.php(70): Syncroton_Server->_handlePost()
#3 /mnt/www/tine/ActiveSync/Server/Http.php(102): Syncroton_Server->handle()
#4 /mnt/www/tine/Tinebase/Core.php(271): ActiveSync_Server_Http->handle(Object(Zend_Controller_Request_Http))
#5 /mnt/www/tine/index.php(24): Tinebase_Core::dispatchRequest()
#6 {main}
c8b847 - x - 2023-04-04T08:52:31+00:00 INFO (6): Syncroton_Command_Sync::getResponse::954 current synckey is 1799
c8b847 - x - 2023-04-04T08:52:31+00:00 DEBUG (7): Syncroton_Server::_handlePost::177 xml response(0):
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE AirSync PUBLIC "-//AIRSYNC//DTD AirSync//EN" "http://www.microsoft.com/">
<Sync xmlns="uri:AirSync" xmlns:Syncroton="uri:Syncroton">
  <Collections>
    <Collection>
      <Class>Email</Class>
      <SyncKey>1799</SyncKey>
      <CollectionId>a2b91649ccad341342f7bee78bf4310f5f9753c6</CollectionId>
      <Status>1</Status>
      <Responses>
        <Fetch>
          <ServerId>7e383232c1c5d61cf8403d091a0214aea75d5e1c</ServerId>
          <Status>8</Status>
        </Fetch>
      </Responses>
    </Collection>
  </Collections>
</Sync>

@lab-at-nohl
Copy link
Member

One of my users has these, too. However, the line number is slightly different with 2022.12.1 (actually, the exception raises on three different places anyway). Sometimes behind Syncroton_Command_Sync::getResponse::780 unable to convert entry to xml: is also an id.

My suspicion was that these are email that have been deleted or removed from outside Tine 2.0. E.g. by Thunderbird over IMAP. If you have entries with id present, what kind of objects are this?

Nevertheless, this should trigger a rescan of the collection, if I got it right. What it doesn't do...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants