Someone with Caldav running on OpenHab could share a valid .ics file with me. I am trying to setup with a file that is validated in https://icalendar.org/validator.html#results, but when this file is read by openhab, it gives me the following error:
Please mark the post solved by clicking the square box (lower right corner) on the post that provided the solution, e.g. sihui’s post. Also edit the title to start with [Solved], doing both will help others, with similar issues, find a quick solution.
The contents of files in /userdata/config/org/openhab/ were not updating along with my settings. I corrected them and everything started to work. Do you have any log information?
I have replicated the configuration of the ‘/etc/openhab2/services’ files to the ‘/userdata/config/org/openhab/’ files. I believe that if you delete the files from ‘/userdata/config/org/openhab/’, they will be automatically created with the ‘/etc/openhab2/services’ settings.
Hello Luiz,
i have delete the CalDav Config Files under /var/lib/openhab2/config/org/openhab/ and after an reload of Openhab the files where recreated, but i’ve got still the error Message
2019-07-02 16:04:19.503 [WARN ] [caldav.internal.job.EventReloaderJob] - Sardine exception reading ics file: 20190122T095608CET-546h45657_158_181_48_192
com.github.sardine.impl.SardineException: Unexpected response
at com.github.sardine.impl.handler.ValidatingResponseHandler.validateResponse(ValidatingResponseHandler.java:48) ~[285:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.handler.VoidResponseHandler.handleResponse(VoidResponseHandler.java:34) ~[285:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.SardineImpl.get(SardineImpl.java:756) ~[285:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.SardineImpl.get(SardineImpl.java:741) ~[285:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.SardineImpl.get(SardineImpl.java:732) ~[285:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.SardineImpl.get(SardineImpl.java:145) ~[285:org.openhab.io.caldav:1.13.0]
at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:318) [285:org.openhab.io.caldav:1.13.0]
at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [285:org.openhab.io.caldav:1.13.0]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [107:org.eclipse.smarthome.core.scheduler:0.10.0.oh240]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [107:org.eclipse.smarthome.core.scheduler:0.10.0.oh240]
it’s an Google Calendar iCal Download. When i copy the URL from the caldavio.config File, and enter Username/Password, i got an ical File.
2019-11-06 20:10:26.071 [WARN ] [caldav.internal.job.EventReloaderJob] - Sardine exception reading ics file: 6csjcd9hc4s68bb5cgoj0b9kcos32bb164pmab9i69ijgopjc4qj8o9n6g_google_com
com.github.sardine.impl.SardineException: Unexpected response
at com.github.sardine.impl.handler.ValidatingResponseHandler.validateResponse(ValidatingResponseHandler.java:48) ~[255:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.handler.VoidResponseHandler.handleResponse(VoidResponseHandler.java:34) ~[255:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.SardineImpl.get(SardineImpl.java:756) ~[255:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.SardineImpl.get(SardineImpl.java:741) ~[255:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.SardineImpl.get(SardineImpl.java:732) ~[255:org.openhab.io.caldav:1.13.0]
at com.github.sardine.impl.SardineImpl.get(SardineImpl.java:145) ~[255:org.openhab.io.caldav:1.13.0]
can also be caused by the historicLoadTime setting caldavio:<calendar-id>:historicLoadTime=<minutes>
A large number of my ICS files failed. Once setting was removed, inc from config/org/openhab/caldav*.config file, the problem went away. No idea why as ICS files were successfully validated using an online service.