CalDav no Events Found

caldavbinding
Tags: #<Tag:0x00007f6cea3588e8>

(Andrew Pawelski) #21

Heres a typical section of the log can anyone help?

listeners for events: 0
17-Jan-2018 22:51:45.279 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - eventContainer found: false
17-Jan-2018 22:51:45.281 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last resource modification: 2018-01-13T10:29:33.000+10:30
17-Jan-2018 22:51:45.282 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last change of already loaded event: null
17-Jan-2018 22:51:45.284 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading resource: /1317893642/calendars/086e6106-1a0b-4301-a99d-5c5eddcc5079/4993B704-4732-43F6-806A-27AA9716D846.ics (FSchangedTS not valid)
17-Jan-2018 22:51:45.285 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Raw URL: https://p42-caldav.icloud.com:443/1317873642/calendars/086e6106-8a0b-4301-a99d-5c5ebbcc5079/
17-Jan-2018 22:51:45.287 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - URL after encoding: https://p42-caldav.icloud.com:443/1397873642/calendars/086e6106-1a0b-4301-a99d-5c5ebbbb5079/4993B704-4742-43F6-806A-27BA9716D846.ics
17-Jan-2018 22:51:45.592 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-01-16T13:31:45.591+10:30
17-Jan-2018 22:51:45.593 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-01-19T08:11:45.593+10:30
17-Jan-2018 22:51:45.594 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 4993B704-4742-43F6-806A-27AA9716D846:Hamish Scholarship Test
17-Jan-2018 22:51:45.596 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-01-13T10:29:33.000+10:30) with event's last-modified property (2018-01-13T10:29:32.000+10:30)
17-Jan-2018 22:51:45.597 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Hamish Scholarship Test'
17-Jan-2018 22:51:45.598 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Hamish Scholarship Test'

(Andrew Pawelski) #22

started magically working again perhaps I had a dodgy cel event that finally went outside the loading window


(Fabian Hoppe) #23

Dear All,

I would like to pick up this discussion threads as I ran into the same problem - but unfortunately it didn’t magically disappeared as for Andrew. I tried to search/google for tricks and solutions for this problem but got stuck.

Im using OH 2.1 on a QNAP TS 251 device with the caldavio binding provided alone (no recent snapshot from github). I followed the tutorials to derive the correct URL for the calender - which worked fine. The log files confirm the confirm being valid. But still, the binding reports an “event list for CalDavQuery […] with 0 entries”.

My setup (showing the the active config files below userdata):

[/share/openHAB/userdata/config/org/openhab] # cat caldavio.config
familie:disableCertificateVerification="false"
familie:password="XXXX-XXXX-XXXX-XXXX"
familie:preloadTime="14400"
familie:reloadInterval="6"
familie:url="https://p09-caldav.icloud.com:443/1353632932/calendars/aee9a7ea-4433-4dd5-a8ce-6dfbfc1a57c9/"
familie:username="XXXXX.XXXXX@XXXXXX.de"
service.pid="org.openhab.caldavio"
timeZone="Europe/Berlin"
[/share/openHAB/userdata/config/org/openhab] # cat caldavPersonal.config
service.pid="org.openhab.caldavPersonal"
usedCalendars="familie"

openhab reports the config to be valid:

2018-02-13 21:53:34.461 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - Update was called for CalDAV IO.
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:disableCertificateVerification
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:password
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:preloadTime
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:reloadInterval
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:url
2018-02-13 21:53:34.463 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:username
2018-02-13 21:53:34.463 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: timeZone
2018-02-13 21:53:34.463 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - Overriding default timezone Europe/Berlin with Europe/Berlin
2018-02-13 21:53:34.463 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - config for calendar 'familie': CalDavConfig [key=familie, username=XXXX.XXXX@XXXXX.de, password=XXXXXXXXXXXXX, url=https://p09-caldav.icloud.com:443/1353632932/calendars/aee9a7ea-4433-4dd5-a8ce-6dfbfc1a57c9/, reloadMinutes=6, preloadMinutes=14400, disableCertificateVerification=false, lastModifiedFileTimeStampValid=true]
2018-02-13 21:53:34.464 [INFO ] [.io.caldav.internal.CalDavLoaderImpl] - CalDAV IO is properly configured.

But any reload results in 0 calender entries being retrieved:

2018-02-13 21:57:36.908 [DEBUG] [caldav.internal.job.EventReloaderJob] - running EventReloaderJob for config : familie
2018-02-13 21:57:36.908 [DEBUG] [caldav.internal.job.EventReloaderJob] - loading events for config: familie
2018-02-13 21:57:36.908 [TRACE] [org.openhab.io.caldav.internal.Util ] - connecting to caldav 'familie' (url=https://p09-caldav.icloud.com:443/1353632932/calendars/aee9a7ea-4433-4dd5-a8ce-6dfbfc1a57c9/, username=XXXX.XXXX@XXXXX.de, password=XXXXXXXXXXXXXXXXXXX)
2018-02-13 21:57:37.212 [TRACE] [caldav.internal.job.EventReloaderJob] - before load events : oldeventids contains : []
2018-02-13 21:57:37.213 [TRACE] [caldav.internal.job.EventReloaderJob] - after load events : oldeventids contains : []
2018-02-13 21:57:37.213 [DEBUG] [ldav_personal.internal.CalDavBinding] - calendar reloaded: familie
2018-02-13 21:57:37.213 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - Querying events for filter: CalDavQuery [calendarIds=[familie], from=2018-02-13T21:57:37.213+01:00, to=null, sort=ASCENDING, filterName=null]
2018-02-13 21:57:37.214 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - return event list for CalDavQuery [calendarIds=[familie], from=2018-02-13T21:57:37.213+01:00, to=null, sort=ASCENDING, filterName=null] with 0 entries
2018-02-13 21:57:37.214 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName0, setting to UNDEF
2018-02-13 21:57:37.214 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName2, setting to UNDEF
2018-02-13 21:57:37.214 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName1, setting to UNDEF
2018-02-13 21:57:37.215 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime0, setting to UNDEF
2018-02-13 21:57:37.215 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime2, setting to UNDEF
2018-02-13 21:57:37.215 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime1, setting to UNDEF
2018-02-13 21:57:37.216 [DEBUG] [caldav.internal.job.EventReloaderJob] - jobs scheduled :
2018-02-13 21:57:37.216 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : familie - [groupName] : event-reloader - Tue Feb 13 22:03:36 CET 2018

What would be the next steps for debugging this issue? I tried to simulated a calender entry retrieval with curl but failed by not knowing the right XML syntax. Any ideas?


(SiHui) #24

Sorry, wrong solution, disregard, I did not get you are using the personal calender …