leikoilja / ha-google-home

Home Assistant Google Home custom component
MIT License
425 stars 73 forks source link

GoogleHome cannot load/SSL error #876

Closed collateral87 closed 3 months ago

collateral87 commented 3 months ago

I use version v1.11.0 in homeassistant 2024.6.1.

Yesterday the integration worked like expected, today i get this strange error: Screenshot_20240607_235713_Home Assistant.jpg

I deleted the integration and tried to setup again (with app password), then i get "password or username incorrect".

corgana commented 3 months ago

Same issue. Tried deleting/re-adding too and got the same error.

cdn4lf commented 3 months ago

I thought I was going crazy. Same issue here. Enabled debugging, but I still only get the error above.

Tried rolling my password and token, no change.

robertoleonardo commented 3 months ago

same issue - and i thought maybe i needed a new master token and tried to run that python script to get one, and it seems to be giving the same issue. so i think it's probably google server side.

cdn4lf commented 3 months ago

@robertoleonardo, Docker container returned a token without any issues

pqpxo commented 3 months ago

Same issue. I'm getting SSL errors for what looks like the domain 'android.clients.google.com'

I've spent a few hours trying work arounds and different methods with no luck.

Error in logs: requests.exceptions.SSLError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))

cameronjust commented 3 months ago

Seeing the same error here. SSL certificate should be valid as I'm using NginxProxyManager for exposing Home Assistant to the internet.

Home Assistant can still trigger Google Home devices to play sounds/voice prompts when automations trigger though.

sp3cialck commented 3 months ago

Same here, and when i tried to login again after removing the integration, it says, invalid master token!

Gtwizzy commented 3 months ago

Same Issue here unfortunately

Jantjuhhh commented 3 months ago

Same issue here.

BenAChilds commented 3 months ago

+1 for me

tvvalbonne commented 3 months ago

+1

lobolobo commented 3 months ago

+1

xs2erwin commented 3 months ago

+1

KapJI commented 3 months ago

I'm unable to repro this issue on any of my setups (local macos, linux debian, haos on x86 or arm64). But it's likely this can be fixed by adding context.load_default_certs() (https://github.com/simon-weber/gpsoauth/issues/57).

If you can repro this issue, please submit a PR to gpsoauth.

And stop posting "+1" if you can't to provide any useful context. You can hit "subscribe" button to get the updates about this issue.

kwkid commented 3 months ago

My issue started after installing 2024.6.1…perhaps just a coincidence

MalteMatthey commented 3 months ago

Yes, the issue appears to be with version 2024.6.1. After downgrading to version 2024.6.0, the problem no longer persists.

xs2erwin commented 3 months ago

Yes, the issue appears to be with version 2024.6.1. After downgrading to version 2024.6.0, the problem no longer persists.

Same here. Got back to 2024.6.0 and lost the problem.

psleutel commented 3 months ago

Yes, the issue appears to be with version 2024.6.1. After downgrading to version 2024.6.0, the problem no longer persists.

ctsdad commented 3 months ago

Hey I am having the same issue . Can anyone advise on how to roll back to the old version? What are the chances this will be fixed through an update soon?

Thanks in advance for any help given

Sorry I just realized that we are talking about rolling back Home Assistant not the Integration Also just saw your response. I did it through a backup I'm hoping that worked.

m3tc0n commented 3 months ago

Hey I am having the same issue . Can anyone advise on how to roll back to the old version? What are the chances this will be fixed through an update soon?

Thanks in advance for any help given

Ssh into HA and use the following command: ha core update --version 2024.6.0

ejpenney commented 3 months ago

I'm unable to repro this issue on any of my setups (local macos, linux debian, haos on x86 or arm64). But it's likely this can be fixed by adding context.load_default_certs() (simon-weber/gpsoauth#57).

If you can repro this issue, please submit a PR to gpsoauth.

And stop posting "+1" if you can't to provide any useful context. You can hit "subscribe" button to get the updates about this issue.

I added that line to gpsoauth as recommended and it works, issue went away. PR created here

ctsdad commented 3 months ago

Hey I am having the same issue . Can anyone advise on how to roll back to the old version? What are the chances this will be fixed through an update soon? Thanks in advance for any help given

Ssh into HA and use the following command: ha core update --version 2024.6.0

Thanks!

Jantjuhhh commented 3 months ago

I'm unable to repro this issue on any of my setups (local macos, linux debian, haos on x86 or arm64). But it's likely this can be fixed by adding context.load_default_certs() (simon-weber/gpsoauth#57). If you can repro this issue, please submit a PR to gpsoauth. And stop posting "+1" if you can't to provide any useful context. You can hit "subscribe" button to get the updates about this issue.

I added that line to gpsoauth as recommended and it works, issue went away. PR created here

in what file do you put this ?

ejpenney commented 3 months ago

It's in the PR I linked. site-packages/gpsoauth/__init__.py

I'm being intentionally vague, because if that doesn't make sense to you I would recommend you revert and wait for the updates. Modifying Python libs in site-packages requires a small amount of expertise, and the method will vary a lot depending on your setup.

michaeldjjohnson commented 3 months ago

I would be grateful to hear of how this can be resolved. I am also unable to obtain a master token. How did everyone here get theirs? Thank you kindly

viertel97 commented 3 months ago

I would be grateful to hear of how this can be resolved. I am also unable to obtain a master token. How did everyone here get theirs? Thank you kindly

https://github.com/simon-weber/gpsoauth#alternative-flow With this you can get the master token

ejpenney commented 3 months ago

Gpsoauth 1.1.1 was released, not sure what needs to happen here, will the new release get picked up without changes?

Omnipius commented 3 months ago

Hard to say. Even with forcing gpsoauth==1.1.1 to be installed on integration setup, I had to use the alternate flow above to get a viable master token. No other approach was effective.

KapJI commented 3 months ago

Version 1.11.1 was released. It should include the fix for SSL verification.

tsew2674 commented 3 months ago

For what it's worth, everything started working for me again after installing 1.11.1. I didn't have to mess with my master token at all, however, I never tried to re-authenticate when the SSL error was present, so that that may be part of it. Thanks all for such a quick resolution!

cimco1990 commented 3 months ago

Is there a way to update manualy? HA is not offering an update to 1.11.1.

tsew2674 commented 3 months ago

Is there a way to update manualy? HA is not offering an update to 1.11.1.

In HACS, select redownload and you should see 1.11.1 as an option

pista73 commented 3 months ago

C'è un modo per aggiornare manualmente? HA non offre un aggiornamento alla versione 1.11.1.

In HACS, seleziona riscarica e dovresti vedere 1.11.1 come opzione

solved...thanks a lot

collateral87 commented 3 months ago

I installed version 1.11.1 and running HA version 2024.6.1 and still cannot setup the integration. Have i miss something?

corgana commented 3 months ago

I was still unable to log in (generic invalid username/password error) but restored a backup where I was logged in, updated the integration, then updated HA and it appears to be working.

collateral87 commented 3 months ago

That means reauthentication doesnt work at the moment? What must happen, that i will work again?

robertoleonardo commented 3 months ago

i think it might help if you update the integration before upgrading to ha os 2024.6.1 -- i had downgrowneded to 2024.6 when the issue started a few days ago, and only updated to .1 after i saw the google home update in hacs and it seems to be working fine.

-- rob lee m: 310.431.1619


From: collateral87 @.> Sent: Monday, June 10, 2024 6:22:10 AM To: leikoilja/ha-google-home @.> Cc: robertoleonardo @.>; Mention @.> Subject: Re: [leikoilja/ha-google-home] GoogleHome cannot load/SSL error (Issue #876)

That means reauthentication doesnt work at the moment? What must happen, that i will work again?

— Reply to this email directly, view it on GitHubhttps://github.com/leikoilja/ha-google-home/issues/876#issuecomment-2158369411, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADELGEYQES6UC3ON552JRLDZGWSAFAVCNFSM6AAAAABI7NGBX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYGM3DSNBRGE. You are receiving this because you were mentioned.Message ID: @.***>

collateral87 commented 3 months ago

I didn't want to restore a backup that was so long ago. I have found another way, which I would like to show here for other people who also don't want to restore a backup but have one: I went into the backup directory --> homeassistant --> data --> .storage --> config_entries. In this file i searched for google_home and then copied out the master token here. With these, I was able to restore the integration in version 2024.6.1 as well.

michaeldjjohnson commented 3 months ago

I now have this issue. I think I need to delete all elements and start again. Could someone guide me here please. Error

Thank you

michaeldjjohnson commented 3 months ago

How do I delete my setup and start all over again please?