Baikal + DavDroid



  • Hi, i have installed booth.. but a sync doesn't work. I can create a account. It founds the AddressbookID's. But Sync will fail.

    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:13:23 +0100] "OPTIONS /cal.php/ HTTP/1.1" 401 865 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:13:23 +0100] "OPTIONS /cal.php/ HTTP/1.1" 200 695 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:13:23 +0100] "PROPFIND /cal.php/ HTTP/1.1" 401 807 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:13:23 +0100] "PROPFIND /cal.php/ HTTP/1.1" 207 960 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:13:23 +0100] "PROPFIND /cal.php/principals/Username/ HTTP/1.1" 401 806 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:13:23 +0100] "PROPFIND /cal.php/principals/Username/ HTTP/1.1" 207 1123 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:13:23 +0100] "PROPFIND /cal.php/calendars/Username/ HTTP/1.1" 401 806 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:13:23 +0100] "PROPFIND /cal.php/calendars/Username/ HTTP/1.1" 207 2526 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:14:15 +0100] "PROPFIND /card.php/addressbooks/Username/adressID/ HTTP/1.1" 401 865 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:14:15 +0100] "PROPFIND /card.php/addressbooks/Username/adressID/ HTTP/1.1" 207 905 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:14:15 +0100] "PROPFIND /card.php/addressbooks/Username/adressID/ HTTP/1.1" 401 806 "-" "DAVdroid/0.5.6-alpha"
    xxx.xxx.xxx.xxx - - [19/Jan/2014:04:14:15 +0100] "PROPFIND /card.php/addressbooks/Username/adressID/ HTTP/1.1" 207 1002 "-" "DAVdroid/0.5.6-alpha"
    

  • developer

    Because my magic crystall ball is out of service at the moment, I will need further information like DAVdroid version, Baikal version, Android version and – most important – DAVdroid logs.



  • I will bring more informations about my apache2 server config:
    enabled mods
    apache2_modsenabled

    vhost config
    vhost


  • developer

    Thanks, but I need the DAVdroid logs to debug DAVdroid.



  • How i can find it?



  • Ok, i have found it. But i anonymous the url and username.
    I/davdroid.DavSyncAdapter(10442): Performing sync for authority com.android.contacts I/davdroid.SyncManager(10442): Remotely removing 0 deleted resource(s) (if not changed) I/davdroid.SyncManager(10442): Uploading 0 new resource(s) (if not existing) I/davdroid.SyncManager(10442): Uploading 0 modified resource(s) (if not changed) I/davdroid.SyncManager(10442): Synchronization forced I/davdroid.SyncManager(10442): Fetching remote resource list D/davdroid.HttpPropfind(10442): Prepared PROPFIND request: <propfind xmlns="DAV:"> D/davdroid.HttpPropfind(10442): <prop> D/davdroid.HttpPropfind(10442): <CS:getctag xmlns:CS="http://calendarserver.org/ns/"/> D/davdroid.HttpPropfind(10442): <getetag/> D/davdroid.HttpPropfind(10442): </prop> D/davdroid.HttpPropfind(10442): </propfind> D/davdroid.WebDavResource(10442): Received HTTP/1.1 207 Multi-Status D/davdroid.WebDavResource(10442): Processing multi-status element: http://baikal.host.com/card.php/addressbooks/UserName/adressbookid/ D/davdroid.WebDavResource(10442): <?xml version="1.0" encoding="utf-8"?> D/davdroid.WebDavResource(10442): <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/card.php/addressbooks/UserName/adressbookid/</d:href><d:propstat><d:prop><x3:getctag xmlns:x3="http://calendarserver.org/ns/">1</x3:getctag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getetag/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus> I/davdroid.SyncManager(10442): Fetching 0 new remote resource(s) I/davdroid.SyncManager(10442): Fetching 0 updated remote resource(s) I/davdroid.SyncManager(10442): Removing non-dirty resources that are not present remotely anymore D/davdroid.LocalCollection(10442): Committing 1 operations I/davdroid.SyncManager(10442): Sync complete, fetching new CTag I/davdroid.DavSyncAdapter(10442): Performing sync for authority com.android.contacts I/davdroid.SyncManager(10442): Remotely removing 0 deleted resource(s) (if not changed) I/davdroid.SyncManager(10442): Uploading 0 new resource(s) (if not existing) I/davdroid.SyncManager(10442): Uploading 0 modified resource(s) (if not changed) D/davdroid.HttpPropfind(10442): Prepared PROPFIND request: <propfind xmlns="DAV:"> D/davdroid.HttpPropfind(10442): <prop> D/davdroid.HttpPropfind(10442): <CS:getctag xmlns:CS="http://calendarserver.org/ns/"/> D/davdroid.HttpPropfind(10442): </prop> D/davdroid.HttpPropfind(10442): </propfind> D/davdroid.WebDavResource(10442): Received HTTP/1.1 207 Multi-Status D/davdroid.WebDavResource(10442): Processing multi-status element: http://baikal.host.com/card.php/addressbooks/UserName/adressbookid/ D/davdroid.WebDavResource(10442): <?xml version="1.0" encoding="utf-8"?> D/davdroid.WebDavResource(10442): <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/card.php/addressbooks/UserName/adressbookid/</d:href><d:propstat><d:prop><x3:getctag xmlns:x3="http://calendarserver.org/ns/">1</x3:getctag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus> I/davdroid.SyncManager(10442): Fetching remote resource list D/davdroid.HttpPropfind(10442): Prepared PROPFIND request: <propfind xmlns="DAV:"> D/davdroid.HttpPropfind(10442): <prop> D/davdroid.HttpPropfind(10442): <CS:getctag xmlns:CS="http://calendarserver.org/ns/"/> D/davdroid.HttpPropfind(10442): <getetag/> D/davdroid.HttpPropfind(10442): </prop> D/davdroid.HttpPropfind(10442): </propfind> D/davdroid.WebDavResource(10442): Received HTTP/1.1 207 Multi-Status D/davdroid.WebDavResource(10442): Processing multi-status element: http://baikal.host.com/card.php/addressbooks/UserName/adressbookid/ D/davdroid.WebDavResource(10442): <?xml version="1.0" encoding="utf-8"?> D/davdroid.WebDavResource(10442): <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/card.php/addressbooks/UserName/adressbookid/</d:href><d:propstat><d:prop><x3:getctag xmlns:x3="http://calendarserver.org/ns/">1</x3:getctag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getetag/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus> I/davdroid.SyncManager(10442): Fetching 0 new remote resource(s) I/davdroid.SyncManager(10442): Fetching 0 updated remote resource(s) I/davdroid.SyncManager(10442): Removing non-dirty resources that are not present remotely anymore D/davdroid.LocalCollection(10442): Committing 1 operations I/davdroid.SyncManager(10442): Sync complete, fetching new CTag I/davdroid.DavSyncAdapter(10442): Performing sync for authority com.android.calendar I/davdroid.SyncManager(10442): Remotely removing 0 deleted resource(s) (if not changed) I/davdroid.SyncManager(10442): Uploading 0 new resource(s) (if not existing) I/davdroid.SyncManager(10442): Uploading 0 modified resource(s) (if not changed) D/davdroid.HttpPropfind(10442): Prepared PROPFIND request: <propfind xmlns="DAV:"> D/davdroid.HttpPropfind(10442): <prop> D/davdroid.HttpPropfind(10442): <CS:getctag xmlns:CS="http://calendarserver.org/ns/"/> D/davdroid.HttpPropfind(10442): </prop> D/davdroid.HttpPropfind(10442): </propfind> D/davdroid.WebDavResource(10442): Received HTTP/1.1 207 Multi-Status D/davdroid.WebDavResource(10442): Processing multi-status element: http://baikal.host.com/cal.php/calendars/UserName/default/ D/davdroid.WebDavResource(10442): <?xml version="1.0" encoding="utf-8"?> D/davdroid.WebDavResource(10442): <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"><d:response><d:href>/cal.php/calendars/UserName/default/</d:href><d:propstat><d:prop><cs:getctag>1</cs:getctag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus> I/davdroid.SyncManager(10442): Fetching remote resource list D/davdroid.HttpPropfind(10442): Prepared PROPFIND request: <propfind xmlns="DAV:"> D/davdroid.HttpPropfind(10442): <prop> D/davdroid.HttpPropfind(10442): <CS:getctag xmlns:CS="http://calendarserver.org/ns/"/> D/davdroid.HttpPropfind(10442): <getetag/> D/davdroid.HttpPropfind(10442): </prop> D/davdroid.HttpPropfind(10442): </propfind> D/davdroid.WebDavResource(10442): Received HTTP/1.1 207 Multi-Status D/davdroid.WebDavResource(10442): Processing multi-status element: http://baikal.host.com/cal.php/calendars/UserName/default/ D/davdroid.WebDavResource(10442): <?xml version="1.0" encoding="utf-8"?> D/davdroid.WebDavResource(10442): <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"><d:response><d:href>/cal.php/calendars/UserName/default/</d:href><d:propstat><d:prop><cs:getctag>1</cs:getctag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getetag/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus> I/davdroid.SyncManager(10442): Fetching 0 new remote resource(s) I/davdroid.SyncManager(10442): Fetching 0 updated remote resource(s) I/davdroid.SyncManager(10442): Removing non-dirty resources that are not present remotely anymore D/davdroid.LocalCollection(10442): Committing 1 operations I/davdroid.SyncManager(10442): Sync complete, fetching new CTag D/davdroid.LocalCollection(10442): Committing 1 operations I/davdroid.DavSyncAdapter(10442): Performing sync for authority com.android.contacts I/davdroid.SyncManager(10442): Remotely removing 0 deleted resource(s) (if not changed) I/davdroid.SyncManager(10442): Uploading 0 new resource(s) (if not existing) I/davdroid.SyncManager(10442): Uploading 0 modified resource(s) (if not changed) D/davdroid.HttpPropfind(10442): Prepared PROPFIND request: <propfind xmlns="


  • developer

    But Sync will fail.

    As I can see from the logs, the server tells DAVdroid that there are no contacts/events.

    Please verify that

    • there are contacts/events in the selected calendars/address books,
    • it works with other CalDAV/CardDAV clients

    Then I'd need detailed steps on how to reproduce the issue.



  • i choose the using account option. Choose the Davdroid account. There are no contacts. Next i choose import from SDCard. Choose the vcf file and run import. So i save the contacts from google to my phone. But with davdroid this way doesn't work. If i create a complete new contact it will be sync with baikal. Why?



  • Ok, now its work. My error. 😞

    1. choose from import
    2. choose the source from
    3. choose the account into which the contacts will be imported
    4. choose from the vcf file

    After this, i deleted all google, samsung and local contacts choosed the account DavDroid and all contacts are visible with the Davdroid Logo.

    my next step. How to sync S-Planner with baikal.


  • developer

    What's the problem with SPlanner? It should work out of the box when you select the right calendar.


  • developer

    I'll close this issue. If there's an issue with the events, please post again, giving detailed steps to reproduce and log output.