iPhoneSyncFixed day 3

My iPhone 3G had really a bad time to get contacts from iTunes sync. I googled a lot, and tried a lot of cookbooks involving removing caches, shifting away syncservice directories, and even singing a little bit. And then, I went back to my UNIX roots, and thought about log files…

… and hop, /var/log/system.log exhibited an error everytime I tried to sync :

Aug  7 20:54:57 sliver [0x0-0x76076].com.apple.iTunes[998]: Created child to sync device with pid 1032...
Aug  7 20:55:00 sliver AddressBookSync[1033]: AddressBookSync (client id: com.apple.AddressBook) error: Exception running AddressBookSync: CoreData could not fulfill a fault for '0x1df93a0 <x-coredata://A1B164FD-0561-4C9C-9F97-4D7EDC73408B/ABCDEmailAddress/p779>'
Aug  7 20:55:00 sliver com.apple.syncservices.SyncServer[965]: 2008-08-07 20:55:00.943 AddressBookSync[1033:10b] AddressBookSync (client id: com.apple.AddressBook) error: Exception running AddressBookSync: CoreData could not fulfill a fault for '0x1df93a0 <x-coredata://A1B164FD-0561-4C9C-9F97-4D7EDC73408B/ABCDEmailAddress/p779>'
Aug  7 20:55:05 sliver [0x0-0x76076].com.apple.iTunes[998]: Sending final status from child helper tool back to parent...
Aug  7 20:55:10 sliver [0x0-0x76076].com.apple.iTunes[998]: MobileDevice: AMDeviceCopyValue: There was an error getting the value from lockdown

I then tried to narrow down the error, and came to a tool called Synchrospector, located in /Developer/Applications/Utilities/Syncrospector (get developer tools from here, ~ 1 Gb download). I could click around and produce the error quicker than the “Sync” button in iTunes.

I then tried to locate the UID above in the data, to not available. The only place I could find it was in a SQLite database located in ~/Application\ Support/AddressBook/AddressBook-v22.abcddb.

I started by exporting my addressbook (File / Export / AddressBook Archive) to a file, so I could restore it. I then deleted a bunch of addresses, synced, and repeated until the error were gone. And I found the error to be in a very usual addressbook entry. From the time I deleted it, I could again sync my iphone in iTunes and get all the desired contacts.

It looks like Apple need some more checking in its sync framework. And by the way, adding some usable info to the log file (like the contact ASCII data) would be extremely helpful for the poor guy having a corrupted record.

Comments 1

  1. Alexander wrote:

    Thanks, man this helped a lot, I had the same error.
    I want to add, that in my case it was a faulty contact group causing the errors. After deleting all contact groups the log entries disappeared and synching (with my sony ericson) worked again.

    Posted 21 Sep 2008 at 13:25

Post a Comment

Your email is never published nor shared. Required fields are marked *

Powered by WP Hashcash