|
From: Simon J. <si...@jo...> - 2008-02-07 18:48:06
|
I have now isolated the problem that causes duplicates to be created. This is with libsyncml 0.4.6 and opensync (core library, file-sync, syncml, and msynctool) from svn. First I sync the phone with isync on Mac OS X. Then I create a opensync installation, one syncml-obex-client and one file sink. I sync once first, which is a slow sync, populating the local file sink. I sync again, and this time it is a fast sync, with no changes. I can also force a slow sync, which also works fine with no changes. The problem starts if I now sync the phone on the Mac. The sync on the mac works fine. When I after that try to synchronize using opensync, things break. What happens is that opensync decides to do a fast sync. Is that the correct decision? The output from this fast sync is below. What happens is that opensync retrieves all entries from the phone, and adds them to the local 'file-sync' sink. The id's are the same, so to avoid overwriting the file, it adds '-new' to each filename. If I perform this several times, I can get 'X-new-new-new' or even worse. At this point, I have each entry twice in my local file sync. If I later sync again with the phone, it would probably transfer all entries from the file sink back to the phone (I prevent this by making the syncml-obex-client a read-only sink). This rapidly creates a lot of duplicates. Any ideas? I'll see if I can get a stable setup by always forcing slow-sync. /Simon jas@mocca:~$ msynctool --sync e51-file Synchronizing group "e51-file" contact sink of member 2 of type syncml-obex-client just connected contact sink of member 1 of type file-sync just connected Main sink of member 1 of type file-sync just connected Main sink of member 2 of type syncml-obex-client just connected All clients connected or error Main sink of member 2 of type syncml-obex-client just sent all changes contact sink of member 1 of type file-sync just sent all changes Main sink of member 1 of type file-sync just sent all changes Received an entry 15 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 24 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 27 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 52 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 58 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 61 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 63 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 80 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 101 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 120 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 121 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 127 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 137 from member 2 (syncml-obex-client). Changetype ADDED ... Received an entry 812 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 813 from member 2 (syncml-obex-client). Changetype ADDED element Url: Schemas validity error : Element 'Url', attribute 'Location': The attribute 'Location' is not allowed. Received an entry 814 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 815 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 816 from member 2 (syncml-obex-client). Changetype ADDED Received an entry 817 from member 2 (syncml-obex-client). Changetype ADDED contact sink of member 2 of type syncml-obex-client just sent all changes All clients sent changes or error All conflicts have been reported Received an reply to our sync contact sink of member 2 of type syncml-obex-client committed all changes. Main sink of member 2 of type syncml-obex-client committed all changes. Sent an entry 15-new to member 1 (file-sync). Changetype ADDED Sent an entry 24-new to member 1 (file-sync). Changetype ADDED Sent an entry 27-new to member 1 (file-sync). Changetype ADDED Sent an entry 52-new to member 1 (file-sync). Changetype ADDED ... Sent an entry 812-new to member 1 (file-sync). Changetype ADDED Sent an entry 813-new to member 1 (file-sync). Changetype ADDED Sent an entry 814-new to member 1 (file-sync). Changetype ADDED Sent an entry 815-new to member 1 (file-sync). Changetype ADDED Sent an entry 816-new to member 1 (file-sync). Changetype ADDED Sent an entry 817-new to member 1 (file-sync). Changetype ADDED contact sink of member 1 of type file-sync committed all changes. Main sink of member 1 of type file-sync committed all changes. All clients have written contact sink of member 2 of type syncml-obex-client reported sync done. Main sink of member 2 of type syncml-obex-client reported sync done. contact sink of member 1 of type file-sync reported sync done. Main sink of member 1 of type file-sync reported sync done. All clients reported sync done The sync was successful contact sink of member 1 of type file-sync just disconnected Main sink of member 1 of type file-sync just disconnected contact sink of member 2 of type syncml-obex-client just disconnected jas@mocca:~$ |