sync contacts on s4 mini fails



  • We updated to the last davdroid version and have now the following situation:

    Server: owncloud 8.1.3 with contacts 0.4.0.1
    S4 mini: Android 4.4.2
    Galaxy Note 2014: Android 4.4.2
    Sony Z3 compact: Android 5.1.1

    Before updating to the last version of davdroid all clients has been worked fine. After updating to the latest version of davdroid only the Sony was be able to sync! After updating the contacts app in owncloud the Galaxy Note 2014 is now also be able to sync the contacts.

    ALL devices are be able to sync the calender!?!

    Enabling the debug informations in davdroid gives the following details:

    [info ] Preparing synchronization
    [info ] Querying capabilities
    [trace] --> PROPFIND /owncloud/remote.php/carddav/addressbooks/[oc_user_2]/gemeinsame_kontakte_s\
    [trace] hared_by_[oc_user_1]/ HTTP/1.1
    [trace] Depth: 0
    [trace] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:par\
    [trace] ams:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><CARD:supported-\
    [trace] address-data /><n0:getctag xmlns:n0="http://calendarserver.org/ns/" /></prop></propfi\
    [trace] nd>
    [trace] --> END PROPFIND (258-byte body)
    [trace] <-- HTTP/1.1 207 Multi-Status (1198ms)
    [trace] Date: Sun, 25 Oct 2015 13:09:40 GMT
    [trace] Server: Apache
    [trace] Expires: Thu, 19 Nov 1981 08:52:00 GMT
    [trace] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    [trace] Pragma: no-cache
    [trace] Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-s\
    [trace] rc 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' data:; media-src *\
    [trace] ; connect-src *
    [trace] X-XSS-Protection: 1; mode=block
    [trace] X-Content-Type-Options: nosniff
    [trace] X-Frame-Options: Sameorigin
    [trace] X-Robots-Tag: none
    [trace] Set-Cookie: oc39af05d142=12u8g10057rn79ovm4m9n1nog1; path=/owncloud; secure; HttpOnly
    [trace] X-Sabre-Version: 2.1.6
    [trace] Vary: Brief,Prefer,Accept-Encoding
    [trace] DAV: 1, 3, extended-mkcol, addressbook, access-control, calendarserver-principal-prop\
    [trace] erty-search
    [trace] Strict-Transport-Security: max-age=31536000; includeSubDomains
    [trace] Keep-Alive: timeout=5, max=100
    [trace] Connection: Keep-Alive
    [trace] Transfer-Encoding: chunked
    [trace] Content-Type: application/xml; charset=utf-8
    [trace] OkHttp-Selected-Protocol: http/1.1
    [trace] OkHttp-Sent-Millis: 1445778579758
    [trace] OkHttp-Received-Millis: 1445778580883
    [trace] <?xml version="1.0" encoding="utf-8"?>
    [trace] <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:card="urn:ietf:p\
    [trace] arams:xml:ns:carddav"><d:response><d:href>/owncloud/remote.php/carddav/addressbooks/[\
    [trace] user_2]/gemeinsame_kontakte_shared_by_[oc_user_1]/</d:href><d:propstat><d:prop><card:supp\
    [trace] orted-address-data><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav\
    [trace] " content-type="text/vcard" version="3.0"/><card:address-data-type xmlns:card="urn:ie\
    [trace] tf:params:xml:ns:carddav" content-type="text/vcard" version="4.0"/><card:address-data\
    [trace] -type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="application/vcard+jso\
    [trace] n" version="4.0"/></card:supported-address-data><x3:getctag xmlns:x3="http://calendar\
    [trace] server.org/ns/">1445775707</x3:getctag></d:prop><d:status>HTTP/1.1 200 OK</d:status><\
    [trace] /d:propstat></d:response></d:multistatus>
    [trace] <-- END HTTP (846-byte body)
    [debug] Received <response> for https://[server]/owncloud/remote.php/carddav/addressbooks/[oc_user_2]/gemeinsame_kontakte_shared_by_[oc_user_1]/, status: null, properties: [supported-address-data(urn:ietf:params:xml:ns:carddav): at.bitfire.dav4android.property.SupportedAddressData@4278cb80,
    getctag(http://calendarserver.org/ns/): GetCTag(cTag=1445775707)]
    [info ] Server advertises VCard/4 support: true
    [info ] Processing locally deleted entries
    [info ] Locally preparing dirty entries
    [info ] Uploading dirty entries
    [info ] Checking sync state
    [info ] Manual sync, ignoring CTag
    [info ] Listing local entries
    ... 
    [debug] Received <response> for 175 records
    [debug] Found remote VCard: for 175 records
    ...
    
    getetag(DAV:): GetETag(eTag=c1be76c9b9e7232749066c5f69b7906a),
    getcontenttype(DAV:): GetContentType(type=text/vcard; charset=utf-8)]
    [info ] Adding C67F4D76-4E70-0001-E4B9-1EA01DAC18A6.vcf to local address book
    [info ] Adding C67F4D76-4E50-0001-ECC9-3E0899E562B0.vcf to local address book
    [info ] Adding C67F4D76-4EF0-0001-E710-9FAFDF6A185D.vcf to local address book
    [info ] Adding C67F4D76-4F10-0001-7242-9220C1A06A50.vcf to local address book
    [error] Unknown sync error - EXCEPTION:
    android.database.sqlite.SQLiteException
    	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:181)
    	at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java:160)
    	at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java:512)
    	at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:377)
    	at at.bitfire.vcard4android.BatchOperation.commit(BatchOperation.java:45)
    	at at.bitfire.vcard4android.AndroidContact.add(AndroidContact.java:603)
    	at at.bitfire.davdroid.syncadapter.ContactsSyncManager.processVCard(ContactsSyncManager.java:249)
    	at at.bitfire.davdroid.syncadapter.ContactsSyncManager.downloadRemote(ContactsSyncManager.java:200)
    	at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:179)
    	at at.bitfire.davdroid.syncadapter.ContactsSyncAdapterService$ContactsSyncAdapter.onPerformSync(ContactsSyncAdapterService.java:52)
    	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
    android.database.sqlite.SQLiteException
    	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:181)
    	at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java:160)
    	at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java:512)
    	at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:377)
    	at at.bitfire.vcard4android.BatchOperation.commit(BatchOperation.java:45)
    	at at.bitfire.vcard4android.AndroidContact.add(AndroidContact.java:603)
    	at at.bitfire.davdroid.syncadapter.ContactsSyncManager.processVCard(ContactsSyncManager.java:249)
    	at at.bitfire.davdroid.syncadapter.ContactsSyncManager.downloadRemote(ContactsSyncManager.java:200)
    	at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:179)
    	at at.bitfire.davdroid.syncadapter.ContactsSyncAdapterService$ContactsSyncAdapter.onPerformSync(ContactsSyncAdapterService.java:52)
    	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
    

    [edit: add ``` to make logs monospace]

    Any help to fix this issue is appreciated.

    Bye
    Andreas


  • developer

    Hello,

    Unfortunately, I was never able to reproduce this SQLite exception on my own devices yet. Is there anything special in 67F4D76-4F10-0001-7242-9220C1A06A50.vcf?

    Otherwise, I can only suggest to reset the contacts storage (Sattings / Apps / Contacts storage / Clear data) and/or do a factory reset and add the DAVdroid account again.



  • I've deleted and added the DAVdroid account a few times - always the same result. I will try reseting the contacts storage.
    Thanks.

    Andreas



  • I've tried it - still the same problem. But the number of successfully downloaded contacts has increased.
    The contact in front of the exception is now a different one.

    Any restart of the sync process causes downloading a few more contacts.

    Andreas


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.