core icon indicating copy to clipboard operation
core copied to clipboard

Google Assistant can't connect to Google on every restart

Open hmmbob opened this issue 3 years ago • 23 comments

The problem

Since 2021.7.0b0 I find this error in my logs at every single restart of HA:

2021-07-02 09:08:46 ERROR (MainThread) [homeassistant.components.google_assistant.http] Could not contact https://homegraph.googleapis.com/v1/devices:requestSync

I can trigger the sync manually from HA services and from my phone without any problems showing. I do see DNS requests for those syncs, but I do not see a DNS request for the one throwing the error (possibly meaning it doesn't even leave the box/container).

I am using a manual setup of Assistant (not Nabu Casa).

What is version of Home Assistant Core has the issue?

core-2021.7.0b0

What was the last working version of Home Assistant Core?

core-2021.6.6

What type of installation are you running?

Home Assistant Container

Integration causing the issue

google_assistant

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_assistant/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

hmmbob avatar Jul 02 '21 07:07 hmmbob

cloud documentation cloud source (message by IssueLinks)

Hey there @home-assistant/cloud, mind taking a look at this issue as its been labeled with an integration (cloud) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

Still happening on 2021.7.0b4

hmmbob avatar Jul 06 '21 15:07 hmmbob

Issue remains on 2021.7.1

2021-07-09 10:06:47 ERROR (MainThread) [homeassistant.components.google_assistant.http] Could not contact https://homegraph.googleapis.com/v1/devices:requestSync

hmmbob avatar Jul 09 '21 08:07 hmmbob

I am having the same issue. I looked into the Google Cloud logs and attached the results.

timothygee avatar Jul 18 '21 06:07 timothygee

My apologies. My error was a http setup error

timothygee avatar Jul 20 '21 10:07 timothygee

Issue still persists on 2021.10.10

kerta1n avatar Oct 08 '21 17:10 kerta1n

Interestingly enough, I'm not seeing this anymore for some now

hmmbob avatar Oct 10 '21 12:10 hmmbob

Issue remains on 2021.11.1

porebas avatar Nov 08 '21 09:11 porebas

Same error and i can not link my google home app with home assitent

kiam001 avatar Nov 16 '21 10:11 kiam001

Logger: homeassistant.components.google_assistant.http Source: components/google_assistant/http.py:208 Integration: Google Assistant (documentation, issues) First occurred: 10:45:37 (4 occurrences) Last logged: 11:24:31

Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404 Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 404

kiam001 avatar Nov 16 '21 10:11 kiam001

Same error, HA 2021.12.1: Logger: homeassistant.components.google_assistant.http Source: components/google_assistant/http.py:201 Integration: Google Assistant (documentation, issues) First occurred: 5:32:45 PM (17 occurrences) Last logged: 5:51:36 PM

Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404

new-kirte avatar Dec 16 '21 14:12 new-kirte

Same on 2021.12.8

Logger: homeassistant.components.google_assistant.http
Source: components/google_assistant/http.py:201
Integration: Google Assistant (documentation, issues)
First occurred: 5 January 2022, 21:51:42 (38 occurrences)
Last logged: 06:44:57

Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404

TTLucian avatar Jan 06 '22 05:01 TTLucian

Same here after a restart:

2022-02-23 08:44:15 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500

gvdhoven avatar Feb 23 '22 07:02 gvdhoven

I'm experiencing the same issue on HomeAssistant restart.

version: 2022.3.2

I'm able to perform a Google Assistant device sync after reboot without encountering any errors. I've tried adding new HA devices to Google Home with no issues. I'm not able to recreate the error unless I perform a reboot of HomeAssistant.

Logger: homeassistant.components.google_assistant.http
Source: components/google_assistant/http.py:214
Integration: Google Assistant (documentation, issues)
First occurred: 3:21:51 PM (1 occurrences)
Last logged: 3:21:51 PM

Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500

dahlbergc avatar Mar 06 '22 23:03 dahlbergc

I haven't seen this issue in a while, so intending to close it. Anyone else still seeing this after all recent updates?

hmmbob avatar Jun 29 '22 08:06 hmmbob

Logger: homeassistant.components.google_assistant.http
Source: components/google_assistant/http.py:217
Integration: Google Assistant (documentation, issues)
First occurred: 11:11:39 (1 occurrences)
Last logged: 11:11:39

Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 400

On 2022.7.3

theocoutu avatar Jul 12 '22 16:07 theocoutu

After the restart from upgrading to 2022.7.3

Logger: homeassistant.components.google_assistant.http
Source: components/google_assistant/http.py:217
Integration: Google Assistant ([documentation](https://www.home-assistant.io/integrations/google_assistant), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+google_assistant%22))
First occurred: 08:47:06 (1 occurrences)
Last logged: 08:47:06
Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404

medains avatar Jul 13 '22 08:07 medains

022-08-12 11:48:56.419 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 400

when using the button press : Synchronize Devices changed to August 12, 2022 at 11:47 triggered by service button.press 11:47:37 - 5 minutes ago - ronald

DoerakkerHA avatar Aug 12 '22 09:08 DoerakkerHA

I've been having this problem for some time too.. does anyone have a solution for this? Notifications come up with a reboot or device synchronization.

Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 400 Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 400

Rocker20 avatar Aug 26 '22 14:08 Rocker20

I get both issues failed sync and failed state, it seems they are starting before the external url is available because nginx proxy manager hasn't start yet. nginx starts almost immediately after, but the window for the error has been created.

I get a similar issue with cert expiry see also #78829

Is it CONF_HOST or nginx that is the problem?

The error

Logger: homeassistant.components.google_assistant.http
Source: components/google_assistant/http.py:163
Integration: Google Assistant (documentation, issues)
First occurred: 14:15:10 (1 occurrences)
Last logged: 14:15:10

Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500

Supervisor log

[04:12:43] INFO: Starting local supervisor watchdog...
22-09-21 04:12:46 INFO (MainThread) [__main__] Initializing Supervisor setup
....
....
....
....
22-09-21 13:12:25 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/hassio-addons/nginxproxymanager/aarch64 with version 0.12.2
22-09-21 13:14:14 INFO (SyncWorker_2) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/nginxproxymanager/aarch64 with version 0.12.2
22-09-21 13:14:28 INFO (MainThread) [supervisor.api.middleware.security] /dns/info access from a0d7b954_nginxproxymanager
22-09-21 14:10:38 INFO (SyncWorker_3) [supervisor.docker.interface] Stopping addon_a0d7b954_nginxproxymanager application
22-09-21 14:10:43 INFO (SyncWorker_3) [supervisor.docker.interface] Cleaning addon_a0d7b954_nginxproxymanager application
22-09-21 14:13:16 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/hassio-addons/nginxproxymanager/aarch64 with version 0.12.2
22-09-21 14:15:08 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/nginxproxymanager/aarch64 with version 0.12.2
22-09-21 14:15:21 INFO (MainThread) [supervisor.api.middleware.security] /dns/info access from a0d7b954_nginxproxymanager

habuild avatar Sep 21 '22 05:09 habuild