Closed aleksanderlvr closed 7 months ago
Hey there @allenporter, mind taking a look at this issue as it has been labeled with an integration (google
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
google documentation google source (message by IssueLinks)
Can you tell me what steps you take to get this to happen? e.g. is it for an existing configuration or a setting up new?
On the question: Is there any thing in the error logs, that doesn't look like a home assistant error log message and i'm confused since it mentions cloud flare. Check out https://www.home-assistant.io/docs/configuration/troubleshooting/ for more details on error log messages
The integration worked for 10 days. The only changes I made in between were changing the colors on the calendar. The existing calendar doesn't work, I can't add a new one. After deleting the calendar, I cannot create a new one because I get the message "Timeout establishing connection".
To clarify, i'm asking for additional information from the template that was not included in this issue report:
None of the information in the logs pertains to Google Calendar. If I delete the permissions in config/application_credentials . then I get a integration setup window where I can enter the name, Client ID and Client Secret information, but it does not perform the process. If I don't clear the rights, I get a timeout or "Error Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble". Currently i do not have integration among the installed ones. I don't know if the outage is related, but the time the traffic on console.cloud.google.com stopped coincides with the backup time core_2024.2.5, March 7, 2024
Blue vertical line on chart and Core backup time are 10 min apart.
I can't really tell since the information here doesn't match what i expect, but it sounds like your server is unable to connect to google. Nearly every time i've seen a report like this it is because of an ipv6 configuration or ad blocker.
With the core_2024.2.5 restore, I regained access to google calendar. Core update probably caused some 500 internal error.
OK, surprising. I don't really understand the information you're giving me about what the problem you were seeing or where you were seeing.
What would be helpful to understand is:
(i recommend not trying new things like removing a previously working integration, lets focus on the original problem and get to the bottom of it?)
Allen, thank you for your time and effort. After the effects, I thought it was a problem with Google Calendar because that was the first visible effect, but the matter has other causes and effects. While waiting for the upgrade of the internet package to 1 Gbps, I also performed the Core upgrade. Everything worked, even Google Travel Time via API, only the calendar disappeared. Following your suggestion, I even canceled the IPv6 address with the Internet provider. Later, problems also appeared with other data sources. The graphs became ragged because the data came only intermittently. An extensive search for help on the HA forum didn't help me, nor can I find anything in the logs. With the restore of the previous Core version, HA works as normal as possible, only the Toyota integration becomes non-functional shortly after enrollment.
Can you please add the specific information I was asking for in the previos comment?
I have a similar issue: It seems that a lot of integrations get not working after a poeriod of time. They loose the connection as it seems. Google, Openweather, VW ....
When I reload the integrations, it get back working for a special timeframe. Afterwards the same. Also it get back working from alone ....
All my components are up to date, based on today. I did not change something more.
Attached some logs ...
Logger: homeassistant.components.google.calendar Source: helpers/update_coordinator.py:350 integration: Google Calendar (documentation, issues) First occurred: 11:30:11 AM (5 occurrences) Last logged: 11:30:11 AM
Error fetching Google Privat data: Error communicating with API: Error connecting to API: Cannot connect to host www.googleapis.com:443 ssl:default [Try again] Error fetching Biomüll data: Error communicating with API: Error connecting to API: Cannot connect to host www.googleapis.com:443 ssl:default [Try again] Error fetching Wertstoffsack data: Error communicating with API: Error connecting to API: Cannot connect to host www.googleapis.com:443 ssl:default [Try again] Error fetching Papiermüll data: Error communicating with API: Error connecting to API: Cannot connect to host www.googleapis.com:443 ssl:default [Try again] Error fetching Restmüll data: Error communicating with API: Error connecting to API: Cannot connect to host www.googleapis.com:443 ssl:default [Try again]
Logger: homeassistant.components.openweathermap.weather_update_coordinator Source: helpers/update_coordinator.py:350 integration: OpenWeatherMap (documentation, issues) First occurred: 10:54:37 AM (1 occurrences) Last logged: 10:54:37 AM
Error fetching openweathermap data: HTTPSConnectionPool(host='api.openweathermap.org', port=443): Max retries exceeded with url: /data/2.5/weather?APPID=6ef58e19b43b7a891b500b38c1976701&lang=de&lon=7.808259129524232&lat=49.15410290594424 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d64dd0>: Failed to establish a new connection: [Errno -3] Try again'))
Sounds like a network connectivity issue.
Maybe this messages, but not in general.
I am just looking to my dashboard, openweather and google down, everything else fine …
I never had network issues with ma stable Unify.
Phoenix-DH, can you somehow relate the problems to the HA upgrade or changes to your internet connectivity?
I can imagine yes. I not saw it before … it startet with the lastest HA or supervisor update. I have a display at the wall where I see it imediatelly. I work in homemoffice and have always an eye on the network. Also never figured out issues with.
Phoenix, try entering DNS in settings/system/network/DNS servers in format x.x.x.x, x.x.x.x
@aleksanderlvr Under „Configure network interfaces“? This is set to automatic in my case. When I set to static the DNS will be the same than my HA instance because I switched on my fritz box the DNS to it. I have ADGuard running.
I habe also this: You have configured an HTTPS certificate in Home Assistant. This means that your internal URL needs to be set to a domain covered by the certficate.
I am using SSL wirh external URL.
But all of this was never an issue.
now the issues are also only temporary as it seems. And I did not change anything. Only did the updates.
Just try temporary under IPv4 / DNS servers / type 8.8.8.8, 8.8.4.4
@aleksanderlvr Thanks, will give it a try tomorrow.
Changed it without reboot HA. Still the same. Looking tonthe Dashboard, components cannot get data, dashboard an HA in generall are available. Looking tonthe logs, nearly all components cannot get updates with connection/ssl errors.
Maybe really something general? Did not found an issue.
Will check after HA reboot again.
Issue persists, also with other components. Maybe related to https://github.com/home-assistant/core/issues/113481
I got similar issue with the following error
Timeout fetching xxx@gmail.com data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/calendar/trigger.py", line 254, in _handle_refresh
self._events.extend(await self._fetcher(self._timespan))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/calendar/trigger.py", line 132, in async_get_events
active_events = await fetcher(offset_timespan)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/calendar/trigger.py", line 114, in async_get_events
return await entity.async_get_events(hass, timespan.start, end_time)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 461, in async_get_events
result_items = await self.coordinator.async_get_events(start_date, end_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 363, in async_get_events
result = await self.calendar_service.async_list_events(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gcal_sync/api.py", line 367, in async_list_events
page_result = await get_next_page(None)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gcal_sync/api.py", line 365, in get_next_page
return await self.async_list_events_page(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gcal_sync/api.py", line 381, in async_list_events_page
result = await self._auth.get_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gcal_sync/auth.py", line 101, in get_json
resp = await self.get(url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gcal_sync/auth.py", line 94, in get
resp = await self.request("get", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gcal_sync/auth.py", line 87, in request
return await self._websession.request(method, url, **kwargs, headers=headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 504, in _request
with timer:
File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 735, in __exit__
raise asyncio.TimeoutError from None
TimeoutError
Restart HA doesn't help Restart the OS (the system) solves the problem until it comes back after few days
Is it the same issue?
Do you habe AdGuard running?
https://github.com/hassio-addons/addon-adguard-home/issues/501
No
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 504, in _request with timer: File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 735, in exit raise asyncio.TimeoutError from None TimeoutError
Restart HA doesn't help Restart the OS (the system) solves the problem until it comes back after few days Is it the same issue?
(1) The symptoms / error message is not the same (2) However in both cases it likely means a network misconfiguration (ad blocker, ipv6 misconfiguration, etc). There isn't a home assistant issue here as far as we can tell.
I recommend reacahing out to the community forums for support
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.
Same issues here, 4 networks with vlan tags. Some with gateway and dns, one with IPv6. No issues before 2024.3, now after every update all integrations fail. After reboot only Google calendar and Google home doesn't work.
@axute have details from the issue template above such as messages in the error log? do things work in safe mode with custom integrations disabled?
In my case, I did a complete audit of secure online access. The problem was in the remnants of the settings in HA in the testing of various methods and on the router port forwarding. There were no problems before 2024.3, but then some change caused problems. The calendar was not the only one, it is somehow the most susceptible and the first to show problems. After the audit, other like Toyota data are more consistent.
Not sure I follow the details. Can you be a little more specific?
@axute have details from the issue template above such as messages in the error log? do things work in safe mode with custom integrations disabled?
2024-04-09 00:07:12.344 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Google Kalender for google
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 170, in async_setup_entry
await session.async_ensure_token_valid()
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 523, 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 94, in async_refresh_token
new_token = await self._async_refresh_token(token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 184, in _async_refresh_token
new_token = await self._token_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 203, in _token_request
resp = await session.post(self.token_url, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 504, in _request
with timer:
File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 735, in __exit__
raise asyncio.TimeoutError from None
TimeoutError
I disabled the IPv6 on the only network interface with IPv6. Now I get a new error.
2024-04-10 12:21:20.662 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Google Kalender for google
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 157, in async_setup_entry
await config_entry_oauth2_flow.async_get_config_entry_implementation(
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 425, in async_get_config_entry_implementation
raise ValueError("Implementation not available")
ValueError: Implementation not available
PS: Google Home integration now works, but not google calendar
Sorry, I setuped all new and now it works (without IPv6 enabled).
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.
The problem
Google Calendar is not working. The problem somehow coincides with the HA upgrade to version 2024.3
What version of Home Assistant Core has the issue?
2024.3
What was the last working version of Home Assistant Core?
2024.2
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Google Calendar
Link to integration documentation on our website
https://www.home-assistant.io/integrations/google
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response