Closed martin072 closed 10 months ago
If you are not able to provide logs, I can't help you.
Yes as mentioned. I assume the logs are in the container. So if it doesn't start I can't enter it. If you know any other to retrieve the logs then let me know
This is not a volvo2mqtt issue. If the container don't start, you have to look inside the syno logs.
Thanks, but running on a dead end, there are no logs I can find in synology, or in Docker. Only thing that pops-up is the following notification. There are no logs anywhere to be found unfortunately.
One error I received before was the following:
Start container volvo2mqtt failed: {"message":"failed to initialize logging driver: database is locked"}.
A tip I found was to copy the container and remove the old one. That worked, but this time there are no Logs as you can see.
I will close the issue as you say it is not related.
Managed to get some loging, see below
<!DOCTYPE html>
date | stream | content |
---|---|---|
2024-01-20T14:44:06.991933343Z | stdout | KeyError: 'CHARGING_SYSTEM_DONE' |
2024-01-20T14:44:06.991865529Z | stdout | charging_system_state = charging_system_states[data["chargingSystemStatus"]["value"]] |
2024-01-20T14:44:06.991820741Z | stdout | File "/volvoAAOS2mqtt/volvo.py", line 315, in parse_api_data |
2024-01-20T14:44:06.991758770Z | stdout | return parse_api_data(data, sensor_id) |
2024-01-20T14:44:06.991713039Z | stdout | File "/volvoAAOS2mqtt/volvo.py", line 264, in api_call |
2024-01-20T14:44:06.991665011Z | stdout | state = api_call(entity["url"], "GET", vin, entity["id"]) |
2024-01-20T14:44:06.991618368Z | stdout | File "/volvoAAOS2mqtt/volvo.py", line 159, in check_supported_endpoints |
2024-01-20T14:44:06.991578240Z | stdout | check_supported_endpoints() |
2024-01-20T14:44:06.991532969Z | stdout | File "/volvoAAOS2mqtt/volvo.py", line 52, in authorize |
2024-01-20T14:44:06.991492434Z | stdout | authorize() |
2024-01-20T14:44:06.991440454Z | stdout | File "/volvoAAOS2mqtt/./main.py", line 13, in <module> |
2024-01-20T14:44:06.991354136Z | stdout | Traceback (most recent call last): |
2024-01-20T14:44:06.991315371Z | stdout | } |
2024-01-20T14:44:06.991274284Z | stdout | } |
2024-01-20T14:44:06.991236099Z | stdout | } |
2024-01-20T14:44:06.991156932Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.991115973Z | stdout | "value" : "CHARGING_SYSTEM_DONE", |
2024-01-20T14:44:06.991077212Z | stdout | "chargingSystemStatus" : { |
2024-01-20T14:44:06.991041201Z | stdout | }, |
2024-01-20T14:44:06.991000083Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.990956949Z | stdout | "value" : "CONNECTION_STATUS_UNSPECIFIED", |
2024-01-20T14:44:06.990914510Z | stdout | "chargingConnectionStatus" : { |
2024-01-20T14:44:06.990877999Z | stdout | }, |
2024-01-20T14:44:06.990837172Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.990796193Z | stdout | "unit" : "minutes", |
2024-01-20T14:44:06.990757073Z | stdout | "value" : "0", |
2024-01-20T14:44:06.990718554Z | stdout | "estimatedChargingTime" : { |
2024-01-20T14:44:06.990679810Z | stdout | }, |
2024-01-20T14:44:06.990638961Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.990599467Z | stdout | "unit" : "kilometers", |
2024-01-20T14:44:06.990560823Z | stdout | "value" : "71", |
2024-01-20T14:44:06.990522198Z | stdout | "electricRange" : { |
2024-01-20T14:44:06.990485514Z | stdout | }, |
2024-01-20T14:44:06.990443411Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.990404324Z | stdout | "unit" : "percentage", |
2024-01-20T14:44:06.990363235Z | stdout | "value" : "100.0", |
2024-01-20T14:44:06.990323849Z | stdout | "batteryChargeLevel" : { |
2024-01-20T14:44:06.990283033Z | stdout | "data" : { |
2024-01-20T14:44:06.990241063Z | stdout | "operationId" : "b2f6d3d6-de15-46bc-a1aa-efa8aac9327c", |
2024-01-20T14:44:06.990200066Z | stdout | "status" : 200, |
2024-01-20T14:44:06.990151283Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: { |
2024-01-20T14:44:06.990101630Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: Response status code: 200 |
2024-01-20T14:44:06.990049657Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - INFO: Success! Electric Range is supported by your vehicle. |
2024-01-20T14:44:06.990012789Z | stdout | } |
2024-01-20T14:44:06.989976432Z | stdout | } |
2024-01-20T14:44:06.989940342Z | stdout | } |
2024-01-20T14:44:06.989899995Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.989859826Z | stdout | "value" : "CHARGING_SYSTEM_DONE", |
2024-01-20T14:44:06.989819084Z | stdout | "chargingSystemStatus" : { |
2024-01-20T14:44:06.989781018Z | stdout | }, |
2024-01-20T14:44:06.989740248Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.989698579Z | stdout | "value" : "CONNECTION_STATUS_UNSPECIFIED", |
2024-01-20T14:44:06.989659118Z | stdout | "chargingConnectionStatus" : { |
2024-01-20T14:44:06.989616313Z | stdout | }, |
2024-01-20T14:44:06.989575519Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.989533370Z | stdout | "unit" : "minutes", |
2024-01-20T14:44:06.989493790Z | stdout | "value" : "0", |
2024-01-20T14:44:06.989454967Z | stdout | "estimatedChargingTime" : { |
2024-01-20T14:44:06.989418534Z | stdout | }, |
2024-01-20T14:44:06.989375488Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.989335818Z | stdout | "unit" : "kilometers", |
2024-01-20T14:44:06.989296329Z | stdout | "value" : "71", |
2024-01-20T14:44:06.989257578Z | stdout | "electricRange" : { |
2024-01-20T14:44:06.989219193Z | stdout | }, |
2024-01-20T14:44:06.989154233Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.989113739Z | stdout | "unit" : "percentage", |
2024-01-20T14:44:06.989067869Z | stdout | "value" : "100.0", |
2024-01-20T14:44:06.988960087Z | stdout | "batteryChargeLevel" : { |
2024-01-20T14:44:06.988900117Z | stdout | "data" : { |
2024-01-20T14:44:06.988855091Z | stdout | "operationId" : "b2f6d3d6-de15-46bc-a1aa-efa8aac9327c", |
2024-01-20T14:44:06.988815741Z | stdout | "status" : 200, |
2024-01-20T14:44:06.988774568Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: { |
2024-01-20T14:44:06.988729364Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: Response status code: 200 |
2024-01-20T14:44:06.988673916Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - INFO: Success! Battery Charge Level is supported by your vehicle. |
2024-01-20T14:44:06.988637820Z | stdout | } |
2024-01-20T14:44:06.988601687Z | stdout | } |
2024-01-20T14:44:06.988564884Z | stdout | } |
2024-01-20T14:44:06.988524137Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.988479477Z | stdout | "value" : "CHARGING_SYSTEM_DONE", |
2024-01-20T14:44:06.988426422Z | stdout | "chargingSystemStatus" : { |
2024-01-20T14:44:06.988389485Z | stdout | }, |
2024-01-20T14:44:06.988346396Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.988268158Z | stdout | "value" : "CONNECTION_STATUS_UNSPECIFIED", |
2024-01-20T14:44:06.988225804Z | stdout | "chargingConnectionStatus" : { |
2024-01-20T14:44:06.988157037Z | stdout | }, |
2024-01-20T14:44:06.988106641Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.988065997Z | stdout | "unit" : "minutes", |
2024-01-20T14:44:06.988023812Z | stdout | "value" : "0", |
2024-01-20T14:44:06.987983728Z | stdout | "estimatedChargingTime" : { |
2024-01-20T14:44:06.987946029Z | stdout | }, |
2024-01-20T14:44:06.987899474Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.987858419Z | stdout | "unit" : "kilometers", |
2024-01-20T14:44:06.987817484Z | stdout | "value" : "71", |
2024-01-20T14:44:06.987777367Z | stdout | "electricRange" : { |
2024-01-20T14:44:06.987740074Z | stdout | }, |
2024-01-20T14:44:06.987694082Z | stdout | "timestamp" : "2024-01-20T06:36:48Z" |
2024-01-20T14:44:06.987651405Z | stdout | "unit" : "percentage", |
2024-01-20T14:44:06.987605749Z | stdout | "value" : "100.0", |
2024-01-20T14:44:06.987564536Z | stdout | "batteryChargeLevel" : { |
2024-01-20T14:44:06.987523246Z | stdout | "data" : { |
2024-01-20T14:44:06.987469150Z | stdout | "operationId" : "b2f6d3d6-de15-46bc-a1aa-efa8aac9327c", |
2024-01-20T14:44:06.987427916Z | stdout | "status" : 200, |
2024-01-20T14:44:06.987383171Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: { |
2024-01-20T14:44:06.987261468Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: Response status code: 200 |
2024-01-20T14:44:04.393937992Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: https://api.volvocars.com:443 "GET /energy/v1/vehicles/*********************/recharge-status HTTP/1.1" 200 737 |
2024-01-20T14:44:04.341829959Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: Starting GET call against https://api.volvocars.com/energy/v1/vehicles/{0}/recharge-status |
2024-01-20T14:44:04.341335337Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - INFO: Vin: ['*********************'] found! |
2024-01-20T14:44:04.339990088Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: https://api.volvocars.com:443 "GET /connected-vehicle/v1/vehicles HTTP/1.1" 200 207 |
2024-01-20T14:44:04.136720662Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: Starting new HTTPS connection (1): api.volvocars.com:443 |
2024-01-20T14:44:04.131682108Z | stdout | Jan 20 15:44:04 volvo2mqtt [1] - DEBUG: https://volvoid.eu.volvocars.com:443 "POST /as/token.oauth2 HTTP/1.1" 200 None |
2024-01-20T14:44:03.822959128Z | stdout | Jan 20 15:44:03 volvo2mqtt [1] - DEBUG: Starting new HTTPS connection (1): volvoid.eu.volvocars.com:443 |
2024-01-20T14:44:03.396161165Z | stdout | Jan 20 15:44:03 volvo2mqtt [1] - INFO: Starting volvo2mqtt version v1.7.5 |
You are using v1.7.5, this is a very old version... Please update to v1.8.23! Everything will work with the current release ;)
Ok, thank. So how do I get it to update the docker container? When using the script as supplied, with volvo2mqtt:latest
it still loads 1.7.5
-- Edit -- Manually installed the latest version. Should do it. will close the issue
Describe the bug (Synology) volvo2mqtt Docker images stops running
To Reproduce:
restart the docker container, after 1 - 2 minutes it stops.
Version info:
dielee/volvo2mqtt: latest (docker image)
Logs:
Unable to retrieve the logs, as the docker image won't start. No further loging available. If there are other means to get the logging out of the docker container, please let me know how (i did enable the DEBUG flag