Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Contacts / iCloud sync problem with Mountain Lion.

Hi all,


As soon as I upgraded to Mountain Lion, I am receiving the following error whenever Contacts application tried to sync with iCloud.


-


[NSInvalidArgumentException] The value for 'host' should be non-nil and non-empty


-


Has anyone else experienced this problem / does anyone have a solution? This worked just fine under Lion.



Hardware Overview:


Model Name: MacBook Pro

Model Identifier: MacBookPro10,1

Processor Name: Intel Core i7

Processor Speed: 2.7 GHz

Number of Processors: 1

Total Number of Cores: 4

L2 Cache (per Core): 256 KB

L3 Cache: 8 MB

Memory: 16 GB

Boot ROM Version: MBP101.00EE.B00

SMC Version (system): 2.3f28

Posted on Jul 26, 2012 2:39 AM

Reply
10 replies

Jul 26, 2012 6:09 AM in response to capierce

Thanks for the suggest capierce, however this did not resolve the problem for me.


Just in case it's of assistance, here is a relevant console log;


-----


26/07/12 11:03:25.375 PM Contacts[796]: [CardDAVPlugin-ERROR] -_handleAddsOrModifies: exception processing addsOrModifies The value for 'host' should be non-nil and non-empty

26/07/12 11:03:25.377 PM Contacts[796]: [CardDAVPlugin-ERROR] Error in _handleAddsOrModifies:removes:inFolderWithURL: The value for 'host' should be non-nil and non-empty

26/07/12 11:03:25.378 PM Contacts[796]: [CardDAVPlugin-ERROR] -_handleAddsOrModifie "MY EMAIL"@p04-contacts.icloud.com/32071570/carddavhome/card/ Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)"

26/07/12 11:03:25.823 PM Contacts[796]: [MIGRATION] ### ------ SUMMARY ------ ###

26/07/12 11:03:25.826 PM Contacts[796]: [MIGRATION] ### Local People: 107 ###

26/07/12 11:03:25.828 PM Contacts[796]: [MIGRATION] ### Local Groups: 0 ###

26/07/12 11:03:25.829 PM Contacts[796]: [MIGRATION] ### Server People: 0 ###

26/07/12 11:03:25.830 PM Contacts[796]: [MIGRATION] ### Server Groups: 0 ###

26/07/12 11:03:25.832 PM Contacts[796]: [MIGRATION] ### Merged People: 0 ###

26/07/12 11:03:25.833 PM Contacts[796]: [MIGRATION] ### Merged Groups: 0 ###

26/07/12 11:03:25.834 PM Contacts[796]: [MIGRATION] ### Removed People: 0 ###

26/07/12 11:03:25.836 PM Contacts[796]: [MIGRATION] ### Removed Groups: 0 ###

26/07/12 11:03:25.837 PM Contacts[796]: [MIGRATION] ### Local People Upload: 107 ###

26/07/12 11:03:25.838 PM Contacts[796]: [MIGRATION] ### Local Groups Upload: 0 ###

26/07/12 11:03:25.839 PM Contacts[796]: [MIGRATION] ### --------------------- ###

26/07/12 11:03:25.841 PM Contacts[796]: [MIGRATION] ### DOWNLOAD ERROR Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)", exiting ###

26/07/12 11:03:25.844 PM Contacts[796]: [MIGRATION] ### EXCEPTION Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)", exiting ###

26/07/12 11:03:25.844 PM Contacts[796]: [CardDAVPlugin-ERROR] Exception caught while running sync with server: Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)"

26/07/12 11:03:28.268 PM WindowServer[108]: CGXSetWindowListAlpha: Invalid window 0

26/07/12 11:03:29.269 PM Dock[273]: CGSReleaseWindowList: called with 3 invalid window(s)

26/07/12 11:03:33.000 PM kernel[0]: considerRebuildOfPrelinkedKernel prebuild rebuild has expired

Jul 28, 2012 2:53 AM in response to roby66

I'm happy to say I've solved this problem. But it was a pain...


1. I downgraded to Lion 10.7.4 so that contacts would sync again.


2. Run the Remove Duplicates option in Address Book a bunch of times until no duplciates were found.


3. Log in to iCloud website, and back up my contacts to a vcard file.


4. Deleted ALL of my contacts via the iCloud website.


5. Upgrade to Mountain LIon.


6. Create a test contact and confirm sync.


7. Import vcard backup of contacts.


8. YAY! Everything was syncing again, no problems.


I hope this helps someone else.

Aug 13, 2012 9:26 PM in response to plegault

Actually the error message is very misleading.


What I did is the following:


Go on icloud.com, export all my contacts to VCard.


Delete all my contacts on iCloud.com


Re-import all my contacts from the vCard in step 1.


It seems that the error isnt caused by a connection error with the server, but rather by a misbehaving contact in your list.


The sync works afterwards.

Dec 23, 2012 11:11 PM in response to capierce

Thanks capierce! It took a little time but it was well worth it. The process is basically to back up your contacts after elimating duplicates, turning off certain services using a couple of terminal commands, deleting all contacts, turning the services back on, and copying the contacts back in. Follow the directions in the support article carefully. I sync through icloud so I also had to turn icloud back on in contacts preferences. Now my contacts on two macs, icloud, and my iphone are all synced up. Can't fix the world but I fixed my contact lists and that's a start!

Contacts / iCloud sync problem with Mountain Lion.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.