alexeiw123
Member
Thanks.If you can share the output of top and also the API errors (without any location data) we might be able to spot something.
Here's the top contents
Code:
top - 08:03:40 up 22:19, 2 users, load average: 0.06, 0.02, 0.00
Tasks: 167 total, 1 running, 166 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.3 us, 0.7 sy, 0.0 ni, 98.9 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
MiB Mem : 909.6 total, 46.6 free, 294.7 used, 568.3 buff/cache
MiB Swap: 100.0 total, 3.1 free, 96.9 used. 420.4 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31900 10000 20 0 2592032 65104 4280 S 2.0 7.0 14:00.02 beam.smp
1060 472 20 0 792176 40352 19440 S 1.0 4.3 4:17.45 grafana-server
34437 lex 20 0 9844 3100 2500 R 1.0 0.3 0:00.17 top
15 root 20 0 0 0 0 I 0.3 0.0 0:44.69 rcu_preempt
599 root 20 0 2165828 24872 6788 S 0.3 2.7 5:30.13 dockerd
1061 1883 20 0 3732 268 196 S 0.3 0.0 1:01.85 mosquitto
32033 999 20 0 216232 30372 27284 S 0.3 3.3 0:15.59 postgres
33596 root 20 0 815812 79024 15420 S 0.3 8.5 0:41.44 rclone
33979 root 20 0 0 0 0 I 0.3 0.0 0:01.95 kworker/2:1-events
34423 lex 20 0 16072 4472 3260 S 0.3 0.5 0:00.02 sshd
1 root 20 0 165224 5292 3472 S 0.0 0.6 0:16.90 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.37 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
5 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 slub_flushwq
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
10 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_kthre
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_rude_
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_trace
14 root 20 0 0 0 0 S 0.0 0.0 0:07.81 ksoftirqd/0
16 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/0
17 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
And some of the logs where the API errors are:
Code:
teslamate_1 | 2022-09-07 08:37:53.849 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9823.485 ms)
teslamate_1 | 2022-09-07 08:37:53.849 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 08:37:53.850 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 08:38:16.238 [notice] :alarm_handler: {:clear, TeslaMate.Vehicles.Vehicle_1_api_error}
teslamate_1 | 2022-09-07 08:38:23.086 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9233.867 ms)
teslamate_1 | 2022-09-07 08:38:23.087 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 08:38:23.088 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 08:38:52.325 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9233.441 ms)
teslamate_1 | 2022-09-07 08:38:52.326 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 08:38:52.326 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 08:39:16.239 [notice] :alarm_handler: {:set, {TeslaMate.Vehicles.Vehicle_1_api_error, :fuse_blown}}
teslamate_1 | 2022-09-07 08:39:21.570 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9240.525 ms)
teslamate_1 | 2022-09-07 08:39:21.571 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 08:39:21.571 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 08:39:50.810 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9234.405 ms)
teslamate_1 | 2022-09-07 08:39:50.811 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 08:39:50.811 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 08:40:20.053 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9239.067 ms)
teslamate_1 | 2022-09-07 08:40:20.054 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 08:40:20.054 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 08:40:49.281 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9222.344 ms)
teslamate_1 | 2022-09-07 08:40:49.282 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 08:40:49.283 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 08:46:16.246 [notice] :alarm_handler: {:clear, TeslaMate.Vehicles.Vehicle_1_api_error}
teslamate_1 | 2022-09-07 08:56:30.770 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{elevation: 38, est_heading: 15, est_lat: <SNIP>, est_lng: <SNIP>, est_range: 178, heading: 15, odometer: 25488.7, power: 0, range: 217, shift_state: nil, soc: 82, speed: nil, time: ~U[2022-09-07 08:56:29.931Z]}
teslamate_1 | 2022-09-07 09:07:44.145 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{elevation: 38, est_heading: 15, est_lat: <SNIP>, est_lng: <SNIP>, est_range: 178, heading: 15, odometer: 25488.7, power: 0, range: 217, shift_state: nil, soc: 82, speed: nil, time: ~U[2022-09-07 09:07:43.332Z]}
teslamate_1 | 2022-09-07 09:16:02.343 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9760.317 ms)
teslamate_1 | 2022-09-07 09:16:02.344 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:16:02.345 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:16:31.665 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9317.888 ms)
teslamate_1 | 2022-09-07 09:16:31.666 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:16:31.666 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:17:00.905 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9234.557 ms)
teslamate_1 | 2022-09-07 09:17:00.905 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:17:00.906 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:17:30.129 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9219.539 ms)
teslamate_1 | 2022-09-07 09:17:30.129 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:17:30.130 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:17:59.358 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9224.305 ms)
teslamate_1 | 2022-09-07 09:17:59.358 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:17:59.359 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:18:16.278 [notice] :alarm_handler: {:set, {TeslaMate.Vehicles.Vehicle_1_api_error, :fuse_blown}}
teslamate_1 | 2022-09-07 09:18:28.599 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9236.034 ms)
teslamate_1 | 2022-09-07 09:18:28.600 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:18:28.601 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:20:06.187 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9652.942 ms)
teslamate_1 | 2022-09-07 09:20:06.188 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:20:06.189 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:20:35.421 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9228.162 ms)
teslamate_1 | 2022-09-07 09:20:35.422 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:20:35.423 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:21:04.650 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9224.155 ms)
teslamate_1 | 2022-09-07 09:21:04.652 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:21:04.653 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:23:47.830 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9746.952 ms)
teslamate_1 | 2022-09-07 09:23:47.831 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:23:47.832 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:24:17.134 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9299.267 ms)
teslamate_1 | 2022-09-07 09:24:17.135 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:24:17.136 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:24:46.459 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9319.363 ms)
teslamate_1 | 2022-09-07 09:24:46.460 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:24:46.461 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:25:15.682 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9218.289 ms)
teslamate_1 | 2022-09-07 09:25:15.683 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:25:15.684 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:26:42.840 [error] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> error: "socket closed" (343.387 ms)
teslamate_1 | 2022-09-07 09:26:42.840 [warning] TeslaApi.Error / socket closed
teslamate_1 | 2022-09-07 09:26:42.841 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:28:21.650 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9746.037 ms)
teslamate_1 | 2022-09-07 09:28:21.651 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2022-09-07 09:28:21.651 car_id=1 [error] Error / :unknown
teslamate_1 | 2022-09-07 09:28:50.887 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9232.038 ms)
This was while waiting for the teslamate landing page to load. It took perhaps 2 minutes or so to load, and I actually got some graphics this time instead of just a text webpage (for the first time in days).
What it usually looks like - with location hidden this time