flobz / psa_car_controller

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

Add-on crashes on adding user configuration #866

Closed inftygit closed 1 month ago

inftygit commented 2 months ago

Hello, I installed the add-on and configured the port (5000). The add-on starts and shows the User Interface. After adding my user configuration and hitting "Submit" the add-on crashes with these messages in the log. What do I wrong/am I missing?

Containerised psa_car_controller loading... 2024-04-26 17:07:13,972 :: INFO :: App version 3.5.0 2024-04-26 17:07:13,982 :: ERROR :: No config file 2024-04-26 17:07:14,041 :: WARNING :: Can't get language 2024-04-26 17:07:22,039 :: INFO :: update_data 2024-04-26 17:07:22,522 :: INFO :: * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 2024-04-26 17:07:59,228 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "GET / HTTP/1.1" 200 - 2024-04-26 17:07:59,404 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "GET /_dash-layout HTTP/1.1" 200 - 2024-04-26 17:07:59,413 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "GET /_dash-dependencies HTTP/1.1" 200 - 2024-04-26 17:07:59,467 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "POST /_dash-update-component HTTP/1.1" 200 - 2024-04-26 17:07:59,518 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "GET /assets/images/settings.svg HTTP/1.1" 200 - 2024-04-26 17:07:59,529 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "GET /config_login HTTP/1.1" 200 - 2024-04-26 17:07:59,678 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "GET /_dash-layout HTTP/1.1" 200 - 2024-04-26 17:07:59,687 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "GET /_dash-dependencies HTTP/1.1" 200 - 2024-04-26 17:07:59,747 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "POST /_dash-update-component HTTP/1.1" 200 - 2024-04-26 17:07:59,843 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "POST /_dash-update-component HTTP/1.1" 204 - 2024-04-26 17:07:59,857 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "POST /_dash-update-component HTTP/1.1" 204 - 2024-04-26 17:07:59,867 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:07:59] "POST /_dash-update-component HTTP/1.1" 200 - 2024-04-26 17:09:01,045 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:00] "GET / HTTP/1.1" 200 - 2024-04-26 17:09:04,545 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:04] "GET /_dash-layout HTTP/1.1" 200 - 2024-04-26 17:09:04,565 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:04] "GET /_dash-dependencies HTTP/1.1" 200 - 2024-04-26 17:09:04,853 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:04] "POST /_dash-update-component HTTP/1.1" 200 - 2024-04-26 17:09:04,919 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:04] "GET /config_login HTTP/1.1" 200 - 2024-04-26 17:09:05,148 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:05] "GET /_dash-layout HTTP/1.1" 200 - 2024-04-26 17:09:05,159 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:05] "GET /_dash-dependencies HTTP/1.1" 200 - 2024-04-26 17:09:05,313 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:05] "POST /_dash-update-component HTTP/1.1" 200 - 2024-04-26 17:09:05,663 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:05] "POST /_dash-update-component HTTP/1.1" 204 - 2024-04-26 17:09:05,675 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:05] "POST /_dash-update-component HTTP/1.1" 204 - 2024-04-26 17:09:05,686 :: INFO :: 172.30.32.1 - - [26/Apr/2024 17:09:05] "POST /_dash-update-component HTTP/1.1" 200 - 2024-04-26 17:09:24,592 :: INFO :: Initial setup... /init.sh: line 5: 9 Killed psa-car-controller $ARGS

grasmachien commented 1 month ago

Same issue here. I'm logging in with a Citroën car.

I even crashes my complete Raspberry PI, not just the add-on. Super annoying that there is no decent error handling to prevent this kind of a disaster. There is nothing interesting to see in the logs because it crashes the whole AH setup.

flobz commented 1 month ago

https://github.com/flobz/psa_car_controller/issues?q=5%3A+9+Killed+psa-car-controller+