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
74.14k stars 31.12k forks source link

CalDAV integration after 2024.4.3 with no entities #115626

Closed djangoboy69 closed 3 months ago

djangoboy69 commented 7 months ago

The problem

After installing core 2024.4.3 the calendars from my nextcloud were disabled in the Caldav integration. After deleting the integration and configure it new, there were no entities.

What version of Home Assistant Core has the issue?

core-2024.4.3

What was the last working version of Home Assistant Core?

core-2024.4.2

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

2024-04-14 19:49:21.718 DEBUG (MainThread) [caldav] url: https://xxx.xxx.xx/remote.php/dav
2024-04-14 19:49:21.719 DEBUG (MainThread) [caldav] self.url: https://xxx.xxx.xx/remote.php/dav
2024-04-14 19:49:21.720 DEBUG (SyncWorker_7) [caldav] sending request - method=PROPFIND, url=https://xxx.xxx.xx/remote.php/dav, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:current-user-principal/></D:prop></D:propfind>
2024-04-14 19:49:22.093 DEBUG (SyncWorker_7) [caldav] server responded with 401 Unauthorized
2024-04-14 19:49:22.094 DEBUG (SyncWorker_7) [caldav] response headers: {'Date': 'Sun, 14 Apr 2024 17:49:21 GMT', 'Server': 'Apache', 'Expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'Cache-Control': 'no-store, no-cache, must-revalidate', 'Pragma': 'no-cache', 'Content-Security-Policy': "default-src 'none';", 'WWW-Authenticate': 'Basic realm="NextCloudPi", charset="UTF-8"', 'Set-Cookie': 'oc_sessionPassphrase=reix2%2FriMr%2BmR8BZjdvKoUG8ODP7PDdciD2mXVPSWsnMZGeFKx%2BHxBBH6GIzHzynHyt%2FXeXCL7z9%2FJtB%2Bht16wnxDZBF6mzUqMtzbwgcc1T7u69VNFmMvsl7NrPqTWgo; path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax, __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict, oc6w00eqtw3r=jn7t20d9npj0pnuv3kv68gssf0; path=/; secure; HttpOnly; SameSite=Lax', 'Strict-Transport-Security': 'max-age=15768000; includeSubDomains; preload', 'Referrer-Policy': 'no-referrer', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-Robots-Tag': 'noindex, nofollow', 'X-XSS-Protection': '1; mode=block', 'Upgrade': 'h2', 'Connection': 'Upgrade, Keep-Alive', 'Keep-Alive': 'timeout=5, max=100', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/xml; charset=utf-8'}
2024-04-14 19:49:22.094 DEBUG (SyncWorker_7) [caldav] response status: 0
2024-04-14 19:49:22.098 DEBUG (SyncWorker_7) [caldav] b'<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">\n  <s:exception>Sabre\\DAV\\Exception\\NotAuthenticated</s:exception>\n  <s:message>No public access to this resource., No \'Authorization: Basic\' header found. Either the client didn\'t send one, or the server is misconfigured, No \'Authorization: Bearer\' header found. Either the client didn\'t send one, or the server is mis-configured, No \'Authorization: Basic\' header found. Either the client didn\'t send one, or the server is misconfigured</s:message>\n</d:error>\n'
2024-04-14 19:49:22.098 DEBUG (SyncWorker_7) [caldav] b'<?xml version="1.0" encoding="utf-8"?>\n<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">\n  <s:exception>Sabre\\DAV\\Exception\\NotAuthenticated</s:exception>\n  <s:message>No public access to this resource., No \'Authorization: Basic\' header found. Either the client didn\'t send one, or the server is misconfigured, No \'Authorization: Bearer\' header found. Either the client didn\'t send one, or the server is mis-configured, No \'Authorization: Basic\' header found. Either the client didn\'t send one, or the server is misconfigured</s:message>\n</d:error>\n'
2024-04-14 19:49:22.098 DEBUG (SyncWorker_7) [caldav] sending request - method=PROPFIND, url=https://xxx.xxx.xx/remote.php/dav, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:current-user-principal/></D:prop></D:propfind>
2024-04-14 19:49:29.008 DEBUG (SyncWorker_7) [caldav] server responded with 207 Multi-Status
2024-04-14 19:49:29.009 DEBUG (SyncWorker_7) [caldav] response headers: {'Date': 'Sun, 14 Apr 2024 17:49:22 GMT', 'Server': 'Apache', 'Content-Security-Policy': "default-src 'none';", 'Expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'Cache-Control': 'no-store, no-cache, must-revalidate', 'Pragma': 'no-cache', 'Vary': 'Brief,Prefer', 'DAV': '1, 3, extended-mkcol, access-control, calendarserver-principal-property-search, nextcloud-checksum-update, nc-calendar-search, nc-enable-birthday-calendar', 'X-Request-Id': 'ZhwXIsXVWc-6cRRhMiNv_QAAAAc', 'X-Debug-Token': 'ZhwXIsXVWc-6cRRhMiNv_QAAAAc', 'Content-Encoding': 'gzip', 'Set-Cookie': 'oc6w00eqtw3r=gupkr6lf78o7c71rn7270qri4d; path=/; secure; HttpOnly; SameSite=Lax, cookie_test=test; expires=Sun, 14-Apr-2024 18:49:28 GMT; Max-Age=3600', 'Strict-Transport-Security': 'max-age=15768000; includeSubDomains; preload', 'Referrer-Policy': 'no-referrer', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-Robots-Tag': 'noindex, nofollow', 'X-XSS-Protection': '1; mode=block', 'Keep-Alive': 'timeout=5, max=99', 'Connection': 'Keep-Alive', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/xml; charset=utf-8'}
2024-04-14 19:49:29.009 DEBUG (SyncWorker_7) [caldav] response status: 0
2024-04-14 19:49:29.011 DEBUG (SyncWorker_7) [caldav] b'<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">\n  <d:response>\n    <d:href>/remote.php/dav/</d:href>\n    <d:propstat>\n      <d:prop>\n        <d:current-user-principal>\n          <d:href>/remote.php/dav/principals/users/ab2/</d:href>\n        </d:current-user-principal>\n      </d:prop>\n      <d:status>HTTP/1.1 200 OK</d:status>\n    </d:propstat>\n  </d:response>\n</d:multistatus>\n'
2024-04-14 19:49:29.011 DEBUG (SyncWorker_7) [caldav] b'<?xml version="1.0"?>\n<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns"><d:response><d:href>/remote.php/dav/</d:href><d:propstat><d:prop><d:current-user-principal><d:href>/remote.php/dav/principals/users/ab2/</d:href></d:current-user-principal></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>\n'
2024-04-14 19:49:29.016 DEBUG (SyncWorker_37) [caldav] sending request - method=PROPFIND, url=https://xxx.xxx.xxremote.php/dav/principals/users/ab2/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><C:calendar-home-set/></D:prop></D:propfind>
2024-04-14 19:49:29.020 DEBUG (SyncWorker_20) [caldav] sending request - method=PROPFIND, url=https://xxx.xxx.xx/remote.php/dav/principals/users/ab2/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><C:calendar-home-set/></D:prop></D:propfind>

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 7 months ago

caldav documentation caldav source

djangoboy69 commented 6 months ago

When I configure it in the configuration.yaml, then I get the entities, but than I had no state for allday events.

When I use the caldav integeration over the add integration button, than there no calendar entities.

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.