No synchronisation of contacts (Note 4 / Owncloud 9)



  • Hello,

    Davdroid works fine with my calendars but it doesn´t sync any contacts.
    In the app it finds the correct address book, but the address book in Owncloud stays empty.
    When I rename the address book in Owncloud, the app show it up correctly.
    There’s no error massage in Davdroid /Owncloud
    My Cellphone is a Samsung Note 4 and the contacts are saved local on my phone.
    May is it necessary to save the contacts in my google account because I stored all my contacts locally?

    Here the logfile from my phone:

    SOFTWARE INFORMATION
    DAVdroid version: 1.0.8 (99) Tue Apr 26 23:36:31 MESZ 2016 Installed from: com.android.vending JB Workaround installed: no
    
    CONFIGURATION
    System-wide synchronization: automatically
    Account: XXXXXX
      Address book sync. interval: 60 min
      Calendar     sync. interval: 15 min
      OpenTasks    sync. interval: 15 min
    
    SQLITE DUMP
    android_metadata
    	|  locale |
    	|  de_DE |
    ----------
    settings
    	|  setting | value |
    	|  logToExternalStorage | 0 |
    ----------
    services
    	|  _id | accountName | service | principal |
    	|  7 | XYZ | carddav | https:// XX.XX.XX.XX/owncloud/remote.php/dav/principals/users/XYZ/ |
    	|  8 | XYZ Server | caldav | https:// XX.XX.XX.XX/owncloud/remote.php/dav/principals/users/XYZ/ |
    ----------
    sqlite_sequence
    	|  name | seq |
    	|  services | 8 |
    	|  homesets | 11 |
    	|  collections | 23 |
    ----------
    homesets
    	|  _id | serviceID | url |
    	|  8 | 8 | https:// XX.XX.XX.XX/owncloud/remote.php/dav/calendars/XYZ/ |
    	|  11 | 7 |
    https:// XX.XX.XX.XX/owncloud/remote.php/dav/addressbooks/users/XYZ/ |
    ----------
    collections
    	|  _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
    	|  18 | 8 |
    https:// XX.XX.XX.XX/owncloud/remote.php/dav/calendars/XYZ/abfall_shared_by_Home/ 
    | 0 | XXX) | <null> | -3486771 | <null> | 1 | 1 | 1 |
    	|  19 | 8 |
    https:// XX.XX.XX.XX/owncloud/remote.php/dav/calendars/XYZ/familie_shared_by_Home/ 
    | 0 | XXX) | <null> | -13513604 | <null> | 1 | 1 | 1 |
    	|  20 | 8 |
    https:// XX.XX.XX.XX/owncloud/remote.php/dav/calendars/XYZ/my-calendar/ |
    0 | XXXXr | <null> | -13534004 | <null> | 1 | 1 | 0 |
    	|  23 | 7 |
    https:// XX.XX.XX.XX/owncloud/remote.php/dav/addressbooks/users/XYZ/Adressbook/ 
    | 0 | Adressbook | <null> | <null> | <null> | <null> | <null> | 1 |
    ----------
    
    SYSTEM INFORMATION
    Android version: 5.1.1
    Device: Samsung SM-N910F
    

    Regards Rocker



  • Now I can produce a failure,
    If I scan the address books in davdroid the server delivers the following error messages:

    LogicException: This is not supposed to happen
    
        /var/www/owncloud/3rdparty/sabre/dav/lib/CardDAV/Plugin.php - line 159: OCA\DAV\CardDAV\Plugin->getAddressbookHomeForPrincipal('principals/grou...')
        /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/PropFind.php - line 98: Sabre\CardDAV\Plugin->Sabre\CardDAV\{closure}()
        /var/www/owncloud/3rdparty/sabre/dav/lib/CardDAV/Plugin.php - line 160: Sabre\DAV\PropFind->handle('{urn ietf param...', Object(Closure))
        [internal function] Sabre\CardDAV\Plugin->propFindEarly(Object(Sabre\DAV\PropFind), Object(Sabre\CalDAV\Principal\User))
        /var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
        /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 999: Sabre\Event\EventEmitter->emit('propFind', Array)
        /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 919: Sabre\DAV\Server->getPropertiesByNode(Object(Sabre\DAV\PropFind), Object(Sabre\CalDAV\Principal\User))
        /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 334: Sabre\DAV\Server->getPropertiesForPath('principals/grou...', Array, 0)
        [internal function] Sabre\DAV\CorePlugin->httpPropFind(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
        /var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
        /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 459: Sabre\Event\EventEmitter->emit('method PROPFIND', Array)
        /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 248: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
        /var/www/owncloud/apps/dav/lib/server.php - line 144: Sabre\DAV\Server->exec()
        /var/www/owncloud/apps/dav/appinfo/v2/remote.php - line 29: OCA\DAV\Server->exec()
        /var/www/owncloud/remote.php - line 138: require_once('/var/www/ownclo...')
        {main}
    

    And this is absolutely reproducible (at every address book scan I get this message)
    If I try an address book sync, nothin happens (also no contact sync)
    If I scan the calendars, there is no error message.

    Regards Bernd


  • developer

    Hello,

    This seems to be an OwnCloud problem. I suggest to ask in the OwnCloud community to get competent help.

    However, they will also require verbose logs and steps to reproduce: [READ BEFORE POSTING] What's required to diagnose a problem



  • Hello,

    i found some more logfiles, may this is more helpfull:
    0_1464164148724_davdroid-14135-20160525-100444.txt

    Regards Bernd


  • developer

    According to your logs, there are no contact uploads and no downloads. Did you have a look at FAQ: I have added a DAVdroid account, but existing contacts are not synchronized?



  • this is what i asked in my very first post :)

    May is it necessary to save the contacts in my google account because I stored all my contacts locally?

    Regarnds Rocker


  • developer

    @Rocker I didn't understand that. You don't have to save the contacts to Google, but to the DAVdroid account.


  • admin

    Hi Bernd,

    if you want to transfer your existing contacts you need to export them first into vcf-files. After that import them again to your DAVdroid account. After the first sync they will be transferred to your owncloud server and from that time they will stay in sync every time you edit / create / delete contacts. Be sure to save newly created contacts to the correct account (your davdroid-owncloud-account).



  • Hello,

    thank you now it works fine!

    just one question:
    after syncing the contacts to davdroid I have the birthday in each contact twice. (the same brithday, just spelling is different)
    as example:
    10-10-1990
    19901010

    witch one can I delete?

    Regards Rocker


Log in to reply
 

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