Android Calendar CalDAV sync

In like to avoid the Google sync of my data.

The target was to sync my Android calendar to the DAV server Radicale, version 0.9.

Update 2015-06-15:
Because Radicale does not work reliable, I use now Baikal, 2014-06-26 for Android contacts and calendar synch. Also the synch to Mac OS X Yosemite does work now reliable.

The Android program used was CalDAV sync Beta, version 1.8.1.

/!\ Unfortunately the program CalDAV sync did delete all my calendar entries. So I can not recommenced this program.

Debug help for CalDAV sync

In order to help someone with the debugging, I will list the data file calendar.ics and the debug log of Radicale:

BEGIN:VCALENDAR
PRODID:-//Radicale//NONSGML Radicale Server//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
X-RADICALE-NAME:Europe/Berlin
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
X-RADICALE-NAME:Europe/Berlin
END:STANDARD
X-RADICALE-NAME:Europe/Berlin
END:VTIMEZONE
BEGIN:VEVENT
UID:20140621T084336Z-3952-1000-1614-0@rudi-vbxu1404
DTSTAMP:20140621T084336Z
DTSTART;TZID=/freeassociation.sourceforge.net/Tzfile/Europe/Berlin:20140621T130000
DTEND;TZID=/freeassociation.sourceforge.net/Tzfile/Europe/Berlin:20140621T133000
TRANSP:OPAQUE
SEQUENCE:2
SUMMARY:Kaffee
LOCATION:Wiesbaden
CLASS:PUBLIC
CREATED:20140621T084410Z
LAST-MODIFIED:20140621T084410Z
X-RADICALE-NAME:20140621T084336Z-3952-1000-1614-0_rudi-vbxu1404-20140621T084410Z.ics
END:VEVENT
BEGIN:VTIMEZONE
TZID:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:STANDARD
TZNAME:CET
DTSTART:19701026T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:STANDARD
BEGIN:DAYLIGHT
TZNAME:CEST
DTSTART:19700330T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:DAYLIGHT
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20140621T084057Z
LAST-MODIFIED:20140621T084243Z
DTSTAMP:20140621T084243Z
UID:9162faef-21ed-4490-9374-ccbea47a828d
SUMMARY:N├╝rnberger Hof
DTSTART;TZID=Europe/Berlin:20140621T123000
DTEND;TZID=Europe/Berlin:20140621T133000
LOCATION:Frauenstein
CLASS:PUBLIC
X-RADICALE-NAME:9162faef-21ed-4490-9374-ccbea47a828d.ics
END:VEVENT
BEGIN:VEVENT
CREATED:20140621T142418Z
LAST-MODIFIED:20140621T142452Z
DTSTAMP:20140621T142452Z
UID:a9480251-f66d-47b1-9c56-ae3cb845624f
SUMMARY:Light2
DTSTART;TZID=Europe/Berlin:20140621T091500
DTEND;TZID=Europe/Berlin:20140621T101500
LOCATION:wiesbaden
CLASS:PUBLIC
X-RADICALE-NAME:a9480251-f66d-47b1-9c56-ae3cb845624f.ics
END:VEVENT
END:VCALENDAR

PROPFIND request at /rudi/ received
Request headers:
{'CONTENT_LENGTH': '284',
 'CONTENT_TYPE': 'application/xml;charset="UTF-8"',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_CONNECTION': 'Keep-Alive',
 'HTTP_DEPTH': '1',
 'HTTP_HOST': '192.168.17.213:5232',
 'HTTP_USER_AGENT': 'CalDAV Sync Adapter (Android) https://github.com/gggard/AndroidCaldavSyncAdapater Version:1.8.1',
 'PATH_INFO': '/rudi/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '192.168.17.165',
 'REMOTE_HOST': 'android-fc055710db029920.fritz.box',
 'REQUEST_METHOD': 'PROPFIND',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'rudi-vbxu1404',
 'SERVER_PORT': '5232',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'WSGIServer/0.2',
 'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>,
 'wsgi.file_wrapper': <class 'wsgiref.util.FileWrapper'>,
 'wsgi.input': <_io.BufferedReader name=4>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}
Sanitized path: /rudi/
Request content:
<?xml version="1.0" encoding="UTF-8"?>
<d:propfind xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:ic="http://apple.com/ns/ical/"><d:prop><d:displayname /><d:resourcetype /><ic:calendar-color /><cs:getctag /></d:prop></d:propfind>
Anonymous has read access to collection rudi/
Anonymous has write access to collection rudi/
Anonymous has read access to collection rudi/calendar.ics/
Anonymous has write access to collection rudi/calendar.ics/
Response content:
<?xml version="1.0"?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:CS="http://calendarserver.org/ns/" xmlns:ICAL="http://apple.com/ns/ical/">
  <response>
    <href>/rudi/</href>
    <propstat>
      <prop>
        <displayname>rudi</displayname>
        <resourcetype>
          <principal />
          <collection />
        </resourcetype>
        <ICAL:calendar-color>#f0e967</ICAL:calendar-color>
        <CS:getctag>"d41d8cd98f00b204e9800998ecf8427e"</CS:getctag>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
  <response>
    <href>/rudi/calendar.ics/</href>
    <propstat>
      <prop>
        <displayname>calendar.ics</displayname>
        <resourcetype>
          <C:calendar />
          <collection />
        </resourcetype>
        <ICAL:calendar-color>#f0aa98</ICAL:calendar-color>
        <CS:getctag>"b458ff3d4dee2b41e79638e27a8fd720"</CS:getctag>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
</multistatus>

Answer status: 207 Unknown
PROPFIND request at /rudi/calendar.ics/ received
Request headers:
{'CONTENT_LENGTH': '107',
 'CONTENT_TYPE': 'application/xml;charset="UTF-8"',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_CONNECTION': 'Keep-Alive',
 'HTTP_DEPTH': '1',
 'HTTP_HOST': '192.168.17.213:5232',
 'HTTP_USER_AGENT': 'CalDAV Sync Adapter (Android) https://github.com/gggard/AndroidCaldavSyncAdapater Version:1.8.1',
 'PATH_INFO': '/rudi/calendar.ics/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '192.168.17.165',
 'REMOTE_HOST': 'android-fc055710db029920.fritz.box',
 'REQUEST_METHOD': 'PROPFIND',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'rudi-vbxu1404',
 'SERVER_PORT': '5232',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'WSGIServer/0.2',
 'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>,
 'wsgi.file_wrapper': <class 'wsgiref.util.FileWrapper'>,
 'wsgi.input': <_io.BufferedReader name=4>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}
Sanitized path: /rudi/calendar.ics/
Request content:
<?xml version="1.0" encoding="UTF-8"?><D:propfind xmlns:D="DAV:"><D:prop><D:getetag/></D:prop></D:propfind>
Anonymous has read access to collection rudi/calendar.ics/
Anonymous has write access to collection rudi/calendar.ics/
Anonymous has read access to item 20140621T084336Z-3952-1000-1614-0_rudi-vbxu1404-20140621T084410Z.ics
Anonymous has write access to item 20140621T084336Z-3952-1000-1614-0_rudi-vbxu1404-20140621T084410Z.ics
Anonymous has read access to item 9162faef-21ed-4490-9374-ccbea47a828d.ics
Anonymous has write access to item 9162faef-21ed-4490-9374-ccbea47a828d.ics
Anonymous has read access to item a9480251-f66d-47b1-9c56-ae3cb845624f.ics
Anonymous has write access to item a9480251-f66d-47b1-9c56-ae3cb845624f.ics
Response content:
<?xml version="1.0"?>
<multistatus xmlns="DAV:">
  <response>
    <href>/rudi/calendar.ics/</href>
    <propstat>
      <prop>
        <getetag>"b458ff3d4dee2b41e79638e27a8fd720"</getetag>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
  <response>
    <href>/rudi/calendar.ics/20140621T084336Z-3952-1000-1614-0_rudi-vbxu1404-20140621T084410Z.ics</href>
    <propstat>
      <prop>
        <getetag>"9b10c1a30829f2aa07b50b425dd424cf"</getetag>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
  <response>
    <href>/rudi/calendar.ics/a9480251-f66d-47b1-9c56-ae3cb845624f.ics</href>
    <propstat>
      <prop>
        <getetag>"9715eababfa94d46901d2d76a93d15ee"</getetag>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
  <response>
    <href>/rudi/calendar.ics/9162faef-21ed-4490-9374-ccbea47a828d.ics</href>
    <propstat>
      <prop>
        <getetag>"10f67507b010042030934512d300593c"</getetag>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
</multistatus>

Answer status: 207 Unknown
REPORT request at /rudi/calendar.ics/ received
Request headers:
{'CONTENT_LENGTH': '222',
 'CONTENT_TYPE': 'application/xml;charset="UTF-8"',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_CONNECTION': 'Keep-Alive',
 'HTTP_DEPTH': '1',
 'HTTP_HOST': '192.168.17.213:5232',
 'HTTP_USER_AGENT': 'CalDAV Sync Adapter (Android) https://github.com/gggard/AndroidCaldavSyncAdapater Version:1.8.1',
 'PATH_INFO': '/rudi/calendar.ics/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '192.168.17.165',
 'REMOTE_HOST': 'android-fc055710db029920.fritz.box',
 'REQUEST_METHOD': 'REPORT',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'rudi-vbxu1404',
 'SERVER_PORT': '5232',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'WSGIServer/0.2',
 'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>,
 'wsgi.file_wrapper': <class 'wsgiref.util.FileWrapper'>,
 'wsgi.input': <_io.BufferedReader name=4>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}
Sanitized path: /rudi/calendar.ics/
Request content:
<?xml version="1.0" encoding="UTF-8"?>
<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:getetag /><C:calendar-data /></D:prop><D:href>/rudi/calendar.ics/</D:href></C:calendar-multiget>
Anonymous has read access to collection rudi/calendar.ics/
Anonymous has write access to collection rudi/calendar.ics/
Anonymous has read access to item 20140621T084336Z-3952-1000-1614-0_rudi-vbxu1404-20140621T084410Z.ics
Anonymous has write access to item 20140621T084336Z-3952-1000-1614-0_rudi-vbxu1404-20140621T084410Z.ics
Anonymous has read access to item 9162faef-21ed-4490-9374-ccbea47a828d.ics
Anonymous has write access to item 9162faef-21ed-4490-9374-ccbea47a828d.ics
Anonymous has read access to item a9480251-f66d-47b1-9c56-ae3cb845624f.ics
Anonymous has write access to item a9480251-f66d-47b1-9c56-ae3cb845624f.ics
Response content:
<?xml version="1.0"?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
  <response>
    <href>/rudi/calendar.ics/20140621T084336Z-3952-1000-1614-0_rudi-vbxu1404-20140621T084410Z.ics</href>
    <propstat>
      <prop>
        <getetag>"9b10c1a30829f2aa07b50b425dd424cf"</getetag>
        <C:calendar-data>BEGIN:VCALENDAR
PRODID:-//Radicale//NONSGML Radicale Server//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
X-RADICALE-NAME:Europe/Berlin
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
X-RADICALE-NAME:Europe/Berlin
END:STANDARD
X-RADICALE-NAME:Europe/Berlin
END:VTIMEZONE
BEGIN:VTIMEZONE
TZID:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:STANDARD
TZNAME:CET
DTSTART:19701026T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:STANDARD
BEGIN:DAYLIGHT
TZNAME:CEST
DTSTART:19700330T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:DAYLIGHT
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:VTIMEZONE
BEGIN:VEVENT
UID:20140621T084336Z-3952-1000-1614-0@rudi-vbxu1404
DTSTAMP:20140621T084336Z
DTSTART;TZID=/freeassociation.sourceforge.net/Tzfile/Europe/Berlin:20140621T130000
DTEND;TZID=/freeassociation.sourceforge.net/Tzfile/Europe/Berlin:20140621T133000
TRANSP:OPAQUE
SEQUENCE:2
SUMMARY:Kaffee
LOCATION:Wiesbaden
CLASS:PUBLIC
CREATED:20140621T084410Z
LAST-MODIFIED:20140621T084410Z
X-RADICALE-NAME:20140621T084336Z-3952-1000-1614-0_rudi-vbxu1404-20140621T084410Z.ics
END:VEVENT
END:VCALENDAR
</C:calendar-data>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
  <response>
    <href>/rudi/calendar.ics/9162faef-21ed-4490-9374-ccbea47a828d.ics</href>
    <propstat>
      <prop>
        <getetag>"10f67507b010042030934512d300593c"</getetag>
        <C:calendar-data>BEGIN:VCALENDAR
PRODID:-//Radicale//NONSGML Radicale Server//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
X-RADICALE-NAME:Europe/Berlin
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
X-RADICALE-NAME:Europe/Berlin
END:STANDARD
X-RADICALE-NAME:Europe/Berlin
END:VTIMEZONE
BEGIN:VTIMEZONE
TZID:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:STANDARD
TZNAME:CET
DTSTART:19701026T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:STANDARD
BEGIN:DAYLIGHT
TZNAME:CEST
DTSTART:19700330T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:DAYLIGHT
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20140621T084057Z
LAST-MODIFIED:20140621T084243Z
DTSTAMP:20140621T084243Z
UID:9162faef-21ed-4490-9374-ccbea47a828d
SUMMARY:N├╝rnberger Hof
DTSTART;TZID=Europe/Berlin:20140621T123000
DTEND;TZID=Europe/Berlin:20140621T133000
LOCATION:Frauenstein
CLASS:PUBLIC
X-RADICALE-NAME:9162faef-21ed-4490-9374-ccbea47a828d.ics
END:VEVENT
END:VCALENDAR
</C:calendar-data>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
  <response>
    <href>/rudi/calendar.ics/a9480251-f66d-47b1-9c56-ae3cb845624f.ics</href>
    <propstat>
      <prop>
        <getetag>"9715eababfa94d46901d2d76a93d15ee"</getetag>
        <C:calendar-data>BEGIN:VCALENDAR
PRODID:-//Radicale//NONSGML Radicale Server//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
X-RADICALE-NAME:Europe/Berlin
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
X-RADICALE-NAME:Europe/Berlin
END:STANDARD
X-RADICALE-NAME:Europe/Berlin
END:VTIMEZONE
BEGIN:VTIMEZONE
TZID:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:STANDARD
TZNAME:CET
DTSTART:19701026T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:STANDARD
BEGIN:DAYLIGHT
TZNAME:CEST
DTSTART:19700330T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:DAYLIGHT
X-RADICALE-NAME:/freeassociation.sourceforge.net/Tzfile/Europe/Berlin
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20140621T142418Z
LAST-MODIFIED:20140621T142452Z
DTSTAMP:20140621T142452Z
UID:a9480251-f66d-47b1-9c56-ae3cb845624f
SUMMARY:Light2
DTSTART;TZID=Europe/Berlin:20140621T091500
DTEND;TZID=Europe/Berlin:20140621T101500
LOCATION:wiesbaden
CLASS:PUBLIC
X-RADICALE-NAME:a9480251-f66d-47b1-9c56-ae3cb845624f.ics
END:VEVENT
END:VCALENDAR
</C:calendar-data>
      </prop>
      <status>HTTP/1.1 200 OK</status>
    </propstat>
  </response>
</multistatus>

Answer status: 207 Unknown

List of pages in this category:

-- RudolfReuter 2014-06-21 16:40:37


Go back to CategoryAndroid or FrontPage ; KontaktEmail (ContactEmail)

AndroidCalDAVsync (last edited 2015-06-15 15:24:05 by RudolfReuter)