Comments (6)
FYI, the user needs to run the docker-compose in one ssh window and let it continue to error itself out, while you connect to that docker install with the command to command line Postgres in another SSH window:
sudo docker-compose run --rm db psql -h db -U teslamate
I didn't know much about how Docker worked until today. Even less about Postgres. Took me forever to figure out how to connect to a Postgres database inside of a Docker container.
from teslamate.
Thanks for your quick help. It's working again!
Awesome!
There may be others affected by this problem as well. I'll pin this issue 👍
from teslamate.
Someone else reported the same issue today. The underlying problem is actually a quirk on Tesla's end.
They recently changed the IDs (!!!) of some cars. See timdorr/tesla-api#139
Unfortunately you have to fix it manually by updating the entry in the database table "cars". Change the eid of entry that has the vid 1749778265 to "36230209430047724" (I got those values from the log output you posted).
Edit: This is how it should be
eid: 36230209430047724
vid: 1749778265
from teslamate.
Well that's annoying of Tesla to do that.
kevin@NUC-TV:~/teslamate$ sudo docker-compose run --rm db psql -h db -U teslamate
[sudo] password for kevin:
Password for user teslamate:
psql (11.5 (Debian 11.5-1.pgdg90+1))
Type "help" for help.teslamate=# SELECT * from cars;
id | eid | vid | model | efficiency | inserted_at | updated_at
----+-------------------+------------+-------+------------+---------------------+---------------------
1 | 19822922099185452 | 1749778265 | M3 | 0.153 | 2019-07-31 17:46:32 | 2019-07-31 17:46:32
(1 row)teslamate=# UPDATE cars set vid=36230209430047724 ;
UPDATE 1
teslamate=#
That fixed that issue... now it's saying this:
teslamate_1 | Server: 192.168.10.51:4000 (http)
teslamate_1 | Request: GET /
teslamate_1 | ** (exit) exited in: :gen_statem.call(:"1", :summary, :infinity)
teslamate_1 | ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
This happens whenever I attempt to view the page at port:4000. Ideas?
from teslamate.
You might have changed the wrong id :)
This is how it should be:
eid: 36230209430047724
vid: 1749778265
from teslamate.
Yup, I did that wrong, had to delete the new car.
teslamate=# DELETE FROM cars where eid=36230209430047724;
DELETE 1
teslamate=# SELECT * from cars;
id | eid | vid | model | efficiency | inserted_at | updated_at
----+-------------------+-------------------+-------+------------+---------------------+---------------------
1 | 19822922099185452 | 36230209430047724 | M3 | 0.153 | 2019-07-31 17:46:32 | 2019-07-31 17:46:32
(1 row)teslamate=# update cars set eid=36230209430047724 ;
UPDATE 1
teslamate=# update cars set vid=1749778265 ;
UPDATE 1
teslamate=# SELECT * from cars;
id | eid | vid | model | efficiency | inserted_at | updated_at
----+-------------------+------------+-------+------------+---------------------+---------------------
1 | 36230209430047724 | 1749778265 | M3 | 0.153 | 2019-07-31 17:46:32 | 2019-07-31 17:46:32
(1 row)
Thanks for your quick help. It's working again!
from teslamate.
Related Issues (20)
- Battery Health - LFP "Usable (new)" calculation not realistic HOT 3
- Incorrect trace markers on Battery Health -> Battery Capacity by Mileage graph HOT 4
- Website Autobuild stopped working HOT 17
- Please continue to support manual installs for Teslamate! HOT 3
- Mention grafana-vs-code-extension in Contribution Docs HOT 5
- Error with backup command HOT 17
- MQTT Timeout / WithClauseError / Tortoise issue? HOT 3
- After updating to 1.28.2, Grafana can't create /var/lib/grafana-plugins - permission denied HOT 1
- Battery health KO HOT 45
- CI: mark and close stale issues and PR
- ci: code coverage not reporting since teslamate-org renaming HOT 2
- Docker Install Instructions - Needs improvement HOT 3
- Charges dashboard shows km instead of miles HOT 3
- Dog Mode not longer recognized HOT 4
- Status: 500. Message: db query error: pq: SSL is not enabled on the server HOT 1
- fails to start if dns not up on boot HOT 2
- Limited data in Grafana HOT 3
- Grafana container fails: "Failed to provision dashboards: failed to provision config teslamate_internal: context canceled" after upgrading to 1.28.2 HOT 3
- Where did cost_per_kw in Charges Dashbard go? HOT 1
- Having an issue with PostgreSQL and TeslaMate.Log.get_positions_without_elevation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslamate.