[Dd 0.9.1.3/Android 5.1.1/Oc 8.2.1] Calendar & tasks not syncing, contacts ok



  • Since Lollipop upgrade, calendars & tasks sync are not working with davdroid and owncloud, contacts sync ok
    It was previously working with the same OC server and android configuration, but with android 4.4.4

    Steps to reproduce :
    Remove all davdroid accounts
    Uninstall & reinstall Tasks app + davdroid (following right order)
    Create account for calendars & tasks
    Disable internet at this stage, for activating verbose logging on separate file on the account
    Enable internet, validate sync manualy for the account
    Sync get no errors, but no data...

    Details :
    Was working with the same way on android 4.4.4
    On Lollipop 5.1.1, OC -> Android sync is not working, Android -> OC sync is working (adding calendar event on android is shown on OC after sync)

    Logfile :

    [info ] Preparing synchronization
    [info ] Querying capabilities
    [trace] --> PROPFIND https://{{MYSERVERADDRESS}}/remote.php/caldav/calendars/razer/work/ HTTP/1.\
    [trace] 1
    [trace] Content-Type: application/xml; charset=utf-8
    [trace] Content-Length: 300
    [trace] Depth: 0
    [trace] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:par\
    [trace] ams:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><displayname /><\
    [trace] n0:calendar-color xmlns:n0="http://apple.com/ns/ical/" /><n1:getctag xmlns:n1="http:/\
    [trace] /calendarserver.org/ns/" /></prop></propfind>
    [trace] --> END PROPFIND (300-byte body)
    [trace] <-- HTTP/1.1 207 Multi-Status (759ms)
    [trace] Date: Thu, 07 Jan 2016 08:15:01 GMT
    [trace] Server: Apache/2.4.18 (Unix) OpenSSL/1.0.2e PHP/7.0.1
    [trace] X-Powered-By: PHP/7.0.1
    [trace] Set-Cookie: occ1ef0dea09=0jog7l8d1atrd5d1as5msmnm47; path=/; HttpOnly
    [trace] Expires: Thu, 19 Nov 1981 08:52:00 GMT
    [trace] Cache-Control: no-store, no-cache, must-revalidate
    [trace] Pragma: no-cache
    [trace] Set-Cookie: oc_sessionPassphrase=nf3Bz%2FTl%2F0lgGo9WjY211yHTSCJpQR0wYIDy1AovwpbxNsDt\
    [trace] VZ039inBGtKTcahZlmmHYf8DkvxrbrXiPji0o3eKBdwlakHxonWlBfgrFxPO4yzmlJVOiy47xyLfk%2Ba9; p\
    [trace] ath=/; secure; HttpOnly
    [trace] Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-s\
    [trace] rc 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:;\
    [trace]  media-src *; connect-src *
    [trace] Set-Cookie: occ1ef0dea09=93v7auiep46udbpetrhnlpejl2; path=/; secure; HttpOnly
    [trace] X-Sabre-Version: 2.1.7
    [trace] Vary: Brief,Prefer
    [trace] DAV: 1, 3, extended-mkcol, calendar-access, calendar-proxy, access-control, calendars\
    [trace] erver-principal-property-search
    [trace] X-Content-Type-Options: nosniff
    [trace] X-XSS-Protection: 1; mode=block
    [trace] X-Robots-Tag: none
    [trace] X-Frame-Options: SAMEORIGIN
    [trace] Content-Length: 517
    [trace] Keep-Alive: timeout=5, max=100
    [trace] Connection: Keep-Alive
    [trace] Content-Type: application/xml; charset=utf-8
    [trace] OkHttp-Sent-Millis: 1452154498989
    [trace] OkHttp-Received-Millis: 1452154499513
    [trace] <?xml version="1.0" encoding="utf-8"?>
    [trace] <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:pa\
    [trace] rams:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"><d:response><d:href>/rem\
    [trace] ote.php/caldav/calendars/razer/work/</d:href><d:propstat><d:prop><d:displayname>Work \
    [trace] (razer)</d:displayname><x4:calendar-color xmlns:x4="http://apple.com/ns/ical/">#ff7f5\
    [trace] 0</x4:calendar-color><cs:getctag>1604</cs:getctag></d:prop><d:status>HTTP/1.1 200 OK<\
    [trace] /d:status></d:propstat></d:response></d:multistatus>
    [trace] <-- END HTTP (517-byte body)
    [debug] Received <response> for https://{{MYSERVERADDRESS}}/remote.php/caldav/calendars/razer/work/, status: null, properties: [calendar-color(http://apple.com/ns/ical/): CalendarColor(color=-32944),
    displayname(DAV:): DisplayName(displayName=Work (razer)),
    getctag(http://calendarserver.org/ns/): GetCTag(cTag=1604)]
    [info ] Setting calendar name and color (if available)
    [info ] Processing locally deleted entries
    [info ] Locally preparing dirty entries
    [info ] Uploading dirty entries
    [info ] Checking sync state
    [info ] Listing local entries
    [info ] Listing remote entries
    [trace] --> REPORT https://{{MYSERVERADDRESS}}/remote.php/caldav/calendars/razer/work/ HTTP/1.1
    [trace] Content-Type: application/xml; charset=utf-8
    [trace] Content-Length: 269
    [trace] Depth: 1
    [trace] <?xml version='1.0' encoding='UTF-8' ?><CAL:calendar-query xmlns="DAV:" xmlns:CAL="ur\
    [trace] n:ietf:params:xml:ns:caldav"><prop><getetag /></prop><CAL:filter><CAL:comp-filter nam\
    [trace] e="VCALENDAR"><CAL:comp-filter name="VEVENT" /></CAL:comp-filter></CAL:filter></CAL:c\
    [trace] alendar-query>
    [trace] --> END REPORT (269-byte body)
    [trace] <-- HTTP/1.1 207 Multi-Status (5739ms)
    [trace] Date: Thu, 07 Jan 2016 08:15:02 GMT
    [trace] Server: Apache/2.4.18 (Unix) OpenSSL/1.0.2e PHP/7.0.1
    [trace] X-Powered-By: PHP/7.0.1
    [trace] Expires: Thu, 19 Nov 1981 08:52:00 GMT
    [trace] Cache-Control: no-store, no-cache, must-revalidate
    [trace] Pragma: no-cache
    [trace] Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-s\
    [trace] rc 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:;\
    [trace]  media-src *; connect-src *
    [trace] X-Sabre-Version: 2.1.7
    [trace] Vary: Brief,Prefer
    [trace] X-Content-Type-Options: nosniff
    [trace] X-XSS-Protection: 1; mode=block
    [trace] X-Robots-Tag: none
    [trace] X-Frame-Options: SAMEORIGIN
    [trace] Content-Length: 187
    [trace] Keep-Alive: timeout=5, max=99
    [trace] Connection: Keep-Alive
    [trace] Content-Type: application/xml; charset=utf-8
    [trace] OkHttp-Sent-Millis: 1452154499697
    [trace] OkHttp-Received-Millis: 1452154505428
    [trace] <?xml version="1.0" encoding="utf-8"?>
    [trace] <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:pa\
    [trace] rams:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"/>
    [trace] <-- END HTTP (187-byte body)
    [info ] Comparing local/remote entries
    [info ] Downloading remote entries
    [info ] Downloading 0 events (20 at once)
    [info ] Saving sync state
    [info ] Saving CTag=1604
    

  • developer

    Hello,

    As you can see in the logs, OwnCloud returns an empty reply to the REPORT calendar-query request, i.e. it tells DAVdroid there are no VEVENTs in https://{{MYSERVERADDRESS}}/remote.php/caldav/calendars/razer/work/.

    This is an OwnCloud problem. In my opinion, this is not connected to changing Android versions. Maybe there's a chronological relationship, but not a causal one.



  • You're not alone with your problem. I also updated and am now without tasks and calendar entries. I also recently updated OC to PHP7...



  • Indeed this is OC with PHP7 issue :
    https://owncloud.org/blog/php-7-is-here-and-owncloud-is-ready/ (scroll to comment of Bernd Wurst)

    My Gnome desktop with Evolution have empty calendars too, with the same way
    I should never do upgrades on server and clients the same day, it get hard to find what's going on...

    This should not exist here and can be deleted, sorry for inconvenience



  • @razer
    Following your link I found https://github.com/owncloud/calendar/issues/1002 and the second comment has a solution that fixes the problem for me. I did a vimdiff on his file and without understanding much I can tell you that the changes look reasonable. I have only been testing for 5 minutes but so far it works.
    Cheers


Log in to reply
 

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