[SyncEvolution] "Comparison was impossible"
Patrick Ohly
patrick.ohly at intel.com
Sat May 13 18:56:22 UTC 2017
On Sat, 2017-05-13 at 14:33 +0200, Vincent Lambert wrote:
> Le 12/05/2017 à 09:13, Patrick Ohly a écrit :
> > On Thu, 2017-05-11 at 15:45 +0200, Vincent wrote:
> >> ----- Mail original -----
> >>> De: "Patrick Ohly" <patrick.ohly at intel.com>
> >>> À: "Vincent" <vincent.lambert9 at free.fr>
> >>> Cc: syncevolution at syncevolution.org
> >>> Envoyé: Jeudi 11 Mai 2017 10:31:28
> >>> Objet: Re: [SyncEvolution] "Comparison was impossible"
> >>>
> >>> Have you seen my latest reply in the mail thread? You didn't respond
> >>> to
> >>> that, so perhaps it got lost. I'm attaching it again.
> >>>
> >>
> >> Yes I just anwsered you in the next message, here is the message:
> > That mail didn't reach the list.
> >
> >> I first did a refresh-from-remote sync, but if I delete a
> >> contact from my phone, a regular sync didn't delete it on the server. So
> >> I tried with a complete reset of my config and database. I've deleted
> >> all my contacts from the graphical app and did the slow sync. I have
> >> always the same problem =(
> > I lost track of what "the same problem" is. Are we still talking about
> > the "Comparison was impossible" part or something else?
> I understood that "Comparison was impossible" if often present in the
> logs, so my main problem is I can't delete a contact on my phone, sync,
> and get it deleted on the server, effectively after the
> refresh-from-remote sync you recommanded.
>
> >> [INFO] @default/contacts: started
> >> [INFO] @default/contacts: sent 1
> >> [INFO @owncloud] @owncloud/contacts: started
> >> [INFO @owncloud] @owncloud/contacts: updating "Chloé"
> >> [INFO @owncloud] @owncloud/contacts: received 1/1
> >> [INFO] @default/contacts: normal sync done successfully
> >> [INFO @owncloud] @owncloud/contacts: normal sync done successfully
> > So "Chloé" was considered "modified" locally and thus updated on the
> > OwnCloud side. Directly after a "refresh from remote" that indeed
> > shouldn't happen.
>
> Yes, I think that is correct. I don't know why syncevolution behave like
> that.
So the "Chloe" contact was the one you deleted after the
"refresh-from-remote" sync?
I bet it wasn't actually deleted when you marked it as deleted on the
phone.
Let's verify that hypothesis.
Use "syncevolution --print-items @default contacts". It'll give you an
ID string for each contact. Then use "syncevolution --export - @default
contacts <id string of Chloe>" to dump the contact to your console.
Example (for my local setup, with "addressbook" instead of "contacts"):
$ syncevolution --print-items @default addressbook
pas-id-5406E78700000000: John Doe
$ syncevolution --export - @default addressbook pas-id-5406E78700000000
BEGIN:VCARD
VERSION:3.0
UID:pas-id-5406E78700000000
PRODID:-//Synthesis AG//NONSGML SyncML Engine V3.4.0.47//EN
REV:2014-09-03T12:03:08Z(1)
N:Doe;John;;;
FN:John Doe
X-EVOLUTION-FILE-AS:Doe\, John
END:VCARD
Is there anything in your "Chloe" contact that might mark it as
"deleted"?
If unsure, then dump it directly after the refresh-from-remote and again
after deleting it in the UI. If you can still dump it after deleting,
then it definitely wasn't deleted for real.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
More information about the SyncEvolution
mailing list