home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.81k stars 28.94k forks source link

CalDav: Connection pool is full, discarding connection #117927

Open kelvan opened 1 month ago

kelvan commented 1 month ago

The problem

caldav often fails to load (some) of my calendars, the server is a self-hosted nextcloud. I do have around 20 calendars on the server, but only 5 are enabled in the integration (+1 enabled but hidden), I'm not sure if it tries to fetch also the disabled calendars. most of the times reloading the integration helps (for a while) also if it fails to load a calendar it deletes the last state, so sometimes I do have calendar entries and then it is empty

as I'm planning to control my heating depending on "Office" calendar entries it is important having a stable caldav calendar state to decide if it should heat up my homeoffice in the morning or not

What version of Home Assistant Core has the issue?

core-2024.5.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

CalDAV

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: urllib3.connectionpool
Source: /usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py:323
First occurred: 3:47:37 PM (20 occurrences)
Last logged: 4:21:15 PM

Connection pool is full, discarding connection: xxxxxxx.org. Connection pool size: 10

Additional information

No response

home-assistant[bot] commented 1 month ago

caldav documentation caldav source

oekinger commented 4 weeks ago

I have that warning too. There are 8 calendars load via generic integration and 2 per yaml.

Bildschirmfoto von Safari am 08_06_2024, 09_42_02