Hi!
Since I’ve updated to the owncloud calendar 1.4.1 and owncloud 9.1.2 that is actually developed under the nextcloud umbrella [1], I am facing an issue when I am creating/updating entries via the Android calendar:
The only way I found to resolve this is to delete the added/modified entry and re-add this via Owncloud.
This used to work until the update to calendar 1.4.1 and owncloud 9.1.2.
Happy to provide more information to get this resolved.
Thanks,
Raoul
[1] https://github.com/nextcloud/calendar/releases
11-28 22:30:10.737 4421 7020 I davdroid: [syncadapter.SyncAdapterService$SyncAdapter] Sync for com.android.calendar has been initiated
11-28 22:30:10.740 4421 7020 I davdroid: [AccountSettings] Account user@domain.com has version 4, current version: 4
11-28 22:30:10.862 4421 7020 I davdroid: [syncadapter.CalendarsSyncAdapterService$SyncAdapter] Synchronizing calendar #24, URL: https://owncloud.domain.tld/remote.php/caldav/calendars/user@domain.com/test_shared_by_raoul@domain.tld/
11-28 22:30:10.876 4421 7020 I davdroid: [AccountSettings] Account user@domain.com has version 4, current version: 4
11-28 22:30:10.884 4421 7020 I davdroid: [syncadapter.SyncManager] Preparing synchronization
11-28 22:30:10.888 4421 7020 I davdroid: [syncadapter.SyncManager] Querying capabilities
11-28 22:30:11.590 4421 7020 I davdroid: [syncadapter.SyncManager] Processing locally deleted entries
11-28 22:30:11.607 4421 7020 I davdroid: [syncadapter.SyncManager] Locally preparing dirty entries
11-28 22:30:11.608 4421 7020 I davdroid: [syncadapter.SyncManager] Looking for contacts/groups without file name
11-28 22:30:11.621 4421 7020 I davdroid: [resource.LocalCalendar] Processing deleted exceptions
11-28 22:30:11.633 4421 7020 I davdroid: [resource.LocalCalendar] Processing dirty exceptions
11-28 22:30:11.645 4421 7020 I davdroid: [syncadapter.SyncManager] Uploading dirty entries
11-28 22:30:11.942 4421 7020 I davdroid: [syncadapter.SyncManager] Uploading new record 301c641d-918d-4a97-9098-12f942960063.ics
11-28 22:30:13.336 4421 7020 E davdroid: [syncadapter.SyncManager] HTTP/DAV Exception during sync
11-28 22:30:13.336 4421 7020 E davdroid: EXCEPTION at.bitfire.dav4android.exception.NotFoundException: 404
11-28 22:30:13.336 4421 7020 E davdroid: at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:310)
11-28 22:30:13.336 4421 7020 E davdroid: at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:291)
11-28 22:30:13.336 4421 7020 E davdroid: at at.bitfire.dav4android.DavResource.put(DavResource.java:202)
11-28 22:30:13.336 4421 7020 E davdroid: at at.bitfire.davdroid.syncadapter.SyncManager.uploadDirty(SyncManager.java:314)
11-28 22:30:13.336 4421 7020 E davdroid: at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:147)
11-28 22:30:13.336 4421 7020 E davdroid: at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.sync(CalendarsSyncAdapterService.java:68)
11-28 22:30:13.336 4421 7020 E davdroid: at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.java:85)
11-28 22:30:13.336 4421 7020 E davdroid: at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
11-28 22:30:13.372 4421 7020 I davdroid: [syncadapter.CalendarsSyncAdapterService$SyncAdapter] Synchronizing calendar #25, URL: https://owncloud.domain.tld/remote.php/caldav/calendars/user@domain.com/testprivate_shared_by_raoul@domain.tld/
11-28 22:30:13.388 4421 7020 I davdroid: [AccountSettings] Account user@domain.com has version 4, current version: 4
11-28 22:30:13.392 4421 7020 I davdroid: [syncadapter.SyncManager] Preparing synchronization
11-28 22:30:13.393 4421 7020 I davdroid: [syncadapter.SyncManager] Querying capabilities
11-28 22:30:13.837 4421 7020 I davdroid: [syncadapter.SyncManager] Processing locally deleted entries
11-28 22:30:13.859 4421 7020 I davdroid: [syncadapter.SyncManager] Locally preparing dirty entries
11-28 22:30:13.860 4421 7020 I davdroid: [syncadapter.SyncManager] Looking for contacts/groups without file name
11-28 22:30:13.869 4421 7020 I davdroid: [resource.LocalCalendar] Processing deleted exceptions
11-28 22:30:13.877 4421 7020 I davdroid: [resource.LocalCalendar] Processing dirty exceptions
11-28 22:30:13.885 4421 7020 I davdroid: [syncadapter.SyncManager] Uploading dirty entries
11-28 22:30:13.892 4421 7020 I davdroid: [syncadapter.SyncManager] Checking sync state
11-28 22:30:13.899 4421 7020 I davdroid: [syncadapter.SyncManager] Remote collection didn't change (CTag=http://sabre.io/ns/sync/51), no need to query children
11-28 22:30:13.899 4421 7020 I davdroid: [syncadapter.SyncManager] Remote collection didn't change, skipping remote sync
11-28 22:30:13.900 4421 7020 I davdroid: [syncadapter.CalendarsSyncAdapterService$SyncAdapter] Calendar sync complete
11-28 22:30:13.900 4421 7020 I davdroid: [syncadapter.SyncAdapterService$SyncAdapter] Sync for com.android.calendar complete
DAVDroid Debug Log:
SYNCHRONIZATION INFO
Synchronization phase: 4
Account name: user@domain.com
Authority: com.android.calendar
HTTP REQUEST:
PUT /remote.php/caldav/calendars/user@domain.com/test_shared_by_raoul@domain.tld/301c641d-918d-4a97-9098-12f942960063.ics
If-None-Match: *
BEGIN:VCALENDAR[CR][LF]
VERSION:2.0[CR][LF]
PRODID:+//IDN bitfire.at//DAVdroid/1.3.4.1-gplay ical4android ical4j/2.x[CR][LF]
BEGIN:VEVENT[CR][LF]
DTSTAMP:20161128T213011Z[CR][LF]
UID:301c641d-918d-4a97-9098-12f942960063[CR][LF]
DTSTART;TZID=Europe/Vienna:20161128T103000[CR][LF]
DTEND;TZID=Europe/Vienna:20161128T121500[CR][LF]
SUMMARY:Test TODO[CR][LF]
STATUS:CONFIRMED[CR][LF]
END:VEVENT[CR][LF]
BEGIN:VTIMEZONE[CR][LF]
TZID:Europe/Vienna[CR][LF]
TZURL:http://tzurl.org/zoneinfo/Europe/Vienna[CR][LF]
X-LIC-LOCATION:Europe/Vienna[CR][LF]
BEGIN:DAYLIGHT[CR][LF]
TZOFFSETFROM:+0100[CR][LF]
TZOFFSETTO:+0200[CR][LF]
TZNAME:CEST[CR][LF]
DTSTART:19810329T020000[CR][LF]
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU[CR][LF]
END:DAYLIGHT[CR][LF]
BEGIN:STANDARD[CR][LF]
TZOFFSETFROM:+0200[CR][LF]
TZOFFSETTO:+0100[CR][LF]
TZNAME:CET[CR][LF]
DTSTART:19961027T030000[CR][LF]
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU[CR][LF]
END:STANDARD[CR][LF]
BEGIN:STANDARD[CR][LF]
TZOFFSETFROM:+010521[CR][LF]
TZOFFSETTO:+0100[CR][LF]
TZNAME:CET[CR][LF]
DTSTART:18930401T000000[CR][LF]
RDATE:18930401T000000[CR][LF]
END:STANDARD[CR][LF]
BEGIN:DAYLIGHT[CR][LF]
TZOFFSETFROM:+0100[CR][LF]
TZOFFSETTO:+0200[CR][LF]
TZNAME:CEST[CR][LF]
DTSTART:19160501T000000[CR][LF]
RDATE:19160501T000000[CR][LF]
RDATE:19170416T030000[CR][LF]
RDATE:19180415T030000[CR][LF]
RDATE:19200405T030000[CR][LF]
RDATE:19400401T030000[CR][LF]
RDATE:19430329T030000[CR][LF]
RDATE:19440403T030000[CR][LF]
RDATE:19450402T030000[CR][LF]
RDATE:19460414T030000[CR][LF]
RDATE:19470406T030000[CR][LF]
RDATE:19480418T030000[CR][LF]
RDATE:19800406T000000[CR][LF]
END:DAYLIGHT[CR][LF]
BEGIN:STANDARD[CR][LF]
TZOFFSETFROM:+0200[CR][LF]
TZOFFSETTO:+0100[CR][LF]
TZNAME:CET[CR][LF]
DTSTART:19161001T010000[CR][LF]
RDATE:19161001T010000[CR][LF]
RDATE:19170917T030000[CR][LF]
RDATE:19180916T030000[CR][LF]
RDATE:19200913T030000[CR][LF]
RDATE:19421102T030000[CR][LF]
RDATE:19431004T030000[CR][LF]
RDATE:19441002T030000[CR][LF]
RDATE:19450412T030000[CR][LF]
RDATE:19461006T030000[CR][LF]
RDATE:19471005T030000[CR][LF]
RDATE:19481003T030000[CR][LF]
RDATE:19800928T000000[CR][LF]
RDATE:19810927T030000[CR][LF]
RDATE:19820926T030000[CR][LF]
RDATE:19830925T030000[CR][LF]
RDATE:19840930T030000[CR][LF]
RDATE:19850929T030000[CR][LF]
RDATE:19860928T030000[CR][LF]
RDATE:19870927T030000[CR][LF]
RDATE:19880925T030000[CR][LF]
RDATE:19890924T030000[CR][LF]
RDATE:19900930T030000[CR][LF]
RDATE:19910929T030000[CR][LF]
RDATE:19920927T030000[CR][LF]
RDATE:19930926T030000[CR][LF]
RDATE:19940925T030000[CR][LF]
RDATE:19950924T030000[CR][LF]
END:STANDARD[CR][LF]
BEGIN:STANDARD[CR][LF]
TZOFFSETFROM:+0100[CR][LF]
TZOFFSETTO:+0100[CR][LF]
TZNAME:CET[CR][LF]
DTSTART:19200101T000000[CR][LF]
RDATE:19200101T000000[CR][LF]
RDATE:19460101T000000[CR][LF]
RDATE:19810101T000000[CR][LF]
END:STANDARD[CR][LF]
END:VTIMEZONE[CR][LF]
END:VCALENDAR[CR][LF]
HTTP RESPONSE:
h2 404
cache-control: no-store, no-cache, must-revalidate
content-security-policy: default-src 'none';
content-type: application/xml; charset=utf-8
date: Mon, 28 Nov 2016 21:29:36 GMT
expires: Thu, 19 Nov 1981 08:52:00 GMT
pragma: no-cache
server: nginx
set-cookie: oc_username=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; secure; HttpOnly
set-cookie: oc_token=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; secure; HttpOnly
set-cookie: oc_remember_login=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; secure; HttpOnly
set-cookie: oc_username=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure; HttpOnly
set-cookie: oc_token=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure; HttpOnly
set-cookie: oc_remember_login=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure; HttpOnly
set-cookie: 51deba942f2c9=8ua4avovasdkmmhncfj2d6eu72; path=/; secure; HttpOnly
x-sabre-version: 3.0.9
<?xml version="1.0" encoding="utf-8"?>[LF]
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">[LF]
<s:sabredav-version>3.0.9</s:sabredav-version>[LF]
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>[LF]
<s:message>Principal with name users not found</s:message>[LF]
</d:error>[LF]
EXCEPTION:
at.bitfire.dav4android.exception.NotFoundException: 404
at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:310)
at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:291)
at at.bitfire.dav4android.DavResource.put(DavResource.java:202)
at at.bitfire.davdroid.syncadapter.SyncManager.uploadDirty(SyncManager.java:314)
at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:147)
at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.sync(CalendarsSyncAdapterService.java:68)
at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.java:85)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
SOFTWARE INFORMATION
Package: at.bitfire.davdroid
Version: 1.3.4.1-gplay (129) Mon Nov 14 19:39:42 GMT+01:00 2016
Installed from: com.android.vending
JB Workaround installed: no
CONFIGURATION
System-wide synchronization: automatically
Account: raoul@domain.tld
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
Account: user@domain.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
Account: Family India
Address book sync. interval: 240 min
Calendar sync. interval: —
OpenTasks sync. interval: —
WiFi only: false
[CardDAV] Contact group method: CATEGORIES
[CalDAV] Time range (past days): 90
Manage calendar colors: true
SQLITE DUMP
android_metadata
| locale |
| en_US |
----------
settings
| setting | value |
----------
services
| _id | accountName | service | principal |
| 1 | user@domain.com | carddav | <null> |
| 2 | user@domain.com | caldav | <null> |
| 3 | Family India | carddav | <null> |
| 4 | raoul@domain.tld | carddav | <null> |
| 5 | raoul@domain.tld | caldav | <null> |
----------
sqlite_sequence
| name | seq |
| services | 5 |
| collections | 101 |
| homesets | 28 |
----------
homesets
| _id | serviceID | url |
| 12 | 4 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/ |
| 19 | 1 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/user@domain.com/ |
| 24 | 3 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/ |
| 27 | 5 | https://owncloud.domain.tld/remote.php/caldav/calendars/raoul@domain.tld/ |
| 28 | 2 | https://owncloud.domain.tld/remote.php/caldav/calendars/user@domain.com/ |
----------
collections
| _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
| 33 | 4 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/test/ | 0 | Test | <null> | <null> | <null> | <null> | <null> | 0 |
| 34 | 4 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/contacts/ | 0 | Contacts | Default Address Book | <null> | <null> | <null> | <null> | 1 |
| 35 | 4 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/family_india/ | 0 | Family India | <null> | <null> | <null> | <null> | <null> | 0 |
| 36 | 4 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/scouts/ | 0 | Scouts | <null> | <null> | <null> | <null> | <null> | 0 |
| 58 | 1 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/user@domain.com/test_shared_by_raoul@domain.tld/ | 0 | Test(raoul@domain.tld) | <null> | <null> | <null> | <null> | <null> | 1 |
| 59 | 1 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/user@domain.com/contacts/ | 0 | Contacts | <null> | <null> | <null> | <null> | <null> | 0 |
| 78 | 3 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/test/ | 0 | Test | <null> | <null> | <null> | <null> | <null> | 0 |
| 79 | 3 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/contacts/ | 0 | Contacts | Default Address Book | <null> | <null> | <null> | <null> | 0 |
| 80 | 3 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/family_india/ | 0 | Family India | <null> | <null> | <null> | <null> | <null> | 1 |
| 81 | 3 | https://owncloud.domain.tld/remote.php/carddav/addressbooks/raoul@domain.tld/scouts/ | 0 | Scouts | <null> | <null> | <null> | <null> | <null> | 0 |
| 92 | 5 | https://owncloud.domain.tld/remote.php/caldav/calendars/raoul@domain.tld/xyz_shared_by_user2@domain.tld/ | 0 | xyz(user2@domain.tld) | xyz | -256 | <null> | 1 | 1 | 1 |
| 93 | 5 | https://owncloud.domain.tld/remote.php/caldav/calendars/raoul@domain.tld/test/ | 0 | Test | Test | -23296 | <null> | 1 | 1 | 0 |
| 94 | 5 | https://owncloud.domain.tld/remote.php/caldav/calendars/raoul@domain.tld/testprivate/ | 0 | Test private | Test private | -65536 | <null> | 1 | 1 | 0 |
| 95 | 5 | https://owncloud.domain.tld/remote.php/caldav/calendars/raoul@domain.tld/contact_birthdays/ | 1 | Contact birthdays | <null> | -12960963 | <null> | 1 | 1 | 1 |
| 96 | 5 | https://owncloud.domain.tld/remote.php/caldav/calendars/raoul@domain.tld/defaultcalendar/ | 0 | Default calendar | Default calendar | -13534004 | <null> | 1 | 1 | 1 |
| 97 | 5 | https://owncloud.domain.tld/remote.php/caldav/calendars/raoul@domain.tld/family_shared_by_office@domain.tld/ | 0 | family(office@domain.tld) | <null> | -9122585 | <null> | 1 | 1 | 1 |
| 98 | 2 | https://owncloud.domain.tld/remote.php/caldav/calendars/user@domain.com/test_shared_by_raoul@domain.tld/ | 0 | Test(raoul@domain.tld) | Test | -23296 | <null> | 1 | 1 | 1 |
| 99 | 2 | https://owncloud.domain.tld/remote.php/caldav/calendars/user@domain.com/testprivate_shared_by_raoul@domain.tld/ | 0 | Test private(raoul@domain.tld) | Test private | -1605516 | <null> | 1 | 1 | 1 |
| 100 | 2 | https://owncloud.domain.tld/remote.php/caldav/calendars/user@domain.com/contact_birthdays/ | 1 | Contact birthdays | <null> | <null> | <null> | 1 | 1 | 0 |
| 101 | 2 | https://owncloud.domain.tld/remote.php/caldav/calendars/user@domain.com/personal/ | 0 | Personal | Personal | -1146130 | <null> | 1 | 1 | 0 |
----------
SYSTEM INFORMATION
Android version: 6.0.1 (cm_jfltexx-userdebug 6.0.1 MOB31K 1e4a5bbef3 test-keys)
Device: Samsung GT-I9505 (jfltexx)