Can't get CalDAV to work - Sardine Error 405


I am stuck configuring CalDAV. After getting connection refused errors and fixing them I ran into a new error:

2018-12-30 08:44:02.064 [WARN ] [caldav.internal.job.EventReloaderJob] - Sardine error while loading calendar entries: Unexpected response (405 - Method Not Allowed)

com.github.sardine.impl.SardineException: Unexpected response

	at com.github.sardine.impl.handler.ValidatingResponseHandler.validateResponse( ~[]

	at com.github.sardine.impl.handler.MultiStatusResponseHandler.handleResponse( ~[]

	at com.github.sardine.impl.handler.MultiStatusResponseHandler.handleResponse( ~[]

	at org.apache.http.impl.client.CloseableHttpClient.execute( ~[]

	at org.apache.http.impl.client.CloseableHttpClient.execute( ~[]

	at com.github.sardine.impl.SardineImpl.execute( ~[]

	at com.github.sardine.impl.SardineImpl.list( ~[]

	at com.github.sardine.impl.SardineImpl.list( ~[]

	at com.github.sardine.impl.SardineImpl.list( ~[]

	at ~[]

	at []

	at [107:org.eclipse.smarthome.core.scheduler:0.10.0.oh240]

	at org.quartz.simpl.SimpleThreadPool$ [107:org.eclipse.smarthome.core.scheduler:0.10.0.oh240]

Konfig is:



String      CalDAV_Muell_1       "Erste Tonne [%s]"                          (gTest)       { caldavPersonal="calendar:Muell type:EVENT eventNr:1 value:NAME" }
DateTime    CalDAV_Muell_1_Date  "Datum der Abholung [%1$td.%1$tm.%1$tY]"    (gTest)       { caldavPersonal="calendar:Muell type:EVENT eventNr:1 value:START" }
String      CalDAV_Muell_2       "Zweite Tonne [%s]"                         (gTest)       { caldavPersonal="calendar:Muell type:EVENT eventNr:2 value:NAME" }
DateTime    CalDAV_Muell_2_Date  "Datum der Abholung [%1$td.%1$tm.%1$tY]"    (gTest)       { caldavPersonal="calendar:Muell type:EVENT eventNr:2 value:START" }

Any Ideas here?

Thanks in Advance

Thank you for your response.

Sadly, the linked thread does not help. My Error message is different …

So you deleted your caldavPersoanl.config and caldavio.config files, restarted openHAB and it still does not work?

Yes, thats what I did.

sudo systemctl stop openhab2
<delete files>
sudo systemctl start openhab2

Then I am out of ideas, sorry. I’m using the caldavCommand version …

No problem. Thank you though. :slight_smile:

In your first post you are not mentioning that you are using a caldavPersonal.cfg at all:

You will need it :grinning:

Yes, thank you. I have one. Didn’t have it from start, but now I have it and it didnÄt change the behaviour. :frowning:

Search for that term in this forum, lot of answers. Maybe you can solve it with those.