Closed smarthomejunkie closed 1 year ago
Hey there @joostlek, mind taking a look at this issue as it has been labeled with an integration (youtube
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
youtube documentation youtube source (message by IssueLinks)
Might be an issue with another integration, but YouTube, Matter, and Google Sheets are failing to setup. Even rebooted the host without any solution.
Are you mentioning YouTube, Matter and Google sheets because those integrations haven't loaded yet? Ah, just read your comment
What can you find in the logs that might look interesting?
Are you mentioning YouTube, Matter and Google sheets because those integrations haven't loaded yet?
Yes, they give errors like this:
Everything worked fine before the latest subrelease as far as I know.
What can you find in the logs that might look interesting?
Things that I can find are the message in the main topic and below messages:
Config entry 'Matter' for matter integration not ready yet: Failed to connect to matter server; Retrying in background
12:28:59 PM – (WARNING) config_entries.py - message first occurred at 12:28:55 PM and shows up 2 times
Logger: homeassistant.config_entries
Source: config_entries.py:429
First occurred: 12:28:55 PM (2 occurrences)
Last logged: 12:28:59 PM
Config entry 'Matter' for matter integration not ready yet: Failed to connect to matter server; Retrying in background
Config entry 'Home Assistant Website' for version integration not ready yet: Timeout of 10 seconds was reached while fetching version for haio; Retrying in background
===============================================
Error setting up entry Smart Home Junkie for youtube
12:33:28 PM – (ERROR) helpers/config_entry_oauth2_flow.py - message first occurred at 12:33:28 PM and shows up 2 times
Logger: homeassistant.config_entries
Source: helpers/config_entry_oauth2_flow.py:201
First occurred: 12:33:28 PM (2 occurrences)
Last logged: 12:33:28 PM
Error setting up entry Smart Home Junkie for youtube
Error setting up entry Google Sheets for google_sheets
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/youtube/__init__.py", line 29, in async_setup_entry
await auth.check_and_refresh_token()
File "/usr/src/homeassistant/homeassistant/components/youtube/api.py", line 34, in check_and_refresh_token
await self.oauth_session.async_ensure_token_valid()
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 499, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 92, in async_refresh_token
new_token = await self._async_refresh_token(token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 182, in _async_refresh_token
new_token = await self._token_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 201, in _token_request
resp = await session.post(self.token_url, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
return await fut
^^^^^^^^^
asyncio.exceptions.CancelledError
I have no clue, but I am reading the messages and it seems that for some reason your HA instance can't reach Youtube, Matter nor the HA website. You look like you have other integrations that have outbound connections aswell (spotify for example). Could you maybe try to curl, wget or whatever to them from the command line? Just to verify that the pi can get a connection to those services?
I have no clue, but I am reading the messages and it seems that for some reason your HA instance can't reach Youtube, Matter nor the HA website. You look like you have other integrations that have outbound connections aswell (spotify for example). Could you maybe try to curl, wget or whatever to them from the command line? Just to verify that the pi can get a connection to those services?
I just tried curl and can connect to https://www.youtube.com from my Home Assistant Blue.
The problem seems to be solved. I disabled InfluxDB and AdGuard. One of those actions solved the issue for now.
The problem
Some integrations are not starting up anymore.
What version of Home Assistant Core has the issue?
core-2023.6.2
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
YouTube, Matter (beta), Google sheets
Link to integration documentation on our website
https://www.home-assistant.io/integrations/youtube/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response