psa_car_controller
psa_car_controller copied to clipboard
Server stops responding
Server suddenly stops responding. After restart it doesn't even print "* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)". When I remove info.db and restart again, it works for some time and then becomes unresponsive.
To Reproduce Steps to reproduce the behavior:
-
what command did you use docker image flobz/psa_car_controller:latest (3.2.0)
-
when the bug append ? 4th Dec
-
Does it persist after restarting the program? Yes
-
Does it persist after recreate config by going to http://server_address:port/config? /config doesn't even respond.
Config file Give the anonymize content of the config file
cars.json:
[
{
"abrp_name": "peugeot:e2008:20:48",
"battery_power": 46,
"brand": null,
"fuel_capacity": 0,
"label": "unknown",
"max_elec_consumption": 70,
"max_fuel_consumption": 30,
"vehicle_id": "1234",
"vin": "VR3UKZKWZPJ7123456"
}
]
config.ini:
[General]
currency = €
export_format = csv
# minimum trip length in km so it's added to stats and map in website
minimum trip length = 1
length unit = km
[Electricity config]
# price by kw/h
day price = 0.15
night price
# ex: 22h30
night hour start
# ex: 6h00
night hour end
dc charge price
high speed dc charge price
# minimum power in kW that should be delivered during a charge so it can be considered as a high speed charger
high speed dc charge threshold
charger efficiency = 0.8942
config.json:
{
"abrp": {
"abrp_enable_vin": [],
"token": ""
},
"client_id": "1234",
"client_secret": "s3cr3t,
"co2_signal_api": null,
"country_code": "FI",
"customer_id": "AP-ACNT20000123456",
"proxies": {
"http": "",
"https": ""
},
"realm": "clientsB2CPeugeot",
"refresh_token": "1234",
"remote_refresh_token": "1234",
"weather_api": null
}
Environment (please complete the following information):
-
OS: [e.g. Windows] Debian 11 / Docker version 24.0.7, build afdd53b
-
Brand and model of car Peugeot E-2008
-
Application version (commit number, branch or tag) docker image flobz/psa_car_controller:latest (3.2.0)
-
Log from http://server_address:port/log and browser console log
root@perus:~/psa_car_controller# docker logs psa_car_controller-psacc-1
Containerised psa_car_controller loading...
2023-12-05 06:40:23,680 :: INFO :: App version 3.2.0
2023-12-05 06:40:23,805 :: WARNING :: Can't get car model, please report an issue on github with your car model and first ten letter of your VIN : VR3UKZKWZP
2023-12-05 06:40:28,989 :: WARNING :: Can't get car model, please report an issue on github with your car model and first ten letter of your VIN : VR3UKZKWZP
2023-12-05 06:40:28,990 :: INFO :: ["{'vin': 'VR3UKZKWZPJ7123456', 'vehicle_id': '1234', 'label': 'unknown', 'brand': None, 'abrp_name': 'peugeot:e2008:20:48', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 30}"]
2023-12-05 06:40:28,990 :: INFO :: save config change
2023-12-05 06:40:28,992 :: WARNING :: Can't get language
2023-12-05 06:40:29,510 :: INFO :: update_data
2023-12-05 06:40:29,894 :: INFO :: * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
2023-12-05 06:40:36,003 :: INFO :: new position recorded for VR3UKZKWZPJ7123456
2023-12-05 06:40:36,003 :: INFO :: update_data
Containerised psa_car_controller loading...
2023-12-05 06:44:50,383 :: INFO :: App version 3.2.0
2023-12-05 06:44:50,508 :: WARNING :: Can't get car model, please report an issue on github with your car model and first ten letter of your VIN : VR3UKZKWZP
With debug log enabled I can see that there is some bug with altitude positions:
2023-12-05 11:57:18,964 :: DEBUG :: add altitude for -3427 positions point
2023-12-05 11:57:19,058 :: DEBUG :: add altitude for -3428 positions point
2023-12-05 11:57:19,147 :: DEBUG :: add altitude for -3429 positions point
2023-12-05 11:57:19,207 :: DEBUG :: add altitude for -3430 positions point
2023-12-05 11:57:19,273 :: DEBUG :: add altitude for -3431 positions point
It seems that it will never stop/complete and will probably cause application become unresponsive.