[solved] Can't sync contacts (calendar ok)



  • I imported my contacts via a vcf file, but the synchronisation never worked for the contacts... (with a baikal server)
    How can I help you to find where it comes from ?



  • According to http://davdroid.bitfire.at/configuration you have different URLs for calender and contacts. So you have to configure a secound davdroid account for contacts.



  • @acht : it's what I've done on my phone : the first account for the calendar syncs fine, whereas the second one for the contacts fails.
    I've upgraded to the last version of davdroid this morning, but it still fails. By the way, would it be possible to include the changelog in the description of the app, please ?



  • Today it works :-)
    I didn't do nothing on my phone since yesterday (except installing vlc), but it works. No explanation, sorry.
    Are there any logs on the phone, because I'd like to verify if all is well synced, even if there's a green mark now ;-)


  • developer

    Unfortunately, there are no logs except logcat. Do you know how to read logcat (either via app when your phone is rooted or via debug mode / adb)?



  • The problem is finally still here. I've installed "aLogcat", but nothing appears when filtering on "dav" while trying to sync the contacts...



  • That's what I had from aLogcat, when I try in contact sync :

    --------- beginning of /dev/log/main
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 V.ED.VCL ......ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 V.ED.VCL ......ID 0,0-1080,1701 #102000a android:id/list}
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....I. 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....ID 0,0-1080,1701 #102000a android:id/list}
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....I. 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): onVisibilityChanged() is called, visibility : 4
    D/AbsListView(29288): unregisterIRListener() is called
    D/AbsListView(29288): onVisibilityChanged() is called, visibility : 0
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 V.ED.VCL ......ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 V.ED.VCL ......ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 V.ED.VCL ......ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 V.ED.VCL ......ID 0,0-1080,1701 #102000a android:id/list}
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....ID 0,0-1080,1701 #102000a android:id/list}
    E/SpannableStringBuilder(29288): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
    E/SpannableStringBuilder(29288): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....I. 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....ID 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): Get MotionRecognitionManager
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=0, getHeight()=0, this=com.android.internal.view.menu.ExpandedMenuView{427569d8 VFED.VC. .F....I. 0,0-0,0 #10202f0 android:id/expanded_menu}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=750, getHeight()=436, this=com.android.internal.view.menu.ExpandedMenuView{427569d8 VFED.VC. .F....ID 24,24-774,460 #10202f0 android:id/expanded_menu}
    D/AbsListView(29288): unregisterIRListener() is called
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=750, getHeight()=436, this=com.android.internal.view.menu.ExpandedMenuView{427569d8 VFED.VC. .F....I. 24,24-774,460 #10202f0 android:id/expanded_menu}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=750, getHeight()=436, this=com.android.internal.view.menu.ExpandedMenuView{427569d8 VFED.VC. .F....ID 24,24-774,460 #10202f0 android:id/expanded_menu}
    I/endeffect(29288): AbsListView.onMeasure(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....I. 0,0-1080,1701 #102000a android:id/list}
    D/AbsListView(29288): unregisterIRListener() is called
    I/endeffect(29288): AbsListView.onLayout(), getWidth()=1080, getHeight()=1701, this=android.widget.ListView{42693868 VFED.VCL .F....ID 0,0-1080,1701 #102000a android:id/list}

    Do you find something helpful ?


  • developer

    Could you please test 0.3.4-alpha?



  • I will as soon as it appears on f-droid :-)



  • With 0.3.4-alpha -> nothing changes :-(


  • developer

    Did you add the account again for 0.3.4alpha? Please filter the logs for "tag:davdroid" and then do a sync, the logs posted don't contain useful information.



  • I didn't delete the account between 0.3.3alpha et 0.3.4alpha ! Should I had to do it ? I tried once again to sync, and there's a green mark as it was ok, but at the bottom, there's a button "cancel sync". And when I clic it, I have the error message (sync problem, please try later on).
    And when I look on my baikal server, I don't have as many contacts as I should have.
    With aLogcat and the "davdroid" filter, nothing appears after trying to sync (neither whith "tag:davdroid").



  • Still nothing in aLogcat with 0.3.5 and still fails... :-(
    I have deleted the contacts in my baikal server with another client, as my contacts on my phone are newer and up to date : 190 on it and 0 on the server => try to sync and nothing changed...

    I have activated the logs on baikal, and that's what I've got, in access logs, not in error logs... :
    xxx.xxx.xxx.xxx - - [27/Oct/2013:15:48:51 +0100] "DELETE /card.php/addressbooks/xxxx/default/C5E24A1C-BAA0-0001-C61E-EB271170BB80.vcf HTTP/1.1" 401 304 "-" "DAVdroid"
    xxx.xxx.xxx.xxx - - [27/Oct/2013:15:48:51 +0100] "DELETE /card.php/addressbooks/xxxx/default/C5E24A1C-BAA0-0001-C61E-EB271170BB80.vcf HTTP/1.1" 404 266 "-" "DAVdroid"

    May it help you ?



  • I have the same problem with owncloud and cyanogenmod 10. The address book is from another user who shared his address book.


  • developer

    @KasumiNinja: I'm not sure that I understand the bug report completely. Could you please give summarize it for me, including steps to reproduce?



  • Hello,

    same behavior on an AOKP install (latest milestone for nexus4), as well on stock HP slate 7. I can sync my calendar events between them and my owncloud instance (latest 5.x), but no way to sync my contacts.
    I have about 110 contacts, without any special field.
    There's apparently no error reported by davdroid nor my owncloud installation…

    I'm using latest f-droid available release of davdroid.

    Cheers,

    C



  • Hi, I'm using DAVdroid 0.3.6-alpha (installed via F-Droid) on a Samsung GT-I9000 running CyanogenMod 10.1.3 without Google Apps and I'm trying to sync my contacts with my OwnDrive account (they are running owncloud 5.0.12). I have two separate address books (one for private contacts, one for business contacts).

    As I understand it, right now it's impossible to sync both address books; but apart from that I'm also affected by this bug: I can't sync any of my contacts.

    How to reproduce: 1. Install DAVdroid, 2. Settings -> Accounts -> Add account -> DAVdroid -> fill out Root URL, User name, Password -> Select one of the two Address books (doesn't matter which one) -> Contacts won't be synchronized (I have no local contacts, so I won't see any contacts on my phone).

    When I go to Settings -> Accounts -> DAVdroid the symbol for the sync account for my contacts is green and the status message under the account name says "Sync is ON". When DAVdroid tries to sync the account, the symbol changes its color to red for less than a second, then it's green again. I get no error message.

    When I go to Settings -> Accounts -> DAVdroid -> [pick my OwnDrive sync account for contacts] there's a grey sync symbol next to the box where you can toggle sync. When I hit "sync now", the grey symbol rotates and the status message says "Syncing now…" for approximately 5 seconds.

    As I said: there's no error message and this is all I get. The status message in the DAVdroid sync account list will never say something like "Last synced…", it always says "Sync is ON".

    Please tell me if you need more information.

    EDIT: I can reproduce this issue with DAVdroid 0.3.7-alpha on a fresh install of CyanogenMod 10.2 M1 (Android 4.3).



  • Issue still here with 0.3.7 alpha


  • developer

    Unfortunately, the sync mechanism of Android doesn't provide a method to give the user an error message when some error occurs. Instead, there's just the red icon. So I will have to rely on logcat/server logs instead.

    OwnCloud is known to send unencoded characters in URLs. This has been improved in 0.3.8 but of course I don't know if this will fix it (I doubt it in this case).

    Can you provide either logcat/server log output or a test account with this problem and send it to play@bitfire.at?



  • @rfc2822 : I use Baïkal on my server, not owncloud, and all I have (in terms of logs when trying to sync) is what I have allready transmitted to you :
    theipoftheclient - - [09/Nov/2013:13:08:47 +0100] "DELETE /card.php/addressbooks/arno/default/C5E24A1C-BAA0-0001-C61E-EB271170BB80.vcf HTTP/1.1" 401 304 "-" "DAVdroid/0.3.6-alpha"
    theipoftheclient - - [09/Nov/2013:13:08:47 +0100] "DELETE /card.php/addressbooks/arno/default/C5E24A1C-BAA0-0001-C61E-EB271170BB80.vcf HTTP/1.1" 404 266 "-" "DAVdroid/0.3.6-alpha"

    It's written "DAVdroid/0.3.6-alpha" but I have 0.3.7-alpha (I've just checked and reboot to be sure...).


Log in to reply
 

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