Sometimes, after adding (or modifying) calendar event, with DAVDroid 184.108.40.206-ose it gets removed from devices seconds or minutes later. Interesting thing is, (at least sometimes) calendar entries remain to be accessible via owncloud web interface, but are still deleted from android device calendar. If sync is disabled on devices, problem doesn’t happen and events are never removed (as expected).
For example, on 2018-03-15 at 11:35am. Server is debian-packaged owncloud 7.0.13~dfsg-1 on apache 2.4.10-10+deb8u11 (I know, not supported anymore). One or two new events were added on device, and seconds later they disappear.
apache server logs don’t seem to show the error:
(in owncloud logs nothing for that timeperiod)
apart from Davdroid complaining that KeyStore.bks is missing, this seems to be relevant part:
[resource.LocalCalendar] Processing dirty exceptions
[syncadapter.SyncManager] Uploading dirty entries
[syncadapter.SyncManager] Uploading locally modified record 55c54fe2-dca2-4453-9974-daf0b37851a8.ics
[syncadapter.SyncManager] Uploading locally modified record 71bf14a9-532a-4f12-92c6-113273ee3088.ics
[syncadapter.SyncManager] Uploading new record fa2774ea-b812-4982-a6e2-ca89b84c25d8.ics
[syncadapter.SyncManager] Uploading new record ad5e98c1-d3ff-4f71-9f1d-477283f9abc6.ics
[syncadapter.SyncManager] Checking sync state
[syncadapter.SyncManager] Listing local resources
[syncadapter.SyncManager] Found 7 local resources
[syncadapter.SyncManager] Listing remote resources
[syncadapter.SyncManager] Comparing local/remote entries
[syncadapter.SyncManager] 55c54fe2-dca2-4453-9974-daf0b37851a8.ics is not on server anymore, deleting
[syncadapter.SyncManager] fa2774ea-b812-4982-a6e2-ca89b84c25d8.ics has been changed on server (current ETag=8fea78a6da42689633fce5393ae3a74a, last known ETag=null)
[syncadapter.SyncManager] 71bf14a9-532a-4f12-92c6-113273ee3088.ics is not on server anymore, deleting
[syncadapter.SyncManager] ad5e98c1-d3ff-4f71-9f1d-477283f9abc6.ics has been changed on server (current ETag=0e24306c77711012ab357e7dee0c413e, last known ETag=null)
[syncadapter.SyncManager] Downloading remote entries
[syncadapter.CalendarSyncManager] Downloading 2 events (20 at once)
[syncadapter.CalendarSyncManager] Downloading https://owncloud.example.voyager.hr/owncloud/remote.php/caldav/calendars/mnalis/sastanci/fa2774ea-b812-4982-a6e2-ca89b84c25d8.ics, https://owncloud.example.voyager.hr/owncloud/
[syncadapter.CalendarSyncManager] Updating fa2774ea-b812-4982-a6e2-ca89b84c25d8.ics in local calendar
[syncadapter.CalendarSyncManager] Updating ad5e98c1-d3ff-4f71-9f1d-477283f9abc6.ics in local calendar
[syncadapter.SyncManager] Saving sync state
[syncadapter.SyncManager] Saving CTag=3160
I’m planing on upgrading server (and probably getting rid of owncloud in favor of something else supported in Debian like radicale) some time in the future; but there is no guarantee that the problem won’t be happening again there (if it is device/davdroid related instead of server/owncloud related).
So, few questions:
anything obvious what is going on and if it could be fixed (or further debugged) by me?
could DAVdroid be modified to detect such condition (entries disappear in same session when they were uploaded) and such silent deletions replaced (or at least accompanied) by warning notification?
alternatively, could DAVdroid be set to do one-way sync only (as a means of backup – eg. choice between two-way sync / only uploading changes to server / only downloading from server)