teslamate-org / teslamate

A self-hosted data logger for your Tesla 🚘
https://docs.teslamate.org
MIT License
5.54k stars 695 forks source link

Grafana now longer accessible #3969

Closed Bolten88 closed 8 hours ago

Bolten88 commented 2 weeks ago

Is there an existing issue for this?

What happened?

Today i noticed that i'm no longer able to open grafana. The Home page 'http://teslamate.***.**:4000/' is still available and works fine. I've updated teslamate and docker but i cannot access: http://teslamate.***.**:3000/d/jchmRiqUfXgTM The chrome browser throws the error 'ERR_CONNECTION_TIMED_OUT'.

Sometimes it does load half way but then grafana is showing 'no data' everywhere

image

It has allways worked. I checked it a few days ago and now i don't know what to do. Can someone point me in the right direction?

Expected Behavior

Browse the dashboard as usual.

Steps To Reproduce

  1. open the teslamate home page: http://teslamate.***.**:4000
  2. Click on 'dashboards'
  3. Click on 'Battery health' for example

Relevant log output

teslamate-1  | 2024-06-16 12:07:54.133 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929702988599314/vehicle_data -> 408 (74.465 ms)
teslamate-1  | 2024-06-16 12:08:24.293 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929702988599314/vehicle_data -> 408 (78.781 ms)
teslamate-1  | 2024-06-16 12:08:54.514 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929702988599314/vehicle_data -> 408 (101.411 ms)
teslamate-1  | 2024-06-16 12:09:24.811 car_id=1 [info] Vehicle came back online after 1691 min
teslamate-1  | 2024-06-16 12:09:24.812 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 12:11:27.025 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718539886, heading: 282, latitude: 52.074083, longitude: 4.76017, native_latitude: 52.074083, native_location_supported: 1, native_longitude: 4.76017, native_type: "wgs", power: 1, shift_state: "R", speed: 1, timestamp: 1718539886963}
teslamate-1  | 2024-06-16 12:11:27.026 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-16 12:26:21.852 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (88.627 ms)
teslamate-1  | 2024-06-16 12:26:22.351 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (497.086 ms)
teslamate-1  | 2024-06-16 12:26:22.361 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718540780, heading: 26, latitude: 52.125651, longitude: 4.625122, native_latitude: 52.125651, native_location_supported: 1, native_longitude: 4.625122, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718540781699}
teslamate-1  | 2024-06-16 12:26:22.361 car_id=1 [info] Driving / Ended / 14 km – 15 min
teslamate-1  | 2024-06-16 12:26:22.361 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 13:20:57.765 [info] Refreshing access token ...
teslamate-1  | 2024-06-16 13:20:58.048 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (282.805 ms)
teslamate-1  | 2024-06-16 13:20:58.052 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-16 13:54:52.836 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718546092, heading: 26, latitude: 52.125652, longitude: 4.625123, native_latitude: 52.125652, native_location_supported: 1, native_longitude: 4.625123, native_type: "wgs", power: 1, shift_state: "R", speed: 1, timestamp: 1718546092944}
teslamate-1  | 2024-06-16 13:54:52.837 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-16 14:06:15.456 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (119.970 ms)
teslamate-1  | 2024-06-16 14:06:16.021 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (561.072 ms)
teslamate-1  | 2024-06-16 14:06:16.031 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718546773, heading: 146, latitude: 52.083327, longitude: 4.743829, native_latitude: 52.083327, native_location_supported: 1, native_longitude: 4.743829, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718546775518}
teslamate-1  | 2024-06-16 14:06:16.031 car_id=1 [info] Driving / Ended / 11 km – 11 min
teslamate-1  | 2024-06-16 14:06:16.032 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 14:29:29.401 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718548168, heading: 126, latitude: 52.083374, longitude: 4.743793, native_latitude: 52.083374, native_location_supported: 1, native_longitude: 4.743793, native_type: "wgs", power: 2, shift_state: "R", speed: 1, timestamp: 1718548169322}
teslamate-1  | 2024-06-16 14:29:29.401 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-16 14:36:45.874 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (114.448 ms)
teslamate-1  | 2024-06-16 14:36:46.368 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (491.306 ms)
teslamate-1  | 2024-06-16 14:36:46.379 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718548604, heading: 284, latitude: 52.074092, longitude: 4.760163, native_latitude: 52.074092, native_location_supported: 1, native_longitude: 4.760163, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718548605566}
teslamate-1  | 2024-06-16 14:36:46.380 car_id=1 [info] Driving / Ended / 3 km – 7 min
teslamate-1  | 2024-06-16 14:36:46.380 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 14:55:09.854 car_id=1 [info] Suspending logging
teslamate-1  | 2024-06-16 15:16:10.004 car_id=1 [info] Start / :offline
teslamate-1  | 2024-06-16 17:27:41.858 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 17:28:27.352 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718558906, heading: 283, latitude: 52.074082, longitude: 4.7602, native_latitude: 52.074082, native_location_supported: 1, native_longitude: 4.7602, native_type: "wgs", power: 2, shift_state: "R", speed: 1, timestamp: 1718558907287}
teslamate-1  | 2024-06-16 17:28:27.353 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-16 17:32:22.236 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (113.028 ms)
teslamate-1  | 2024-06-16 17:32:22.732 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (491.553 ms)
teslamate-1  | 2024-06-16 17:32:22.750 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718559141, heading: 23, latitude: 52.070735, longitude: 4.742091, native_latitude: 52.070735, native_location_supported: 1, native_longitude: 4.742091, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718559142024}
teslamate-1  | 2024-06-16 17:32:22.750 car_id=1 [info] Driving / Ended / 2 km – 4 min
teslamate-1  | 2024-06-16 17:32:22.750 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 17:33:53.958 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (102.716 ms)
teslamate-1  | 2024-06-16 17:33:53.975 car_id=1 [info] Charging / SOC: 49%
teslamate-1  | 2024-06-16 17:34:22.560 car_id=1 [info] Derived efficiency factor: 142.28 Wh/km (8x confirmed)
teslamate-1  | 2024-06-16 17:34:22.561 car_id=1 [info] Charging / Stopped / 0.00 kWh – 0 min
teslamate-1  | 2024-06-16 17:34:22.562 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 17:35:23.337 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718559322, heading: 22, latitude: 52.070856, longitude: 4.742437, native_latitude: 52.070856, native_location_supported: 1, native_longitude: 4.742437, native_type: "wgs", power: 1, shift_state: "D", speed: 0, timestamp: 1718559323279}
teslamate-1  | 2024-06-16 17:35:23.337 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-16 17:37:18.589 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (95.458 ms)
teslamate-1  | 2024-06-16 17:37:19.069 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (476.000 ms)
teslamate-1  | 2024-06-16 17:37:19.078 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718559437, heading: 299, latitude: 52.067787, longitude: 4.739896, native_latitude: 52.067787, native_location_supported: 1, native_longitude: 4.739896, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718559438427}
teslamate-1  | 2024-06-16 17:37:19.078 car_id=1 [info] Driving / Ended / 1 km – 2 min
teslamate-1  | 2024-06-16 17:37:19.079 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 17:49:27.178 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718560166, heading: 299, latitude: 52.067787, longitude: 4.739896, native_latitude: 52.067787, native_location_supported: 1, native_longitude: 4.739896, native_type: "wgs", power: 1, shift_state: "D", speed: 0, timestamp: 1718560167104}
teslamate-1  | 2024-06-16 17:49:27.178 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-16 17:55:05.278 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (119.363 ms)
teslamate-1  | 2024-06-16 17:55:05.798 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (518.148 ms)
teslamate-1  | 2024-06-16 17:55:05.808 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718560503, heading: 102, latitude: 52.074096, longitude: 4.760162, native_latitude: 52.074096, native_location_supported: 1, native_longitude: 4.760162, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718560504909}
teslamate-1  | 2024-06-16 17:55:05.808 car_id=1 [info] Driving / Ended / 3 km – 6 min
teslamate-1  | 2024-06-16 17:55:05.809 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-16 18:11:25.813 car_id=1 [info] Suspending logging
teslamate-1  | 2024-06-16 18:32:25.837 [error] GET https://owner-api.teslamotors.com/api/1/vehicles/929702988599314 -> error: "socket closed" (22.210 ms)
teslamate-1  | 2024-06-16 18:32:25.838 [warning] TeslaApi.Error / socket closed
teslamate-1  | 2024-06-16 18:32:25.838 car_id=1 [error] Error / :unknown
teslamate-1  | 2024-06-16 18:32:56.008 car_id=1 [info] Start / :offline
teslamate-1  | 2024-06-16 19:20:58.053 [info] Refreshing access token ...
teslamate-1  | 2024-06-16 19:20:58.359 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (306.367 ms)
teslamate-1  | 2024-06-16 19:20:58.365 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-17 01:20:58.366 [info] Refreshing access token ...
teslamate-1  | 2024-06-17 01:20:58.850 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (484.263 ms)
teslamate-1  | 2024-06-17 01:20:58.856 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-17 05:08:27.742 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-17 05:38:54.111 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718602733, heading: 11, latitude: 52.074221, longitude: 4.760337, native_latitude: 52.074221, native_location_supported: 1, native_longitude: 4.760337, native_type: "wgs", power: 6, shift_state: "D", speed: 11, timestamp: 1718602734061}
teslamate-1  | 2024-06-17 05:38:54.112 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-17 05:42:58.368 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (159.131 ms)
teslamate-1  | 2024-06-17 05:42:58.885 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (514.017 ms)
teslamate-1  | 2024-06-17 05:42:58.894 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718602976, heading: 204, latitude: 52.077582, longitude: 4.751104, native_latitude: 52.077582, native_location_supported: 1, native_longitude: 4.751104, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718602978147}
teslamate-1  | 2024-06-17 05:42:58.894 car_id=1 [info] Driving / Ended / 1 km – 4 min
teslamate-1  | 2024-06-17 05:42:58.894 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-17 05:52:02.669 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718603521, heading: 114, latitude: 52.07755, longitude: 4.751163, native_latitude: 52.07755, native_location_supported: 1, native_longitude: 4.751163, native_type: "wgs", power: 0, shift_state: "R", speed: 2, timestamp: 1718603522609}
teslamate-1  | 2024-06-17 05:52:02.671 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-17 05:56:09.726 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (127.393 ms)
teslamate-1  | 2024-06-17 05:56:10.195 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (466.330 ms)
teslamate-1  | 2024-06-17 05:56:10.208 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718603768, heading: 107, latitude: 52.074081, longitude: 4.76016, native_latitude: 52.074081, native_location_supported: 1, native_longitude: 4.76016, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718603769391}
teslamate-1  | 2024-06-17 05:56:10.208 car_id=1 [info] Driving / Ended / 1 km – 4 min
teslamate-1  | 2024-06-17 05:56:10.208 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-17 06:11:17.889 car_id=1 [info] Suspending logging
teslamate-1  | 2024-06-17 06:32:18.049 car_id=1 [info] Start / :offline
teslamate-1  | 2024-06-17 07:20:58.858 [info] Refreshing access token ...
teslamate-1  | 2024-06-17 07:20:59.143 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (284.441 ms)
teslamate-1  | 2024-06-17 07:20:59.147 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-17 13:20:59.149 [info] Refreshing access token ...
teslamate-1  | 2024-06-17 13:20:59.444 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (294.993 ms)
teslamate-1  | 2024-06-17 13:20:59.449 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-17 13:31:33.585 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-17 13:44:07.163 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929702988599314/vehicle_data -> 408 (222.205 ms)
teslamate-1  | 2024-06-17 13:44:17.605 car_id=1 [info] Start / :offline
teslamate-1  | 2024-06-17 15:12:13.727 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-17 15:15:55.045 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929702988599314/vehicle_data -> 408 (9114.367 ms)
teslamate-1  | 2024-06-17 15:15:55.045 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate-1  | 2024-06-17 15:15:55.045 car_id=1 [error] Error / :unknown
teslamate-1  | 2024-06-17 15:16:15.257 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718637373, heading: 98, latitude: 52.074428, longitude: 4.760753, native_latitude: 52.074428, native_location_supported: 1, native_longitude: 4.760753, native_type: "wgs", power: 16, shift_state: "D", speed: 17, timestamp: 1718637375174}
teslamate-1  | 2024-06-17 15:16:15.259 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-17 15:22:59.881 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (160.860 ms)
teslamate-1  | 2024-06-17 15:23:00.360 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (477.124 ms)
teslamate-1  | 2024-06-17 15:23:00.369 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718637777, heading: 320, latitude: 52.086118, longitude: 4.737982, native_latitude: 52.086118, native_location_supported: 1, native_longitude: 4.737982, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718637779666}
teslamate-1  | 2024-06-17 15:23:00.369 car_id=1 [info] Driving / Ended / 4 km – 7 min
teslamate-1  | 2024-06-17 15:23:00.369 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-17 15:46:26.335 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718639185, heading: 320, latitude: 52.086118, longitude: 4.737982, native_latitude: 52.086118, native_location_supported: 1, native_longitude: 4.737982, native_type: "wgs", power: 2, shift_state: "D", speed: 0, timestamp: 1718639186283}
teslamate-1  | 2024-06-17 15:46:26.335 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-17 15:52:35.088 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (130.883 ms)
teslamate-1  | 2024-06-17 15:52:35.650 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (559.526 ms)
teslamate-1  | 2024-06-17 15:52:35.659 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718639553, heading: 206, latitude: 52.077578, longitude: 4.751118, native_latitude: 52.077578, native_location_supported: 1, native_longitude: 4.751118, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718639554733}
teslamate-1  | 2024-06-17 15:52:35.659 car_id=1 [info] Driving / Ended / 2 km – 6 min
teslamate-1  | 2024-06-17 15:52:35.659 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-17 16:11:30.067 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718640688, heading: 78, latitude: 52.077544, longitude: 4.751195, native_latitude: 52.077544, native_location_supported: 1, native_longitude: 4.751195, native_type: "wgs", power: 0, shift_state: "D", speed: 4, timestamp: 1718640689535}
teslamate-1  | 2024-06-17 16:11:30.067 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-17 16:16:11.533 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (255.649 ms)
teslamate-1  | 2024-06-17 16:16:11.914 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (378.269 ms)
teslamate-1  | 2024-06-17 16:16:11.923 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718640969, heading: 104, latitude: 52.074077, longitude: 4.760163, native_latitude: 52.074077, native_location_supported: 1, native_longitude: 4.760163, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718640970708}
teslamate-1  | 2024-06-17 16:16:11.923 car_id=1 [info] Driving / Ended / 1 km – 5 min
teslamate-1  | 2024-06-17 16:16:11.923 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-17 16:32:51.194 car_id=1 [info] Suspending logging
teslamate-1  | 2024-06-17 16:53:51.670 car_id=1 [info] Vehicle is still online. Falling asleep for: 36 min
teslamate-1  | 2024-06-17 17:14:51.826 car_id=1 [info] Start / :offline
teslamate-1  | 2024-06-17 19:20:59.450 [info] Refreshing access token ...
teslamate-1  | 2024-06-17 19:20:59.746 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (296.438 ms)
teslamate-1  | 2024-06-17 19:20:59.752 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-18 01:20:59.753 [info] Refreshing access token ...
teslamate-1  | 2024-06-18 01:21:00.061 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (308.227 ms)
teslamate-1  | 2024-06-18 01:21:00.066 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-18 05:08:27.949 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-18 05:43:30.149 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718689409, heading: 102, latitude: 52.07408, longitude: 4.760198, native_latitude: 52.07408, native_location_supported: 1, native_longitude: 4.760198, native_type: "wgs", power: 2, shift_state: "D", speed: 2, timestamp: 1718689410657}
teslamate-1  | 2024-06-18 05:43:30.150 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-18 05:47:46.295 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (251.370 ms)
teslamate-1  | 2024-06-18 05:47:46.719 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (421.334 ms)
teslamate-1  | 2024-06-18 05:47:46.725 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718689664, heading: 205, latitude: 52.077531, longitude: 4.751055, native_latitude: 52.077531, native_location_supported: 1, native_longitude: 4.751055, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718689665959}
teslamate-1  | 2024-06-18 05:47:46.725 car_id=1 [info] Driving / Ended / 1 km – 4 min
teslamate-1  | 2024-06-18 05:47:46.725 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-18 05:55:35.627 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718690134, heading: 205, latitude: 52.077531, longitude: 4.751055, native_latitude: 52.077531, native_location_supported: 1, native_longitude: 4.751055, native_type: "wgs", power: 1, shift_state: "D", speed: 0, timestamp: 1718690135559}
teslamate-1  | 2024-06-18 05:55:35.627 car_id=1 [info] Driving / Start
teslamate-1  | 2024-06-18 05:59:18.351 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (1044.187 ms)
teslamate-1  | 2024-06-18 05:59:18.455 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (101.408 ms)
teslamate-1  | 2024-06-18 05:59:18.470 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 52.074091, active_route_longitude: 4.760074, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1718690355, heading: 17, latitude: 52.081374, longitude: 4.747293, native_latitude: 52.081374, native_location_supported: 1, native_longitude: 4.747293, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1718690357127}
teslamate-1  | 2024-06-18 05:59:18.470 car_id=1 [info] Driving / Ended / 1 km – 4 min
teslamate-1  | 2024-06-18 05:59:18.470 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-18 07:21:00.068 [info] Refreshing access token ...
teslamate-1  | 2024-06-18 07:21:00.365 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (296.912 ms)
teslamate-1  | 2024-06-18 07:21:00.369 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-18 07:54:50.591 [info] GET /settings
teslamate-1  | 2024-06-18 07:54:50.596 [info] Sent 200 in 5ms
teslamate-1  | 2024-06-18 07:54:51.346 [info] GET /settings
teslamate-1  | 2024-06-18 07:54:51.355 [info] Sent 200 in 8ms
teslamate-1  | 2024-06-18 07:54:54.224 [info] GET /
teslamate-1  | 2024-06-18 07:54:54.230 [info] Sent 200 in 5ms
teslamate-1  | 2024-06-18 07:55:34.895 [warning] MQTT connection has been dropped
teslamate-1  | 2024-06-18 07:55:34.895 [info] [Tortoise311] Connection went down. Reconnecting.
teslamate-1  | 2024-06-18 07:55:34.901 [warning] [Tortoise311] Connection failed: {:connection_refused, ~c"mosquitto", 1883}, %{port: 1883, status: :down, protocol: "MQTT", host: ~c"mosquitto", protocol_version: 4, keep_alive: 60, transport: Tortoise311.Transport.Tcp, subscriptions: %Tortoise311.Package.Subscribe{__META__: %Tortoise311.Package.Meta{opcode: 8, flags: 2}, identifier: nil, topics: []}, client_id: "TESLAMATE_302E3333323", clean_session: false}. Retrying in 100 msecs.
teslamate-1  | 2024-06-18 07:55:35.032 [warning] [Tortoise311] Connection failed: {:nxdomain, ~c"mosquitto", 1883}, %{port: 1883, status: :down, protocol: "MQTT", host: ~c"mosquitto", protocol_version: 4, keep_alive: 60, transport: Tortoise311.Transport.Tcp, subscriptions: %Tortoise311.Package.Subscribe{__META__: %Tortoise311.Package.Meta{opcode: 8, flags: 2}, identifier: nil, topics: []}, client_id: "TESLAMATE_302E3333323", clean_session: false}. Retrying in 200 msecs.
teslamate-1  | 2024-06-18 07:55:35.236 [warning] [Tortoise311] Connection failed: {:connection_refused, ~c"mosquitto", 1883}, %{port: 1883, status: :down, protocol: "MQTT", host: ~c"mosquitto", protocol_version: 4, keep_alive: 60, transport: Tortoise311.Transport.Tcp, subscriptions: %Tortoise311.Package.Subscribe{__META__: %Tortoise311.Package.Meta{opcode: 8, flags: 2}, identifier: nil, topics: []}, client_id: "TESLAMATE_302E3333323", clean_session: false}. Retrying in 400 msecs.
teslamate-1  | 2024-06-18 07:55:35.339 [error] Postgrex.Protocol (#PID<0.2450.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:35.339 [error] Postgrex.Protocol (#PID<0.2449.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:35.339 [error] Postgrex.Protocol (#PID<0.2452.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:35.343 [error] Postgrex.Protocol (#PID<0.2455.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:35.363 [error] Postgrex.Protocol (#PID<0.2444.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:35.371 [error] Postgrex.Protocol (#PID<0.2445.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:35.372 [error] Postgrex.Protocol (#PID<0.2450.0>) failed to connect: ** (Postgrex.Error) FATAL 57P03 (cannot_connect_now) the database system is shutting down
teslamate-1  | 2024-06-18 07:55:35.379 [error] Postgrex.Protocol (#PID<0.2444.0>) failed to connect: ** (Postgrex.Error) FATAL 57P03 (cannot_connect_now) the database system is shutting down
teslamate-1  | 2024-06-18 07:55:35.382 [error] Postgrex.Protocol (#PID<0.2448.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:35.382 [error] Postgrex.Protocol (#PID<0.2449.0>) failed to connect: ** (Postgrex.Error) FATAL 57P03 (cannot_connect_now) the database system is shutting down
teslamate-1  | 2024-06-18 07:55:35.383 [error] Postgrex.Protocol (#PID<0.2455.0>) failed to connect: ** (Postgrex.Error) FATAL 57P03 (cannot_connect_now) the database system is shutting down
teslamate-1  | 2024-06-18 07:55:35.387 [error] Postgrex.Protocol (#PID<0.2452.0>) failed to connect: ** (Postgrex.Error) FATAL 57P03 (cannot_connect_now) the database system is shutting down
teslamate-1  | 2024-06-18 07:55:35.393 [error] Postgrex.Protocol (#PID<0.2448.0>) failed to connect: ** (Postgrex.Error) FATAL 57P03 (cannot_connect_now) the database system is shutting down
teslamate-1  | 2024-06-18 07:55:35.399 [error] Postgrex.Protocol (#PID<0.2445.0>) failed to connect: ** (Postgrex.Error) FATAL 57P03 (cannot_connect_now) the database system is shutting down
teslamate-1  | 2024-06-18 07:55:35.639 [info] MQTT connection has been established
teslamate-1  | 2024-06-18 07:55:36.339 [error] Postgrex.Protocol (#PID<0.2454.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:36.339 [error] Postgrex.Protocol (#PID<0.2453.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:36.339 [error] Postgrex.Protocol (#PID<0.2451.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:55:36.424 [notice] SIGTERM received - shutting down
teslamate-1  |
teslamate-1  | 2024-06-18 07:55:36.425 [info] Shutting down 2 sockets in 1 rounds of 2000ms
teslamate-1  | 2024-06-18 07:55:46.978 [info] Migrations already up
teslamate-1  | 2024-06-18 07:55:49.403 [info] System Info: Erlang/OTP 26 (jit)
teslamate-1  | 2024-06-18 07:55:49.403 [info] Version: 1.29.1
teslamate-1  | 2024-06-18 07:55:49.719 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (268.512 ms)
teslamate-1  | 2024-06-18 07:55:49.719 [info] Refreshed api tokens
teslamate-1  | 2024-06-18 07:55:49.731 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-18 07:55:49.747 [info] Running TeslaMateWeb.Endpoint with cowboy 2.10.0 at :::4000 (http)
teslamate-1  | 2024-06-18 07:55:49.750 [info] Access TeslaMateWeb.Endpoint at http://localhost
teslamate-1  | 2024-06-18 07:55:49.777 [info] GET /
teslamate-1  | 2024-06-18 07:55:49.961 [info] GET /
teslamate-1  | 2024-06-18 07:55:50.138 [info] Starting logger for 'TessY'
teslamate-1  | 2024-06-18 07:55:50.145 [info] Sent 200 in 184ms
teslamate-1  | 2024-06-18 07:55:50.149 [info] MQTT connection has been established
teslamate-1  | 2024-06-18 07:55:50.367 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-18 07:56:41.836 [info] GET /settings
teslamate-1  | 2024-06-18 07:56:41.839 [info] GET /settings
teslamate-1  | 2024-06-18 07:56:41.847 [info] Sent 200 in 11ms
teslamate-1  | 2024-06-18 07:56:41.848 [info] Sent 200 in 8ms
teslamate-1  | 2024-06-18 07:56:42.193 [info] GET /settings
teslamate-1  | 2024-06-18 07:56:42.209 [info] Sent 200 in 16ms
teslamate-1  | 2024-06-18 07:59:37.406 [error] Postgrex.Protocol (#PID<0.2451.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:37.406 [error] Postgrex.Protocol (#PID<0.2453.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:37.406 [error] Postgrex.Protocol (#PID<0.2445.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:37.406 [error] Postgrex.Protocol (#PID<0.2444.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:37.406 [error] Postgrex.Protocol (#PID<0.2455.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:37.406 [error] Postgrex.Protocol (#PID<0.2448.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:37.406 [error] Postgrex.Protocol (#PID<0.2454.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:37.407 [error] Postgrex.Protocol #PID<0.2453.0> could not cancel backend: tcp connect: connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.407 [error] Postgrex.Protocol #PID<0.2444.0> could not cancel backend: tcp connect: connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.407 [error] Postgrex.Protocol #PID<0.2454.0> could not cancel backend: tcp connect: connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.407 [error] Postgrex.Protocol #PID<0.2445.0> could not cancel backend: tcp connect: connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.407 [error] Postgrex.Protocol #PID<0.2451.0> could not cancel backend: tcp connect: connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.407 [error] Postgrex.Protocol #PID<0.2455.0> could not cancel backend: tcp connect: connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.407 [error] Postgrex.Protocol #PID<0.2448.0> could not cancel backend: tcp connect: connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.408 [error] Postgrex.Protocol (#PID<0.2453.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (database:5432): connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.408 [error] Postgrex.Protocol (#PID<0.2444.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (database:5432): connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.408 [error] Postgrex.Protocol (#PID<0.2454.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (database:5432): connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.408 [error] Postgrex.Protocol (#PID<0.2445.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (database:5432): connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.408 [error] Postgrex.Protocol (#PID<0.2451.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (database:5432): connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.408 [error] Postgrex.Protocol (#PID<0.2455.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (database:5432): connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:37.408 [error] Postgrex.Protocol (#PID<0.2448.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (database:5432): connection refused - :econnrefused
teslamate-1  | 2024-06-18 07:59:38.407 [error] Postgrex.Protocol (#PID<0.2450.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:38.408 [error] Postgrex.Protocol (#PID<0.2452.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:38.408 [error] Postgrex.Protocol (#PID<0.2449.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 07:59:42.520 [info] GET /
teslamate-1  | 2024-06-18 07:59:42.531 [info] Sent 200 in 10ms
teslamate-1  | 2024-06-18 07:59:53.386 [info] GET /settings
teslamate-1  | 2024-06-18 07:59:53.398 [info] Sent 200 in 12ms
teslamate-1  | 2024-06-18 08:00:01.116 [info] GET /
teslamate-1  | 2024-06-18 08:00:01.122 [info] Sent 200 in 5ms
teslamate-1  | 2024-06-18 08:01:02.530 [info] GET /settings
teslamate-1  | 2024-06-18 08:01:02.545 [info] Sent 200 in 14ms
teslamate-1  | 2024-06-18 08:02:07.734 [info] GET /
teslamate-1  | 2024-06-18 08:02:07.743 [info] Sent 200 in 8ms
teslamate-1  | 2024-06-18 08:04:00.202 [info] GET /settings
teslamate-1  | 2024-06-18 08:04:00.222 [info] Sent 200 in 19ms
teslamate-1  | 2024-06-18 08:04:11.042 car_id=1 [info] Connecting ...
teslamate-1  | 2024-06-18 08:04:26.710 car_id=1 [info] Disconnecting ...
teslamate-1  | 2024-06-18 08:06:27.690 [info] GET /
teslamate-1  | 2024-06-18 08:06:27.700 [info] Sent 200 in 9ms
teslamate-1  | 2024-06-18 08:06:59.811 [info] GET /geo-fences
teslamate-1  | 2024-06-18 08:06:59.823 [info] Sent 200 in 12ms
teslamate-1  | 2024-06-18 08:07:26.068 [notice] SIGTERM received - shutting down
teslamate-1  |
teslamate-1  | 2024-06-18 08:07:26.069 [info] Shutting down 1 sockets in 1 rounds of 2000ms
teslamate-1  | 2024-06-18 08:07:26.408 [error] Postgrex.Protocol (#PID<0.2451.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:26.408 [error] Postgrex.Protocol (#PID<0.2453.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:26.408 [error] Postgrex.Protocol (#PID<0.2448.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:26.408 [error] Postgrex.Protocol (#PID<0.2452.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:27.408 [error] Postgrex.Protocol (#PID<0.2455.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:27.409 [error] Postgrex.Protocol (#PID<0.2454.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:27.409 [error] Postgrex.Protocol (#PID<0.2450.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:27.409 [error] Postgrex.Protocol (#PID<0.2449.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:27.409 [error] Postgrex.Protocol (#PID<0.2444.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:07:27.409 [error] Postgrex.Protocol (#PID<0.2445.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | waiting for postgres at database:5432
teslamate-1  | 2024-06-18 08:08:02.624 [info] Migrations already up
teslamate-1  | 2024-06-18 08:08:09.442 [info] System Info: Erlang/OTP 26 (jit)
teslamate-1  | 2024-06-18 08:08:09.442 [info] Version: 1.29.1
teslamate-1  | 2024-06-18 08:08:09.770 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (279.197 ms)
teslamate-1  | 2024-06-18 08:08:09.770 [info] Refreshed api tokens
teslamate-1  | 2024-06-18 08:08:09.778 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-18 08:08:09.794 [info] Running TeslaMateWeb.Endpoint with cowboy 2.10.0 at :::4000 (http)
teslamate-1  | 2024-06-18 08:08:09.797 [info] Access TeslaMateWeb.Endpoint at http://localhost
teslamate-1  | 2024-06-18 08:08:10.181 [info] Starting logger for 'TessY'
teslamate-1  | 2024-06-18 08:08:10.213 [info] MQTT connection has been established
teslamate-1  | 2024-06-18 08:08:10.276 [info] GET /settings
teslamate-1  | 2024-06-18 08:08:10.295 [info] Sent 200 in 18ms
teslamate-1  | 2024-06-18 08:08:10.465 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-18 08:08:13.717 [info] GET /settings
teslamate-1  | 2024-06-18 08:08:13.729 [info] Sent 200 in 12ms
teslamate-1  | 2024-06-18 08:09:49.403 [info] GET /
teslamate-1  | 2024-06-18 08:09:49.411 [info] Sent 200 in 8ms
teslamate-1  | 2024-06-18 08:09:51.850 [info] GET /
teslamate-1  | 2024-06-18 08:09:51.857 [info] Sent 200 in 6ms
teslamate-1  | 2024-06-18 08:09:52.376 [info] GET /
teslamate-1  | 2024-06-18 08:09:52.383 [info] Sent 200 in 6ms
teslamate-1  | 2024-06-18 08:09:52.621 [info] GET /
teslamate-1  | 2024-06-18 08:09:52.629 [info] Sent 200 in 8ms
teslamate-1  | 2024-06-18 08:09:52.812 [info] GET /
teslamate-1  | 2024-06-18 08:09:52.818 [info] Sent 200 in 5ms
teslamate-1  | 2024-06-18 08:11:41.888 [info] GET /
teslamate-1  | 2024-06-18 08:11:41.894 [info] Sent 200 in 5ms
teslamate-1  | 2024-06-18 08:11:46.550 [info] GET /geo-fences
teslamate-1  | 2024-06-18 08:11:46.560 [info] Sent 200 in 10ms
teslamate-1  | 2024-06-18 08:12:24.836 [info] GET /
teslamate-1  | 2024-06-18 08:12:24.842 [info] Sent 200 in 6ms
teslamate-1  | 2024-06-18 08:20:07.304 [warning] MQTT connection has been dropped
teslamate-1  | 2024-06-18 08:20:07.305 [info] [Tortoise311] Connection went down. Reconnecting.
teslamate-1  | 2024-06-18 08:20:07.314 [warning] [Tortoise311] Connection failed: {:connection_refused, ~c"mosquitto", 1883}, %{port: 1883, status: :down, protocol: "MQTT", host: ~c"mosquitto", protocol_version: 4, keep_alive: 60, transport: Tortoise311.Transport.Tcp, subscriptions: %Tortoise311.Package.Subscribe{__META__: %Tortoise311.Package.Meta{opcode: 8, flags: 2}, identifier: nil, topics: []}, client_id: "TESLAMATE_302E3931373", clean_session: false}. Retrying in 100 msecs.
teslamate-1  | 2024-06-18 08:20:07.438 [warning] [Tortoise311] Connection failed: {:nxdomain, ~c"mosquitto", 1883}, %{port: 1883, status: :down, protocol: "MQTT", host: ~c"mosquitto", protocol_version: 4, keep_alive: 60, transport: Tortoise311.Transport.Tcp, subscriptions: %Tortoise311.Package.Subscribe{__META__: %Tortoise311.Package.Meta{opcode: 8, flags: 2}, identifier: nil, topics: []}, client_id: "TESLAMATE_302E3931373", clean_session: false}. Retrying in 200 msecs.
teslamate-1  | 2024-06-18 08:20:07.468 [error] Postgrex.Protocol (#PID<0.2444.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:20:07.468 [error] Postgrex.Protocol (#PID<0.2445.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:20:07.468 [error] Postgrex.Protocol (#PID<0.2452.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:20:07.468 [error] Postgrex.Protocol (#PID<0.2449.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command
teslamate-1  | 2024-06-18 08:20:08.189 [notice] SIGTERM received - shutting down
teslamate-1  |
teslamate-1  | 2024-06-18 08:20:08.190 [info] Shutting down 4 sockets in 1 rounds of 2000ms
teslamate-1  | 2024-06-18 08:20:10.604 [info] Migrations already up
teslamate-1  | 2024-06-18 08:20:13.356 [info] System Info: Erlang/OTP 26 (jit)
teslamate-1  | 2024-06-18 08:20:13.356 [info] Version: 1.29.1
teslamate-1  | 2024-06-18 08:20:13.676 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (280.451 ms)
teslamate-1  | 2024-06-18 08:20:13.676 [info] Refreshed api tokens
teslamate-1  | 2024-06-18 08:20:13.684 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-06-18 08:20:13.700 [info] Running TeslaMateWeb.Endpoint with cowboy 2.10.0 at :::4000 (http)
teslamate-1  | 2024-06-18 08:20:13.703 [info] Access TeslaMateWeb.Endpoint at http://localhost
teslamate-1  | 2024-06-18 08:20:14.152 [info] GET /
teslamate-1  | 2024-06-18 08:20:14.172 [info] Starting logger for 'TessY'
teslamate-1  | 2024-06-18 08:20:14.181 [info] MQTT connection has been established
teslamate-1  | 2024-06-18 08:20:14.183 [info] Sent 200 in 31ms
teslamate-1  | 2024-06-18 08:20:14.198 [info] GET /
teslamate-1  | 2024-06-18 08:20:14.204 [info] Sent 200 in 6ms
teslamate-1  | 2024-06-18 08:20:14.328 [info] GET /
teslamate-1  | 2024-06-18 08:20:14.332 [info] Sent 200 in 4ms
teslamate-1  | 2024-06-18 08:20:14.391 car_id=1 [info] Start / :online
teslamate-1  | 2024-06-18 08:20:16.460 [info] GET /
teslamate-1  | 2024-06-18 08:20:16.465 [info] Sent 200 in 4ms

Screenshots

No response

Additional data

No response

Type of installation

Docker

Version

v1.29.1

Bolten88 commented 2 weeks ago

I figured out that when i do some trial and error that sometimes it works for a few seconds after the container starts. But after a few seconds it stops working again.

Bolten88 commented 2 weeks ago

Well, oke. I was trying to look at the dashboards from a remote location over VPN(WireGuard). This always worked. All other services/containers are working over the VPN connection. When I came home I saw everything is working as expected. Is it possible that something within grafana/teslamate is blocking access over VPN?

cwanja commented 1 week ago
teslamate-1  | 2024-06-18 08:20:07.468 [error] Postgrex.Protocol (#PID<0.2449.0>) disconnected: ** (Postgrex.Error) FATAL 57P01 (admin_shutdown) terminating connection due to administrator command

Looks like that is your issue. I would investigate there.

g-i-t-hub commented 1 day ago

Well, oke. I was trying to look at the dashboards from a remote location over VPN(WireGuard). This always worked. All other services/containers are working over the VPN connection. When I came home I saw everything is working as expected. Is it possible that something within grafana/teslamate is blocking access over VPN?

Did you find a solution for this? I have run into the same issue but am not returning to the base site for a few weeks so unable to test if grafana would work from within the network instead of over VPN. Until the last few weeks, VPN —> Grafana was working without any issue so this is a new problem.

Bolten88 commented 1 day ago

Well, oke. I was trying to look at the dashboards from a remote location over VPN(WireGuard). This always worked. All other services/containers are working over the VPN connection. When I came home I saw everything is working as expected. Is it possible that something within grafana/teslamate is blocking access over VPN?

Did you find a solution for this? I have run into the same issue but am not returning to the base site for a few weeks so unable to test if grafana would work from within the network instead of over VPN. Until the last few weeks, VPN —> Grafana was working without any issue so this is a new problem.

No, but i did not spent a lot of time in it since it is working from within the same network. I'm quite sure this is not me doing something wrong. I use the default settings with docker compose and it stopped working after my last update of teslamate. I hope the developer can do something about it.

JakobLichterfeld commented 8 hours ago

This is either a proxy or adblocker issue with newer grafana, not a teslamate issue

g-i-t-hub commented 6 hours ago

Hi Jakob, thanks for your suggestion. I’m not sure how it could be an ad blocker or proxy problem. I’ve got ad blockers turned off and the only proxy-like thing going on is the VPN into the network. The thing is, this worked previously and the only thing that’s changed recently is an update to Teslamate. Unfortunately, I won’t be at that site for a couple more weeks to try deploying the previous version to see if that fixes this issue.

Bolten88 commented 6 hours ago

I would love to test a previous version. But I’m not aware of my previous version. I update as soon as I see one available. And I do not know how to revert to a previous version.

JakobLichterfeld commented 5 hours ago

off and the only proxy-like thing going on is the VPN into the network. The thing is, this worked previously and the only thing that’s changed recently is an update to Teslamate.

As wrote before, Grafana base image is updated which is more sensitive to ad blockers, proxy VPN. That being said: tunneling in my network as well without any issues with v1.29.2. only needed to disable ad blocker on browser side

Bolten88 commented 4 hours ago

g said: tunneling in my network as well witho

I tested with disabling my ad blocker but it didn't fix the issue for me. Do you have any more guidance to fix this?

My setup is basicaly:

ISP --> Unifi Dream Machine --> LAN --> Docker Server --> Teslamate

The Dream Machine is my VPN server.

g-i-t-hub commented 3 hours ago

My setup is basicaly:

ISP --> Unifi Dream Machine --> LAN --> Docker Server --> Teslamate

I have similar with a UDM-Pro instead. The UDM-Pro is my VPN link into the network. The Docker runs on a Synology NAS. I don’t know enough about the technicalities to know why the new image may be more sensitive or what to do about it. Any guidance would be appreciated though. Thank you.

For what it’s worth, I’m trying this on an iPhone. I’ve tried Safari and Chrome browsers, with all browser extensions off including ad blockers. I’ve tried using L2TP VPN as well as the built-in UniFi WiFiman VPN, with the same results.