Hi there.
I have run into a problem with 2.0.5-ose installed from F-Droid.
I have done the following steps:
- Ran DAVdroid < 2.0.5-ose (don’t remember the version) for years with a self-hosted Baikal instance.
- Turned off the Baikal instance.
- Exported all calendars to .ics-files using the app “Calendar Import Export”
- Removed DAVdroid from phone
- Created an account at posteo.de
- Installed DAVdroid 2.0.5-ose on phone
- Created calendars on posteo.de
- Logged into posteo.de account in DAVdroid 2.0.5-ose
- Set all sync intervalls to 60 minutes and set to sync all past events
- Enabled logging to external file
- Imported .ics-File with about 1300 entries to a posteo.de calendar using the app “Calendar Import Export”.
- Start a sync in DAVdroid settings
- Wait
- No events appear in posteo.de web interface
- Look inside external log file.
- Find the following entries in the log file (see end of post). (I have anonymized the log and removed a lot of info. I am happy to submit the full anonymized file via a private message or the likes):
- Remove DAVdroid 2.0.5-ose and install DAVdroid 2.0.3-ose
- Remove all calendars in posteo.de
- Redo steps 7-13 with DAVdroid 2.0.3-ose
- Events appear in posteo.de and are synced properly.
Unfortunately I won’t be able to test further, because 2.0.3-ose is working and I don’t want to mess with the now working setup.
I’m curious to hear your thoughts.
Thanks for the great work, btw, I appreciate it!
Log file of DAVdroid 2.0.5-ose:
2018-11-14 22:52:18 4747 [AndroidEvent] Read event entity from calender provider
PARAMETER #0 = availability=0 dtstart=1498867200000 lastSynced=0 duration=P1D rrule=FREQ=MONTHLY accessLevel=0 eventTimezone=UTC allDay=1 hasAttendeeData=0 _id=9273 guestsCanModify=1 uid2445=87ac2b81-7389-493a-9746-e5db77a685aa dirty=1 guestsCanInviteOthers=1 cal_sync1={"type":"CTAG","value":"0"} guestsCanSeeGuests=1 selfAttendeeStatus=0 mutators=org.sufficientlysecure.ical hasExtendedProperties=0 organizer=<anonymized> title=<anynomized> calendar_id=3 deleted=0 hasAlarm=0 isOrganizer=0
<removed tons of entries "Read event entity from calender provider">
2018-11-14 22:53:20 4747 [AndroidEvent] Read event entity from calender provider
PARAMETER #0 = availability=0 dtstart=1479378600000 lastSynced=0 accessLevel=0 eventTimezone=Europe/Paris allDay=0 dtend=1479384000000 hasAttendeeData=0 _id=9869 guestsCanModify=1 uid2445=8d8ef415-a999-4595-a2df-1c1cfe1b9cfe dirty=1 guestsCanInviteOthers=1 lastDate=1479384000000 cal_sync1={"type":"CTAG","value":"0"} guestsCanSeeGuests=1 eventEndTimezone=Europe/Paris selfAttendeeStatus=0 mutators=org.sufficientlysecure.ical hasExtendedProperties=0 organizer=<anonymized> title=<anonymized> calendar_id=3 deleted=0 hasAlarm=0 isOrganizer=0
2018-11-14 22:53:20 4747 [CustomCertManager] Couldn't unbind CustomCertService
EXCEPTION java.lang.IllegalArgumentException: Service not registered: at.bitfire.cert4android.CustomCertManager$1@4effc3c
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1289)
at android.app.ContextImpl.unbindService(ContextImpl.java:1483)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:648)
at at.bitfire.cert4android.CustomCertManager.close(CustomCertManager.kt:115)
at at.bitfire.davdroid.HttpClient.close(HttpClient.kt:65)
at at.bitfire.davdroid.syncadapter.SyncManager.close(SyncManager.kt:101)
at kotlin.jdk7.AutoCloseableKt.closeFinally(AutoCloseable.kt:59)
at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$CalendarsSyncAdapter.sync(CalendarsSyncAdapterService.kt:55)
at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:84)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
2018-11-14 22:53:20 4747 [syncadapter.CalendarsSyncAdapterService] Couldn't sync calendars
EXCEPTION java.lang.InterruptedException: Sync was cancelled
at at.bitfire.davdroid.syncadapter.SyncManager.abortIfCancelled(SyncManager.kt:588)
at at.bitfire.davdroid.syncadapter.SyncManager$uploadDirty$1.invoke(SyncManager.kt:302)
at at.bitfire.davdroid.syncadapter.SyncManager$uploadDirty$1.invoke(SyncManager.kt:55)
at at.bitfire.davdroid.syncadapter.SyncManager.useLocal(SyncManager.kt:760)
at at.bitfire.davdroid.syncadapter.SyncManager.uploadDirty(SyncManager.kt:301)
at at.bitfire.davdroid.syncadapter.SyncManager$performSync$1.invoke(SyncManager.kt:123)
at at.bitfire.davdroid.syncadapter.SyncManager$performSync$1.invoke(SyncManager.kt:55)
at at.bitfire.davdroid.syncadapter.SyncManager.unwrapExceptions(SyncManager.kt:800)
at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.kt:109)
at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$CalendarsSyncAdapter.sync(CalendarsSyncAdapterService.kt:56)
at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:84)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
2018-11-14 22:53:20 4747 [syncadapter.CalendarsSyncAdapterService] Calendar sync complete
2018-11-14 22:53:20 4747 [settings.Settings] Couldn't unbind Settings service
EXCEPTION java.lang.IllegalArgumentException: Service not registered: at.bitfire.davdroid.settings.Settings$Companion$getInstance$serviceConn$1@af48b6a
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1289)
at android.app.ContextImpl.unbindService(ContextImpl.java:1483)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:648)
at at.bitfire.davdroid.settings.Settings$Stub.close(Settings.kt:223)
at kotlin.jdk7.AutoCloseableKt.closeFinally(AutoCloseable.kt:56)
at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:75)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
2018-11-14 22:53:20 4747 [syncadapter.SyncAdapterService] Sync for (com.android.calendar, Account {name=<anonymized>@posteo.de, type=bitfire.at.davdroid}) finished```