7.0.1 breaks osx CardDAV sync
Since the update from owncloud v 7.0.0 to version 7.0.1 i am not able any more, to sync contacts over CardDAV in osx.
When i try to create a new osx internet account i get the error message "An unkown error occures".
@ymc-maha Do you see anything in the error logs of the webserver?
OS X 10.9.4 Contacts sync OK when I just tested it against 7.0.1.
I am using the full URL to the calendar as shown in the web UI settings cog.
However when I click on the account CardDAV account in the "Internet Accounts" list in OS X, I get the error "Internet Accounts preferences can't connect to the account "owncloud". It prompts for the password and just loops, each time dumping the following three lines to the web server log. The contacts are in sync however. Perhaps the preferences issue is related to what ymc-maha is experiencing?
17.51.10.10 - - [06/Aug/2014:14:15:39 -0400] "PROPFIND /.well-known/carddav HTTP/1.1" 405 4219 "-" "Mac OS X/10.9.4 (13E28) AddressBook/1371"
17.51.10.10 - - [06/Aug/2014:14:15:40 -0400] "PROPFIND / HTTP/1.1" 405 1140 "-" "Mac OS X/10.9.4 (13E28) AddressBook/1371"
17.51.10.10 - - [06/Aug/2014:14:15:40 -0400] "PROPFIND /principals/ HTTP/1.1" 405 788 "-" "Mac OS X/10.9.4 (13E28) AddressBook/1371"
Hello, I have at least a similar problem since I ran the update today:
OC: 7.0.1 OSX: 10.8.5
Contacts.app was continually asking for the password to sync the contacts. In the end, I deleted the account and tried to create a new one. During this creation dialog, I get first the error message:
Unsecure connection. Your contacts account is not on a server that supports secure connections. (via oc's admin panel I have made the setting to force all clients into https. The secure connection from contacts.app should not be the problem as it worked before)
If I click on create anyway, I get this error message:
Contacts could not find the account settings for the CardDAV server [MYSERVER]/owncloud/remote.php/carddav/principals/[MYUSERNAME]. Make sure the provided username and server address are correct and then click on 'continue'. " (the button actually reads "create")
If I now click on create anyway, it somehow creates the carddav account. But looking into its server settings, the server address is "https" and server path is "//[MYSERVER]...[as above]". This looks badly split up and it looked good before the update (everything before the subfolders in address and the rest of the URL in path.
Does contacts.app get a bad configuration from owncloud?
BTW: android/DAVdroid syncs well, so in principle it works...
Please let me know if I can try sth else or if you need more info. (I haven't found an error.log next to my access.log on the server, though)
I'm running ownCloud 7.0.1. CardDAV Sync seems to work fine on OS X 10.9.4 and Android 4.4 (CardDAV-Sync beta), but I get the following log entries on the ownCloud-Server every time I sync:
Fatal carddav Exception: #10 {main} 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #9 /var/www/vhosts/private/httpdocs/owncloud/remote.php(52): require_once('/var/www/vhosts...') 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #8 /var/www/vhosts/private/httpdocs/owncloud/apps/contacts/appinfo/remote.php(79): Sabre\DAV\Server->exec() 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #7 /var/www/vhosts/private/httpdocs/owncloud/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php(214): Sabre\DAV\Server->invokeMethod('PROPPATCH', 'addressbooks/fl...') 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #6 /var/www/vhosts/private/httpdocs/owncloud/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php(474): call_user_func(Array, 'addressbooks/fl...') 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #5 [internal function]: Sabre\DAV\Server->httpPropPatch('addressbooks/fl...') 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #4 /var/www/vhosts/private/httpdocs/owncloud/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php(758): Sabre\DAV\Server->updateProperties('addressbooks/fl...', Array) 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #3 /var/www/vhosts/private/httpdocs/owncloud/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php(1823): Sabre\DAV\Server->broadcastEvent('updatePropertie...', Array) 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #2 /var/www/vhosts/private/httpdocs/owncloud/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php(433): call_user_func_array(Array, Array) 2014-08-11T19:29:03+00:00
Fatal carddav Exception: #1 [internal function]: Sabre\CardDAV\Plugin->updateProperties(Array, Array, Object(OCA\Contacts\CardDAV\UserAddressBooks)) 2014-08-11T19:29:03+00:00
Fatal carddav Sabre\DAV\Exception: Invalid result from updateProperties 2014-08-11T19:29:03+00:00
In my case i know the reason now. When i add a second adressbook at oc7 all my contacts get lost on osx and i get the following debug message:
Debug carddav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found
When i remove the second adressbook the sync works well
I still didn't find anything in ownCloud's logs, I don't have several address books.
I tried to add an account once again – and it worked! (this is really strange as I copy/pasted the address from the "bad" account that I deleted) It worked as intended, with no strange error messages or anything in between.
I still would like to understand what happened but I'm of course quite happy that everything syncs around the world again...
This is happening for me too:
Sabre\DAV\Exception: Invalid result from updateProperties
OS X syslog:
[CardDAVPlugin-ERROR] Update of Me card on server failed with error: Error Domain=CoreDAVHTTPStatusErrorDomain Code=500
The issue is only present if my own contact is marked as me-card! (Menu entry: "This is my card")
My CardDAV sync used to work for months, then I upgraded OS X to 10.9.5 (Maverick). This upgrade obviously removed my sync settings from the contacts.app My owncloud is (now) at 7.2
Adding the owncloud account again fails:
- In the first attempt, contacts.app will think a while about my input in the add account dialogue, then return to contacts settings but without adding an account.
- If I try to add an account again (without quitting/re-starting contacts), I stay in the add account dialogue and get the error "an unknown error has occured"
I got the error with owncloud 7.1 already, then upgraded owncloud to 7.2 but that didn't help (i didn't expect it, either). In the owncloud log, if find these 2 lines (per attempt):
Debug carddav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found 2014-09-22T11:58:17+00:00 Debug carddav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found 2014-09-22T11:58:16+00:00
[addition] If I supply wrong credentials, I get the error in contacts.app that my login details couldn't be verified. So some parts of the authentication seem to work (maybe this helps someone with knowledge of the owncloud contacts or carddav communications)
Sync to Android (carddav, caldav) and the owncloud.app sync for files all work well.
I'm not sure if my issue belongs to this thread (or even to an owncloud issue). Please let me know if I should move somewhere else.
Any help is of course very much appreciated...
I finally solved my problem! As it appears, it has nothing to do with owncloud (who would have thought that : )
I had moved my ~/Library/Application Support/AddressBook folder to another location and symlinked it back. That worked very well up to Lion but obviously doesn't anymore in Mavericks. The "other location" was a TrueCrypt container which uses a FAT32 file system. As Mavericks has some updates on the file system, I guess it now prevents Contacts.app from gaining proper write access on a non OSX file system (at least, that's what I guess from the Console output, without having any detailed understanding of it).
My setup was probably too exotic to be of any help here, but I wanted to record the solution anyways.