Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

TeslaMate [megathread]

This site may earn commission on affiliate links.
Teslamate noob, I followed all the instructions to setup on RPI 3B+. I can get on the http://<IP address>:3000 but not on the http://<IP address>:4000, did some searches and the docker is running, restarted the pi a few times, checked the port to ensure it was being occupied... does anyone have any suggestions?
 
Teslamate noob, I followed all the instructions to setup on RPI 3B+. I can get on the http://<IP address>:3000 but not on the http://<IP address>:4000, did some searches and the docker is running, restarted the pi a few times, checked the port to ensure it was being occupied... does anyone have any suggestions?
What are you seeing in the log?

docker-compose logs teslamate

Oh, and what version of Teslamate are you using?
 
Last edited:
Teslamate noob, I followed all the instructions to setup on RPI 3B+. I can get on the http://<IP address>:3000 but not on the http://<IP address>:4000, did some searches and the docker is running, restarted the pi a few times, checked the port to ensure it was being occupied... does anyone have any suggestions?
To build on @init6, what software version are you running on the Pi?

I am going to point you proactively to this thread, as I am willing to bet you are facing the issues outlined here. Raspberry Pi: clock_gettime(CLOCK_MONOTONIC, _) failed: Opera...
 
  • Like
Reactions: init6
I run 2 loggers (TM and TL) and also consume the API for my own automation control, never had any issues
Good thought - I intend on running the Home Assistant api for charging based on PV excess production. Will report back on this if we ever get our car in the forgotten Tesla land called Australia. "No cars for you" - channelling Seinfeld.
 
  • Like
  • Funny
Reactions: goRt and cwanja
Can anyone guide me to manually backing up my entire Teslamate database? As in, copying the whole directory that the data is stored in so that I can later restore it?

I've had Teslamate running on google cloud for a couple of months and was trying to get the google drive backup running. I ran into a couple of different issues and in my effort to figure out how to fix it, I've broken the whole Teslamate install. I have a feeling that my database may still be stored on the cloud, I'm just not sure how to get it off. I've now managed to successfully create a teslamate.bck file, but it is only 38kb, which doesn't seem big enough. It is quite possible the data is already gone, which would be a shame but not the end of the world.

EDIT: I realise someone will probably tell me that manually backing up the database directory will give me exactly the same data (or blank database) that I've already managed to extract, but I wanted to make sure I'd tried everything before I wipe and start afresh.
 
Last edited:
Can anyone guide me to manually backing up my entire Teslamate database? As in, copying the whole directory that the data is stored in so that I can later restore it?

I've had Teslamate running on google cloud for a couple of months and was trying to get the google drive backup running. I ran into a couple of different issues and in my effort to figure out how to fix it, I've broken the whole Teslamate install. I have a feeling that my database may still be stored on the cloud, I'm just not sure how to get it off. I've now managed to successfully create a teslamate.bck file, but it is only 38kb, which doesn't seem big enough. It is quite possible the data is already gone, which would be a shame but not the end of the world.

EDIT: I realise someone will probably tell me that manually backing up the database directory will give me exactly the same data (or blank database) that I've already managed to extract, but I wanted to make sure I'd tried everything before I wipe and start afresh.

Can you login to the database directly? That should tell you if the data is still there.
What does
docker-compose ps
look like?
 
  • Like
Reactions: otherslackjaw
Much easier for us all if you copy and paste the outputs.

What about logging into the database. Have you tried that?

Sure, here's the output, which I've tried to format but the forum removes the spaces. Thanks for helping.

Name Command State Ports
---------------------------------------------------------------------------------------------------------
myusername_database_1 docker-entrypoint.sh postgres Up 5432/tcp
myusername_grafana_1 /run.sh Up 3000/tcp
myusername_mosquitto_1 /docker-entrypoint.sh mosq ... Up 127.0.0.1:1883->1883/tcp
myusername_proxy_1 /entrypoint.sh --global.se ... Up 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
myusername_teslamate_1 tini -- /bin/sh /entrypoin ... Up 4000/tcp

Both the teslamate landing page and the grafana web service are 404ing from my browser.
 
You can use the code option to preserve formatting:

Code:
        Name                       Command               State                    Ports                 
---------------------------------------------------------------------------------------------------------
init6tini_database_1    docker-entrypoint.sh postgres    Up      5432/tcp                               
init6tini_grafana_1     /run.sh                          Up      3000/tcp                               
init6tini_mosquitto_1   /docker-entrypoint.sh /usr ...   Up      127.0.0.1:1883->1883/tcp               
init6tini_proxy_1       /entrypoint.sh --global.se ...   Up      0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
init6tini_teslamate_1   tini -- /bin/sh /entrypoin ...   Up      4000/tcp                               
teslamate_mqtt_api      ./tesla-mqtt-api                 Up      0.0.0.0:3040->3000/tcp

Have you tried logging onto the database?
 
  • Like
Reactions: otherslackjaw