CalDav Binding Synology Calendar Range start must be befor range

Hi guys,
I try to read my calendar entries from my Synology caldav-server. I always get this error message in the log file.

Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end

Has anyone ever done this before?

You’d need to supply the rest of the error message.

But it sounds like you have a configuration problem.

Thank you for your replay.
That’s are my config:

caldavCommand.config

caldavCommand:readCalendars=command

caldavPersonal.config

caldavPersonal:usedCalendars=nadinenicki

caldavio.config

NadineNicki:disableCertificateVerification=“true”
NadineNicki:password=“password”
NadineNicki:preloadTime=“10080”
NadineNicki:reloadInterval=“1”
NadineNicki:url=“https://IP:5001/caldav.php/Kalender/home/
NadineNicki:username=“username”
service.pid=“org.openhab.caldavio”
timeZone=“Europe/Berlin”

calendar.items

String OfficeCalName0 “Termin jetzt [%s]” { caldavPersonal=“calendar:nadinenicki type:ACTIVE eventNr:1 value:NAME” } //eventNr for concurrent events
DateTime OfficeCalTime0 “Beginn [%1$tT, %1$td.%1$tm.%1$tY]” { caldavPersonal=“calendar:nadinenicki type:ACTIVE eventNr:1 value:START” } //eventNr for concurrent events
String OfficeCalName1 “nächster Termin [%s]” { caldavPersonal=“calendar:nadinenicki type:UPCOMING eventNr:1 value:NAME” }
DateTime OfficeCalTime1 “Beginn [%1$tT, %1$td.%1$tm.%1$tY]” { caldavPersonal=“calendar:nadinenicki type:UPCOMING eventNr:1 value:START” }
String OfficeCalName2 “übernächster Termin [%s]” { caldavPersonal=“calendar:nadinenicki type:UPCOMING eventNr:2 value:NAME” }
DateTime OfficeCalTime2 “Beginn [%1$tT, %1$td.%1$tm.%1$tY]” { caldavPersonal=“calendar:nadinenicki type:UPCOMING eventNr:2 value:START” }

2018-03-03 08:31:07.305 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 08:32:07.140 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 08:33:07.218 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 08:34:07.435 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 08:34:53.694 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2018-03-03 08:34:53.758 [ERROR] [.service.internal.HttpServiceStarted] - Could not start the servlet context for context path []
java.net.BindException: Address already in use
	at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
	at sun.nio.ch.Net.bind(Net.java:433) [?:?]
	at sun.nio.ch.Net.bind(Net.java:425) [?:?]
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) [?:?]
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) [?:?]
	at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:351) [87:org.eclipse.jetty.server:9.3.22.v20171030]
	at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:319) [87:org.eclipse.jetty.server:9.3.22.v20171030]
	at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) [87:org.eclipse.jetty.server:9.3.22.v20171030]
	at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:235) [87:org.eclipse.jetty.server:9.3.22.v20171030]
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [90:org.eclipse.jetty.util:9.3.22.v20171030]
	at org.eclipse.jetty.server.Server.doStart(Server.java:401) [87:org.eclipse.jetty.server:9.3.22.v20171030]
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [90:org.eclipse.jetty.util:9.3.22.v20171030]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:329) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:250) [192:org.ops4j.pax.web.pax-web-runtime:6.0.7]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerResources(HttpServiceStarted.java:299) [192:org.ops4j.pax.web.pax-web-runtime:6.0.7]
	at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerResources(HttpServiceProxy.java:72) [192:org.ops4j.pax.web.pax-web-runtime:6.0.7]
	at org.openhab.ui.habpanel.internal.HABPanelDashboardTile.activate(HABPanelDashboardTile.java:53) [199:org.openhab.ui.habpanel:2.3.0.201802202333]
	at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:229) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:650) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:506) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:307) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:299) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:298) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:109) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823) [42:org.apache.felix.scr:2.0.12]
	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) [?:?]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) [?:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619) [?:?]
	at com.eclipsesource.jaxrs.publisher.internal.ResourceTracker.addingService(ResourceTracker.java:39) [15:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [?:?]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [?:?]
	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) [?:?]
	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109) [?:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:915) [?:?]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225) [?:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464) [?:?]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:887) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:874) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:132) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:941) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:741) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:670) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:609) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.configurationUpdated(ConfigurableComponentHolder.java:426) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:284) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$1.configurationEvent(RegionConfigurationSupport.java:89) [42:org.apache.felix.scr:2.0.12]
	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:2090) [7:org.apache.felix.configadmin:1.8.16]
	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:2058) [7:org.apache.felix.configadmin:1.8.16]
	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) [7:org.apache.felix.configadmin:1.8.16]
	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) [7:org.apache.felix.configadmin:1.8.16]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-03-03 08:34:53.773 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

Thanks for your help.

Check to see if the events you’re trying to load are zero-length (eg. starts and ends at 09:00:00).
If so, try changing the end times to be different than the start time, and see if this error goes away.

A debug log could be helpful in showing the values that are being used.

Well, there’s actually an event in my calendar every day. They also start before they end.
How exactly does this work with the debug log file? I am still completely new to openHab. Caldav is my first project.

Can you tell me where I can set it, or where I can find the debug. log?

Thank you very much.

Docs about logging.

You’ll want to set all 3 packages for logging:

log:set TRACE org.openhab.io.caldav
log:set TRACE org.openhab.binding.caldav-command
log:set TRACE org.openhab.binding.caldav-personal

After these are setup, you’ll want to wait for the error to occur at least once, then upload the openhab.log log file.

I set logging for all 3 packages in this file org.ops4j.pax.logging.cfg. Is this right?
The last three rows.

# Common pattern layout for appenders
#log4j2.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n

# Root logger
log4j2.rootLogger.level = WARN
log4j2.rootLogger.appenderRefs = out, osgi
log4j2.rootLogger.appenderRef.out.ref = LOGFILE
log4j2.rootLogger.appenderRef.osgi.ref = OSGI

# Karaf Shell logger
log4j2.logger.shell.name = org.apache.karaf.shell.support
log4j2.logger.shell.level = OFF
log4j2.logger.shell.appenderRefs = stdout
log4j2.logger.shell.appenderRef.stdout.ref = STDOUT

# Security audit logger
log4j2.logger.audit.name = org.apache.karaf.jaas.modules.audit
log4j2.logger.audit.level = INFO
log4j2.logger.audit.additivity = false
log4j2.logger.audit.appenderRefs = audit
log4j2.logger.audit.appenderRef.audit.ref = AUDIT

# openHAB specific logger configuration

log4j2.logger.openhab.name = org.openhab
log4j2.logger.openhab.level = INFO

log4j2.logger.smarthome.name = org.eclipse.smarthome
log4j2.logger.smarthome.level = INFO

log4j2.logger.smarthomeItemStateEvent.name = smarthome.event.ItemStateEvent
log4j2.logger.smarthomeItemStateEvent.level = ERROR
log4j2.logger.smarthomeItemAddedEvent.name = smarthome.event.ItemAddedEvent
log4j2.logger.smarthomeItemAddedEvent.level = ERROR
log4j2.logger.smarthomeItemRemovedEvent.name = smarthome.event.ItemRemovedEvent
log4j2.logger.smarthomeItemRemovedEvent.level = ERROR
log4j2.logger.smarthomeThingStatusInfoEvent.name = smarthome.event.ThingStatusInfoEvent
log4j2.logger.smarthomeThingStatusInfoEvent.level = ERROR
log4j2.logger.smarthomeThingAddedEvent.name = smarthome.event.ThingAddedEvent
log4j2.logger.smarthomeThingAddedEvent.level = ERROR
log4j2.logger.smarthomeThingRemovedEvent.name = smarthome.event.ThingRemovedEvent
log4j2.logger.smarthomeThingRemovedEvent.level = ERROR
log4j2.logger.smarthomeInboxUpdatedEvent.name = smarthome.event.InboxUpdatedEvent
log4j2.logger.smarthomeInboxUpdatedEvent.level = ERROR

log4j2.logger.events.name = smarthome.event
log4j2.logger.events.level = INFO
log4j2.logger.events.additivity = false
log4j2.logger.events.appenderRefs = event
log4j2.logger.events.appenderRef.event.ref = EVENT
log4j2.logger.events.appenderRef.osgi.ref = OSGI

log4j2.logger.jupnp.name = org.jupnp
log4j2.logger.jupnp.level = ERROR

log4j2.logger.jmdns.name = javax.jmdns
log4j2.logger.jmdns.level = ERROR

# This suppresses all Maven download issues from the log when doing feature installations
# as we are logging errors ourselves in a nicer way anyhow.
log4j2.logger.paxurl.name = org.ops4j.pax.url.mvn.internal.AetherBasedResolver
log4j2.logger.paxurl.level = ERROR

# Filters known issues of pax-web (issue link to be added here).
# Can be removed once the issues are resolved in an upcoming version.
log4j2.logger.paxweb.name = org.ops4j.pax.web.pax-web-runtime
log4j2.logger.paxweb.level = OFF

# Filters known issues of lsp4j, see
# https://github.com/eclipse/smarthome/issues/4639
# https://github.com/eclipse/smarthome/issues/4629
# https://github.com/eclipse/smarthome/issues/4643
# Can be removed once the issues are resolved in an upcoming version.
log4j2.logger.lsp4j.name = org.eclipse.lsp4j
log4j2.logger.lsp4j.level = OFF

# Filters known issues of KarServiceImpl, see
# https://github.com/openhab/openhab-distro/issues/519#issuecomment-351944506
# Can be removed once the issues are resolved in an upcoming version.
log4j2.logger.karservice.name = org.apache.karaf.kar.internal.KarServiceImpl
log4j2.logger.karservice.level = ERROR


# Appenders configuration

# Console appender not used by default (see log4j2.rootLogger.appenderRefs)
log4j2.appender.console.type = Console
log4j2.appender.console.name = STDOUT
log4j2.appender.console.layout.type = PatternLayout
log4j2.appender.console.layout.pattern = %d{HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n

# Rolling file appender
log4j2.appender.out.type = RollingRandomAccessFile
log4j2.appender.out.name = LOGFILE
log4j2.appender.out.fileName = ${openhab.logdir}/openhab.log
log4j2.appender.out.filePattern = ${openhab.logdir}/openhab.log.%i
log4j2.appender.out.immediateFlush = true
log4j2.appender.out.append = true
log4j2.appender.out.layout.type = PatternLayout
log4j2.appender.out.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n
log4j2.appender.out.policies.type = Policies
log4j2.appender.out.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.out.policies.size.size = 16MB

# Event log appender
log4j2.appender.event.type = RollingRandomAccessFile
log4j2.appender.event.name = EVENT
log4j2.appender.event.fileName = ${openhab.logdir}/events.log
log4j2.appender.event.filePattern = ${openhab.logdir}/events.log.%i
log4j2.appender.event.immediateFlush = true
log4j2.appender.event.append = true
log4j2.appender.event.layout.type = PatternLayout
log4j2.appender.event.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%-26.26c] - %m%n
log4j2.appender.event.policies.type = Policies
log4j2.appender.event.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.event.policies.size.size = 16MB

# Audit file appender
log4j2.appender.audit.type = RollingRandomAccessFile
log4j2.appender.audit.name = AUDIT
log4j2.appender.audit.fileName = ${openhab.logdir}/audit.log
log4j2.appender.audit.filePattern = ${openhab.logdir}/audit.log.%i
log4j2.appender.audit.append = true
log4j2.appender.audit.layout.type = PatternLayout
log4j2.appender.audit.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n
log4j2.appender.audit.policies.type = Policies
log4j2.appender.audit.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.audit.policies.size.size = 8MB

# OSGi appender
log4j2.appender.osgi.type = PaxOsgi
log4j2.appender.osgi.name = OSGI
log4j2.appender.osgi.filter = *

log:set TRACE org.openhab.io.caldav
log:set TRACE org.openhab.binding.caldav-command
log:set TRACE org.openhab.binding.caldav-personal

But somehow only the same message always appears in the log file.

2018-03-03 16:45:07.186 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:46:07.174 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:47:07.172 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:48:07.157 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:49:07.169 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:50:07.182 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:51:07.180 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:52:07.312 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:53:07.146 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
2018-03-03 16:54:07.181 [WARN ] [caldav.internal.job.EventReloaderJob] - Error while loading calendar entries: Range start must be before range end
java.lang.IllegalArgumentException: Range start must be before range end
	at net.fortuna.ical4j.model.DateRange.<init>(DateRange.java:71) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Period.<init>(Period.java:88) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:349) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:398) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:320) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [210:org.openhab.io.caldav:1.12.0.201802250928]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [115:org.eclipse.smarthome.core.scheduler:0.10.0.201802191927]

You can’t call log:set in a config file.

Then where do I have to do that?

Read the docs that I linked.

I did. I have no idea in which console to enter the commands. That is not described anywhere.

Console docs

My openHab runs on my Synology NAS. I still don’t understand how to get there with the console. Has anyone ever done this before?

Can nobody help???