Cannot connect to carddav server



  • Error log from app

    SOFTWARE INFORMATION
    Package: at.bitfire.davdroid
    Version: 1.9-gplay (182) from 15 Ott 2017
    Installed from: com.android.vending
    JB Workaround installed: no
    
    CONNECTIVITY (at the moment)
    Active connection: mobile, CONNECTED
    
    CONFIGURATION
    Power saving disabled: yes
    android.permission.READ_CONTACTS permission: granted
    android.permission.WRITE_CONTACTS permission: granted
    android.permission.READ_CALENDAR permission: granted
    android.permission.WRITE_CALENDAR permission: granted
    org.dmfs.permission.READ_TASKS permission: granted
    org.dmfs.permission.WRITE_TASKS permission: granted
    System-wide synchronization: automatically
    Account: l.realdon@nordestinnovazione.com
      Address book sync. interval: 240 min
      Calendar     sync. interval: 240 min
      OpenTasks    sync. interval: 240 min
      WiFi only: false
      [CardDAV] Contact group method: CATEGORIES
      [CalDAV] Time range (past days): 90
               Manage calendar colors: true
    Address book account: Contatti (l.realdon@nordestinnovazione.com nA)
      Main account: Account {name=l.realdon@nordestinnovazione.com, type=bitfire.at.davdroid}
      URL: https://progetti.nordestinnovazione.it/carddav/easy_contact/
      Sync automatically: true
    
    SQLITE DUMP
    android_metadata
    	|  locale |
    	|  it_IT |
    ----------
    services
    	|  _id | accountName | service | principal |
    	|  1 | l.realdon@nordestinnovazione.com | carddav | https://progetti.nordestinnovazione.it/carddav/principal |
    	|  2 | l.realdon@nordestinnovazione.com | caldav | https://progetti.nordestinnovazione.it/caldav/principal/ |
    ----------
    sqlite_sequence
    	|  name | seq |
    	|  services | 2 |
    	|  homesets | 2 |
    	|  collections | 3 |
    ----------
    homesets
    	|  _id | serviceID | url |
    	|  1 | 2 | https://progetti.nordestinnovazione.it/caldav/ |
    	|  2 | 1 | https://progetti.nordestinnovazione.it/carddav/ |
    ----------
    collections
    	|  _id | serviceID | type | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
    	|  1 | 2 | CALENDAR | https://progetti.nordestinnovazione.it/caldav/easy_meeting/ | 0 | Riunioni | <null> | -2433546 | <null> | 1 | 0 | <null> | 0 |
    	|  2 | 1 | ADDRESS_BOOK | https://progetti.nordestinnovazione.it/carddav/users/ | 1 | Utenti | <null> | <null> | <null> | 0 | 0 | <null> | 0 |
    	|  3 | 1 | ADDRESS_BOOK | https://progetti.nordestinnovazione.it/carddav/easy_contact/ | 0 | Contatti | <null> | <null> | <null> | 0 | 0 | <null> | 1 |
    ----------
    
    SYSTEM INFORMATION
    Android version: 7.0 (NRD90M.G930FXXU1DQIC)
    Device: samsung SM-G930F (herolte)
    
    
    

    Error log from server

    NoMethodError (undefined method strip' for nil:NilClass): plugins/easyproject/easy_plugins/easy_contacts/app/helpers/easy_contacts_helper.rb:179:inblock (2 levels) in vcard_export'
    plugins/easyproject/easy_plugins/easy_contacts/app/helpers/easy_contacts_helper.rb:174:in block in vcard_export' plugins/easyproject/easy_plugins/easy_contacts/app/helpers/easy_contacts_helper.rb:172:ineach'
    plugins/easyproject/easy_plugins/easy_contacts/app/helpers/easy_contacts_helper.rb:172:in vcard_export' plugins/easyproject/easy_plugins/easy_contacts/lib/easy_contacts/carddav/easy_contact_resource.rb:26:inaddress_data'
    plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/resource.rb:102:in get_property' plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:534:inblock in get_properties'
    plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:530:in each' plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:530:inget_properties'
    plugins/easyproject/easy_plugins/easy_contacts/lib/easy_contacts/carddav/controller.rb:116:in block (3 levels) in report' plugins/easyproject/easy_plugins/easy_contacts/lib/easy_contacts/carddav/controller.rb:114:inblock (2 levels) in report'
    plugins/easyproject/easy_plugins/easy_contacts/lib/easy_contacts/carddav/controller.rb:113:in each' plugins/easyproject/easy_plugins/easy_contacts/lib/easy_contacts/carddav/controller.rb:113:inblock in report'
    plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:411:in block (2 levels) in multistatus' plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:410:inblock in multistatus'
    plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:400:in block in render_xml' plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:399:innew'
    plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:399:in render_xml' plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/controller.rb:409:inmultistatus'
    plugins/easyproject/easy_plugins/easy_contacts/lib/easy_contacts/carddav/controller.rb:112:in report' plugins/easyproject/easy_plugins/easy_extensions/lib/easy_extensions/webdav/handler.rb:35:incall'


  • admin

    What server do you use?

    Please provide all steps to reproduce.
    https://forums.bitfire.at/topic/749/read-before-posting-what-s-required-to-diagnose-a-problem

    You've only pasted the debug info, which is no error log.



  • Sorry. I clicked Submit but I was still collecting more infos.

    The carddav server is generated by EasyRedmine software v.2016.07.03

    I was able to connect and find cardav addresslist but at the first sync i get a sync error with that debug infos attacched.

    I used CardDav Sync free and worked fine downloading contacts (some errors uploading new ones) but was looking to move away due to lack of support.

    Can I give you any other info?


  • admin

    Most likely this is is a server bug... Can you provide a test account? Then we can have a closer look at it.



  • I sent you credentials by chat.
    Thank you so much.
    Luca


  • developer

    Hello,

    I was able to reproduce the problem. As soon as DAVdroid tries to download the contacts with REPORT addressbook-multiget, the server returns "500 Internal Server Error".

    addressbook-multiget is mandatory for CardDAV servers and required for fast contact synchronization.

    Can you please report this problem to the server vendor and provide some reference (for instance, a link to the bug report) here?



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