Hi,
when I use DAVDroid on my cellphone for synchronising contacts, I have constantly an alert “synchronisation failed” with this log :
DavDroid error LOG
Synchronization phase: 9
Account name: id
Authority: com.android.contacts
HTTP REQUEST:
REPORT /owncloud/remote.php/dav/addressbooks/users/id/default/
Content-Length: 1271
Content-Type: application/xml; charset=utf-8
Depth: 0
<?xml version='1.0' encoding='UTF-8' ?>/owncloud/remote.php/dav/addressbooks/users/id/default/2612ffc0-c14b-4ba8-955b-f80e492f8173.vcf/owncloud/remote.php/dav/addressbooks/users/id/default/70858f3d-f074-4027-b628-2e7025b52137.vcf/owncloud/remote.php/dav/addressbooks/users/id/default/b8557955-d604-4cb4-8e54-8f739b8e6969.vcf/owncloud/remote.php/dav/addressbooks/users/id/default/811a9cb9-7aac-4b3d-a2cf-98ce6100ca3a.vcf/owncloud/remote.php/dav/addressbooks/users/id/default/c1285ebe-f0c1-495f-9ece-67f2cc749e98.vcf/owncloud/remote.php/dav/addressbooks/users/id/default/d3f3666e-f30d-4e6d-85c9-6942261f3e0d.vcf/owncloud/remote.php/dav/addressbooks/users/id/default/4cf33925-0d08-4467-a2a3-2072f60d7591.vcf/owncloud/remote.php/dav/addressbooks/users/id/default/401e6dd6-9d6e-439c-aff0-c16ada5e4f4c.vcf/owncloud/remote.php/dav/addressbooks/users/id/default/ada8bcb8-d7ca-43cb-9a96-004b31fd38c0.vcf
HTTP RESPONSE:
http/1.1 500 Internal Server Error
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: close
Content-Length: 248
Content-Security-Policy: default-src ‘self’; script-src ‘self’ ‘unsafe-eval’; style-src ‘self’ ‘unsafe-inline’; frame-src *; img-src * data: blob:; font-src ‘self’ data:; media-src *; connect-src *
Content-Type: application/xml; charset=utf-8
Date: Wed, 20 Jul 2016 16:23:38 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Server: Apache/2.4.7 (Ubuntu)
Strict-Transport-Security: max-age=15768000
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Powered-By: PHP/5.5.9-1ubuntu4.17
X-Robots-Tag: none
X-XSS-Protection: 1; mode=block
<?xml version="1.0" encoding="utf-8"?>[LF]<d:error xmlns:d=“DAV:” xmlns:s=“sabre/dav”>[LF]
<s:exception>InvalidArgumentException</s:exception>[LF]
<s:message>Only vCard 2.1, 3.0 and 4.0 are supported for the input data</s:message>[LF]
</d:error>[LF]
EXCEPTION:
at.bitfire.dav4android.exception.HttpException: 500 Internal Server Error
at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:316)
at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:289)
at at.bitfire.dav4android.DavAddressBook.multiget(DavAddressBook.java:109)
at at.bitfire.davdroid.syncadapter.ContactsSyncManager.downloadRemote(ContactsSyncManager.java:337)
at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:171)
at at.bitfire.davdroid.syncadapter.ContactsSyncAdapterService$ContactsSyncAdapter.onPerformSync(ContactsSyncAdapterService.java:66)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
SOFTWARE INFORMATION
DAVdroid version: 1.2-gplay (109) Sat Jul 02 12:34:34 GMT+02:00 2016
Installed from: com.android.vending
JB Workaround installed: no
CONFIGURATION
System-wide synchronization: automatically
Account: id
Address book sync. interval: 240 min
Calendar sync. interval: 240 min
OpenTasks sync. interval: 240 min
Preemptive auth: true
WiFi only: false
[CardDAV] Contact group method: GROUP_VCARDS
RFC 6868 encoding: true
[CalDAV] Time range (past days): 90
Manage calendar colors: true
SQLITE DUMP
android_metadata
| locale |
| fr_FR |settings
| setting | value |services
| _id | accountName | service | principal |
| 1 | id | carddav | \https://www.mydomain.com/owncloud/remote.php/dav/principals/users/id/ |
| 2 | id | caldav | \https://www.mydomain.com/owncloud/remote.php/dav/principals/users/id/ |sqlite_sequence
| name | seq |
| services | 2 |
| homesets | 3 |
| collections | 4 |homesets
| _id | serviceID | url |
| 2 | 2 | \https://www.mydomain.com/owncloud/remote.php/dav/calendars/id/ |
| 3 | 1 | \https://www.mydomain.com/owncloud/remote.php/dav/addressbooks/users/id/ |collections
| _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
| 2 | 2 | \https://www.mydomain.com/owncloud/remote.php/dav/calendars/id/contact_birthdays/ | 1 | Contact birthdays | | -54 | | 1 | 1 | 0 |
| 3 | 2 | \https://www.mydomain.com/owncloud/remote.php/dav/calendars/id/default/ | 0 | default | | | | 1 | 1 | 0 |
| 4 | 1 | \https://www.mydomain.com/owncloud/remote.php/dav/addressbooks/users/id/default/ | 0 | default | | | | | | 1 |
SYSTEM INFORMATION
Android version: 6.0.1 (bacon-userdebug 6.0.1 MMB29V 53ca64dc6e test-keys)[/details]
I took the instructions of the link above.
https://forum.owncloud.org/viewtopic.php?f=17&t=7536
I installed Litmus and run it :
root@serveur:/usr/src/litmus-0.13# litmus -k https://mydomain.com/owncloud/remote.php/webdav id #####
→ running `basic’:
0. init… pass
- begin… pass
- options… WARNING: server does not claim Class 2 compliance
… pass (with 1 warning)- put_get… pass
- put_get_utf8_segment… pass
- put_no_parent… pass
- mkcol_over_plain… pass
- delete… pass
- delete_null… pass
- delete_fragment… pass
- mkcol… pass
- mkcol_again… pass
- delete_coll… pass
- mkcol_no_parent… pass
- mkcol_with_body… pass
- finish… pass
← summary forbasic': of 16 tests run: 16 passed, 0 failed. 100.0% -> 1 warning was issued. -> running
copymove’:- init… pass
- begin… pass
- copy_init… pass
- copy_simple… pass
- copy_overwrite… pass
- copy_nodestcoll… pass
- copy_cleanup… pass
- copy_coll… pass
- copy_shallow… pass
- move… pass
- move_coll… pass
- move_cleanup… pass
- finish… pass
← summary forcopymove': of 13 tests run: 13 passed, 0 failed. 100.0% -> running
props’:- init… pass
- begin… pass
- propfind_invalid… pass
- propfind_invalid2… pass
- propfind_d0… pass
- propinit… pass
- propset… pass
- propget… pass
- propextended… pass
- propmove… pass
- propget… pass
- propdeletes… pass
- propget… pass
- propreplace… pass
- propget… pass
- propnullns… pass
- propget… pass
- prophighunicode… pass
- propget… FAIL (Property {http://example.com/neon/litmus/}high-unicode had value , expected 𐀀)
- propremoveset… pass
- propget… pass
- propsetremove… pass
- propget… pass
- propvalnspace… pass
- propwformed… pass
- propinit… pass
- propmanyns… pass
- propget… pass
- propcleanup… pass
- finish… pass
← summary forprops': of 30 tests run: 29 passed, 1 failed. 96.7% -> running
locks’:- init… pass
- begin… pass
- options… WARNING: server does not claim Class 2 compliance
… pass (with 1 warning)- precond… SKIPPED (locking tests skipped,
server does not claim Class 2 compliance)
→ 1 test was skipped.
← summary forlocks': of 3 tests run: 3 passed, 0 failed. 100.0% -> 1 warning was issued. -> running
http’:- init… pass
- begin… pass
- expect100… SKIPPED (skipping for SSL server)
- finish… pass
→ 1 test was skipped.
← summary for `http’: of 3 tests run: 3 passed, 0 failed. 100.0%
root@serveur:/usr/src/litmus-0.13#
Can you help me to find a solution?