flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
423 stars 225 forks source link

v2.5.3 always fail OTP validation like 2.5.1 and 2.5.0 #258

Closed italoc closed 3 years ago

italoc commented 3 years ago

Describe the bug can’t validate OTP validation , only in 2.4.6 works correctly

To Reproduce Any clean version of 2.5.0, 2.5.1, 2.5.3

Log

2021-10-24 06:54:34,084 :: ERROR :: Error during activation: {'newversion': '2.0.0', 'newversionurl': 'http://m.inwebo.com/', 'err': 'NOK:FORBIDDEN'} 2021-10-24 06:54:34,084 :: ERROR :: Error during activation: {'newversion': '2.0.0', 'newversionurl': 'http://m.inwebo.com/', 'err': 'NOK:FORBIDDEN'} 2021-10-24 06:54:34,415 :: INFO :: save config change 2021-10-24 06:54:34,415 :: INFO :: save config change 2021-10-24 06:54:34,418 :: ERROR :: remote_refresh_token isn't defined 2021-10-24 06:54:34,418 :: ERROR :: remote_refresh_token isn't defined 2021-10-24 06:54:34,955 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'} 2021-10-24 06:54:34,955 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}

flobz commented 3 years ago

I just retried from a fresh install, it worked for me. The error that you have should be fixed by applying the procedure in the FAQ: https://github.com/flobz/psa_car_controller/blob/master/FAQ.md

italoc commented 3 years ago

Ok now I have ssl cert problem, I will try later

thanks

flobz commented 3 years ago

Try a second time. I had this problem and the second time it worked.

italoc commented 3 years ago

Always same things

2021-10-24 10:15:32,501 :: INFO :: save config change Traceback (most recent call last): File "/psa_car_controller/server.py", line 22, in conf.load_app() File "/psa_car_controller/libs/config.py", line 105, in load_app self.start_remote_control() File "/psa_car_controller/libs/config.py", line 63, in start_remote_control self.myp.start_mqtt() File "/psa_car_controller/my_psacc.py", line 341, in start_mqtt self.mqtt_client.connect(MQTT_SERVER, 8885, 60) File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 914, in connect return self.reconnect() File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 1073, in reconnect sock.do_handshake() File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)

egpall commented 3 years ago

Today I encountered the same problem as italoc, nothing is working for me, last night it was fine. This morning it was at 2.5.1, now at 2.5.3.

2021-10-24 11:12:21,886 :: INFO :: save config change Traceback (most recent call last): File "/psa_car_controller/server.py", line 22, in conf.load_app() File "/psa_car_controller/libs/config.py", line 105, in load_app self.start_remote_control() File "/psa_car_controller/libs/config.py", line 63, in start_remote_control self.myp.start_mqtt() File "/psa_car_controller/my_psacc.py", line 341, in start_mqtt self.mqtt_client.connect(MQTT_SERVER, 8885, 60) File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 914, in connect return self.reconnect() File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 1073, in reconnect sock.do_handshake() File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)

egpall commented 3 years ago

Acabo de intentarlo desde una instalación nueva, funcionó para mí. El error que tiene debe solucionarse aplicando el procedimiento en las preguntas frecuentes: https://github.com/flobz/psa_car_controller/blob/master/FAQ.md

Thanks. It seems to be a problem on the PSA servers.

egpall commented 3 years ago

I have uninstalled and reinstalled and although it has cost I already have it working

DavidFFerreira commented 3 years ago

every update you do to this app, need to be unistall and reinstall again?! because the updates arent work! after I receive this new update, my psa_controller stop working. Even trying a new config is not working anymore

I just retried from a fresh install, it worked for me. The error that you have should be fixed by applying the procedure in the FAQ: https://github.com/flobz/psa_car_controller/blob/master/FAQ.md

flobz commented 3 years ago

No that's not what I meant. I personally update without loosing any data. But I did a fresh install to verify that new user can use the last version. The cert problem come from PSA not my app.