robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
339 stars 61 forks source link

VW CarNet login fails, URL unrachable #46

Closed alexanderpett closed 4 years ago

alexanderpett commented 5 years ago

Hi.

So I have used this plugin for a little over three monts now, and out of the blue it suddently started throwing errors. All of the errors are about login failed, and that the URL is unreachable.

Here's an example: Failed to login to carnet, HTTPSConnectionPool(host='www.portal.volkswagen-we.com', port=443): Max retries exceeded with url: //portal/en_GB/web/guest/home (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99aeb89910>, 'Connection to www.portal.volkswagen-we.com timed out. (connect timeout=60)'))

The URL in question is actually unreachable in my web browser as well, so I'm guessing it's just a matter of volkswagen messing with their domain names.

Caibuk commented 5 years ago

Same problem here. Log is full of "Failed to login to carnet" entries every couple of minutes. How can I help to get it working again? Could it be a temporary problem on VW's side?

alexanderpett commented 4 years ago

Same problem here. Log is full of "Failed to login to carnet" entries every couple of minutes. How can I help to get it working again? Could it be a temporary problem on VW's side?

I think VW has changed the log-in domain. When I log in using the usual website (https://www.portal.volkswagen-we.com/), I get redirected to https://identity.vwgroup.io/ That's new, and probably the reason for this integration not being able to log in....

Matshog commented 4 years ago

Same problem here. :( The integration works really well otherwise so thanks for that! :)

tubalainen commented 4 years ago

Confirmed. VW has changed something again ... :/ The whole component would need to be updated. Hope @robinostlund can help the community again with his ninjasuperskillz! <3

HikingMike commented 4 years ago

You guys think this relates to the same problem? Or did I brake something during my Raspbian upgrade and now having caused myself another problem?

Failed to login to carnet, HTTPSConnectionPool(host='www.portal.volkswagen-we.com', port=443): Max retries exceeded with url: //portal/en_GB/web/guest/home (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

knudsvik commented 4 years ago

+1

rayzilt commented 4 years ago

There seems to be a problem with the certificate, see:

https://github.com/robinostlund/volkswagencarnet/issues/9#issuecomment-561363499

cathiele commented 4 years ago

This workaround works for me:

https://github.com/robinostlund/volkswagencarnet/issues/9#issuecomment-562937042

added the cert to cacert.pem in /usr/local/lib/python3.7/site-packages/certifi inside the docker container

tubalainen commented 4 years ago

This workaround works for me:

robinostlund/volkswagencarnet#9 (comment)

added the cert to cacert.pem in /usr/local/lib/python3.7/site-packages/certifi inside the docker container

Great stuff! That did the trick! <3

alexanderpett commented 4 years ago

Guys, where do you add the certificate? I tried to just paste it in at the end of the cacert.perm file, but that didn't work at all...

cathiele commented 4 years ago

Guys, where do you add the certificate? I tried to just paste it in at the end of the cacert.perm file, but that didn't work at all...

i am using the Docker Image homeassistant/raspberrypi3-homeassistant:latest (not HASS.IO) and added it inside the container with docker exec -it <container id> /bin/sh

HikingMike commented 4 years ago

Guys, where do you add the certificate? I tried to just paste it in at the end of the cacert.perm file, but that didn't work at all...

i am using the Docker Image homeassistant/raspberrypi3-homeassistant:latest (not HASS.IO) and added it inside the container with docker exec -it <container id> /bin/sh

In my case (running a virtual environment) run "python -m certifi" to find the path. In my case "/srv/homeassistant/lib/python3.7/site-packages/certifi/cacert.pem". Copied it at the end and restarted Home Assistant. Of course, have to enter the virtual environment first.

Alwik commented 4 years ago

Any hints for finding this file in hass.io would be appreciated!

nenadmilano commented 4 years ago

This workaround works for me:

robinostlund/volkswagencarnet#9 (comment)

added the cert to cacert.pem in /usr/local/lib/python3.7/site-packages/certifi inside the docker container

THANKS! this worked for me - you guys saved my weekend :)

tubalainen commented 4 years ago

Any hints for finding this file in hass.io would be appreciated!

It would require you to tinker with the home-assistant docker container of hass.io .. how to "break in to" that container is explained here: https://developers.home-assistant.io/docs/en/hassio_debugging.html

I do not know of any easy/simple way to access the files at this point :/

robinostlund commented 4 years ago

Try latest version :)

jonaswikstrom commented 4 years ago

Sorry for opening this thread again. When adding the cert, the component worked great again for a couple of days then suddenly it can't log on again. Anyone else have this problem?

Matshog commented 4 years ago

Yes, I have the exactly same problem :(

nicx commented 4 years ago

same here, the component worked a few days but again stopped with login problems. but perhaps this is now related to another reason and not the cert issue?!

robinostlund commented 4 years ago

Have you logged on trough your webbrowser and approved those questions that vw asks for? 😊

nicx commented 4 years ago

@robinostlund that fix was easy, thank you! 👍