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.
After I run:
docker-compose down

I see:
Code:
docker ps
CONTAINER ID   IMAGE                        COMMAND                  CREATED        STATUS        PORTS                     NAMES
05d2a8c43ea8   teslamate/teslamate:latest   "tini -- /bin/sh /en…"   23 hours ago   Up 4 hours    0.0.0.0:49159->4000/tcp   teslamate-teslamate1
8f62aacde114   teslamate/grafana:latest     "/run.sh"                23 hours ago   Up 23 hours   0.0.0.0:49153->3000/tcp   teslamate-grafana1


Did you use Force Stop as per the earlier screenshot of the docker interface you posted?
Grafana1 copy.jpg

I don't know how to create the import directory.

use these commands again to get to the right location
  1. Type sudo -i (this changes you to root access to the synology box)
  2. You will get a password prompt...type in your admin password again
  3. You will now get a prompt that looks like root@servername:
  4. Now change directories to your docker directory. Type cd /volume1/@docker (note the @ before docker)
  5. Your prompt will now show root@servername:/volume1/@docker#

To create a new directory use the mkdir command e.g.if you are in the /volume1/@docker directory just type:
Code:
mkdir import
 
Did you use Force Stop as per the earlier screenshot of the docker interface you posted?
View attachment 823256



use these commands again to get to the right location


To create a new directory use the mkdir command e.g.if you are in the /volume1/@docker directory just type:
Code:
mkdir import
Thank you for pointing out how to do the forced stop.
I did force stop it.
I did docker ps Nothing was showing.
I did the:
Code:
mkdir import
I started both:
teslamate-teslamate1
teslamate-grafana1

I ran:
docker-compose up

It's different this time. In the Windows Power Shell it's logging
waiting for postgres at 127.0.0.1:5432

continuously
 
I don't know if this might help:

postgresql.conf
Code:
hba_file = '/etc/postgresql/pg_hba.conf'
ident_file = '/etc/postgresql/pg_ident.conf'

external_pid_file = '/run/postgresql/postmaster.pid'

listen_addresses = '127.0.0.1'
max_connections = 944

wal_buffers = 16MB

log_destination = 'syslog'
syslog_ident = 'postgres'
client_min_messages = notice
log_min_messages = warning
log_min_error_statement = error
log_min_duration_statement = -1

track_activities = off
track_counts = off

autovacuum = off

datestyle = 'iso, mdy'
lc_messages = 'C'
lc_monetary = 'C'
lc_numeric = 'C'
lc_time = 'C'

escape_string_warning = off
synchronize_seqscans = off

standard_conforming_strings = off

synchronous_commit = off

# Following parameters for upgrading/migrating broken db
ignore_checksum_failure = off
zero_damaged_pages = off
ignore_system_indexes = off

# Following parameters will be modified dynamically
shared_buffers = 483360kB
effective_cache_size = 1933442kB
TimeZone = US/Pacific

# Allow user to customize the configuration. It must be the last one
include_if_exists = '/etc/postgresql/user.conf.d/postgresql.user.conf'

I don't know if postgresql needs to be running or if it is running.
 
Last edited:
I don't know if this might help:

docker version
Code:
Client:
 Version:           20.10.3
 API version:       1.41
 Go version:        go1.15.13
 Git commit:        b455053
 Built:             Thu Aug 19 07:13:24 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.3
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.15.13
  Git commit:       a3bc36f
  Built:            Thu Aug 19 07:11:25 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.4.3
  GitCommit:        ea3508454ff2268c32720eb4d2fc9816d6f75f88
 runc:
  Version:          v1.0.0-rc93
  GitCommit:        31cc25f16f5eba4d0f53e35374532873744f4b31
 docker-init:
  Version:          0.19.0
  GitCommit:        ed96d00
 
Is this what it should look like?

docker-compose ps
Code:
       Name                     Command               State           Ports
------------------------------------------------------------------------------------
docker_database_1    docker-entrypoint.sh postgres    Up      5432/tcp
docker_grafana_1     /run.sh                          Up      0.0.0.0:3000->3000/tcp
docker_mosquitto_1   /docker-entrypoint.sh mosq ...   Up      1883/tcp
docker_teslamate_1   tini -- /bin/sh /entrypoin ...   Up      0.0.0.0:4000->4000/tcp
 
Is this what it should look like?

docker-compose ps
Code:
       Name                     Command               State           Ports
------------------------------------------------------------------------------------
docker_database_1    docker-entrypoint.sh postgres    Up      5432/tcp
docker_grafana_1     /run.sh                          Up      0.0.0.0:3000->3000/tcp
docker_mosquitto_1   /docker-entrypoint.sh mosq ...   Up      1883/tcp
docker_teslamate_1   tini -- /bin/sh /entrypoin ...   Up      0.0.0.0:4000->4000/tcp
Looking better. I don't have the 0.0.0.0 in front of mine, but mine is on a GCP server so networking may be different.

Let me check the other posts and get back to you.
 
Before I couldn't get docker_teslamate_1 to run.
Now it's running!!!!
View attachment 823268
I am still getting:
http://192.168.<My Good IP address entered here>:4000/
The connection was reset
You have too many containers running. There should be 4 (ignore my teslamateagile, that's a separate project):

Bash:
CONTAINER ID   IMAGE                              COMMAND                  CREATED        STATUS       PORTS                                       NAMES
204f95795b5d   postgres:12                        "docker-entrypoint.s…"   4 weeks ago    Up 4 weeks   5432/tcp                                    teslamate_database_1
dbc8d187c5d3   eclipse-mosquitto:1.6              "/docker-entrypoint.…"   2 months ago   Up 4 weeks   0.0.0.0:1883->1883/tcp, :::1883->1883/tcp   teslamate_mosquitto_1
df3a654efdca   teslamate/teslamate:latest         "tini -- /bin/sh /en…"   5 months ago   Up 4 weeks   0.0.0.0:4000->4000/tcp, :::4000->4000/tcp   teslamate_teslamate_1
8045f17ef793   teslamate/grafana:latest           "/run.sh"                5 months ago   Up 4 weeks   0.0.0.0:3000->3000/tcp, :::3000->3000/tcp   teslamate_grafana_1
f1ca036b0b06   mattjeanes/teslamateagile:latest   "dotnet TeslaMateAgi…"   5 months ago   Up 4 weeks                                               teslamate_teslamateagile_1
 
They ran docker-compose ps rather than docker ps -- I assume docker-compose only shows the things that are under its control. So somehow they've managed to get two extra containers running, which will cause all sorts of problems.
The OP said nothing was running under docker:

Thank you for pointing out how to do the forced stop.
I did force stop it.
I did docker ps Nothing was showing.
Worth checking that the docker-compose ps and the docker GUI match though.

I started both:
teslamate-teslamate1
teslamate-grafana1

I ran:
docker-compose up

@Docfxit when you say above that you started both teslamate1 and grafana1, did you do that using docker-compose up or did you do start them separately and then do docker-compose up?

How many yml files have you got?
 
A couple of things to try.

in your yml file change DATABASE_HOST=database to
DATABASE_HOST=db
Then restart

Can you also run the following command from the command line on the synology box?



There is apparently a hidden @docker directory/file. Just want to see if that exists on your box.
I have changed:
DATABASE_HOST=db
Then restart

Code:
root@ExtraDrive:/volume1/@docker# ls -la
total 28
drwx--x--x  1 root    root    262 Jul  1 08:47 .
drwxr-xr-x  1 root    root    492 Jun 30 18:31 ..
drwx-----x  1 root    root     20 Jun 29 15:50 btrfs
drwx--x--x  1 root    root    132 Jun 29 12:53 buildkit
drwx--x--x  1 root    root     12 Jun 29 12:53 containerd
drwx-----x  1 root    root    768 Jul  1 08:47 containers
-rwxrwxrwx+ 1 docfxit users  1587 Jul  1 08:38 docker-compose.yml
-rw-r--r--  1 root    root  12288 Jun 29 18:46 .docker-compose.yml.swp
drwx------  1 root    root     10 Jun 29 12:53 image
drwxr-xr-x  1 root    root      0 Jun 30 15:45 import
drwxr-x---  1 root    root     10 Jun 29 12:53 network
drwx------  1 root    root     20 Jun 29 12:53 plugins
drwx------  1 root    root      0 Jun 30 18:34 runtimes
drwx------  1 root    root      0 Jun 29 12:53 swarm
-rw-------  1 root    root  12288 Jun 29 18:27 .swp
drwx------  1 root    root      0 Jun 30 18:34 tmp
drwx------  1 root    root      0 Jun 29 12:53 trust
drwx-----x  1 root    root    876 Jul  1 08:47 volumes

Code:
root@ExtraDrive:/volume1# ls -la
total 4
drwxr-xr-x   1 root                root                 492 Jun 30 18:31  .
drwxr-xr-x  23 root                root                4096 Jun 30 18:34  ..
drwxr-xr-x   1 root                root                 270 Jun 30 14:29  @appconf
drwxr-xr-x   1 root                root                 270 Jun 30 14:29  @appdata
drwxr-xr-x   1 root                root                 270 Jun 30 14:29  @apphome
drwxr-xr-x   1 root                root                 246 Jun 30 18:38  @appstore
drwxr-xr-x   1 root                root                 246 Jun 30 18:38  @apptemp
drwx------   1 root                root                   0 Jun 30 18:27  @autoupdate
drwxr-xr-x   1 admin               users                136 Jun 29 14:23  @database
drwxr-xr-x+  1 root                root                  22 Jun 29 15:46  docker
drwx--x--x   1 root                root                 262 Jul  1 08:47  @docker
d---------+  1 root                root                  28 Jul  1 00:12 'Docker Files'
drwxrwxrwx+  1 root                root                 130 Jul  1 00:05  @eaDir
d---------+  1 root                root                  12 Mar 24  2019  music
d---------+  1 root                root                 262 Nov 12  2020  NASDrive
drwxr-xr-x+  1 PhotoStation        PhotoStation          48 Jul  9  2021  photo
drwxr-xr-x   1 root                root                  88 Jun 30 18:31  @S2S
drwxr-xr-x   1 root                root                  16 Dec 12  2018  @sharesnap
drwxr-xr-x   1 root                root                  48 Jun 29 14:40  @ssbackup
drwxrwxrwx   1 root                root                  38 Dec 10  2018  surveillance
drwxr-xr-x   1 SurveillanceStation SurveillanceStation  404 Jun 29 14:44  @surveillance
drwxr-xr-x   1 SynoFinder          SynoFinder            26 Jun 29 14:23  @SynoFinder-etc-volume
drwxr-xr-x   1 SynoFinder          SynoFinder            84 Jun 29 14:23  @SynoFinder-log
drwxr-xr-x   1 root                root                  24 Jun 29 14:25  @SynologyApplicationService
drwxrwxrwt   1 root                root                  70 Jul  1 00:05  @tmp
drwxr-xr-x   1 root                root                  74 Jun 30 18:31  @userpreference
d---------+  1 root                root                  12 Jun 27 18:08  video

It looks like I do.
 
You have too many containers running. There should be 4 (ignore my teslamateagile, that's a separate project):

Bash:
CONTAINER ID   IMAGE                              COMMAND                  CREATED        STATUS       PORTS                                       NAMES
204f95795b5d   postgres:12                        "docker-entrypoint.s…"   4 weeks ago    Up 4 weeks   5432/tcp                                    teslamate_database_1
dbc8d187c5d3   eclipse-mosquitto:1.6              "/docker-entrypoint.…"   2 months ago   Up 4 weeks   0.0.0.0:1883->1883/tcp, :::1883->1883/tcp   teslamate_mosquitto_1
df3a654efdca   teslamate/teslamate:latest         "tini -- /bin/sh /en…"   5 months ago   Up 4 weeks   0.0.0.0:4000->4000/tcp, :::4000->4000/tcp   teslamate_teslamate_1
8045f17ef793   teslamate/grafana:latest           "/run.sh"                5 months ago   Up 4 weeks   0.0.0.0:3000->3000/tcp, :::3000->3000/tcp   teslamate_grafana_1
f1ca036b0b06   mattjeanes/teslamateagile:latest   "dotnet TeslaMateAgi…"   5 months ago   Up 4 weeks                                               teslamate_teslamateagile_1
docker ps
Code:
CONTAINER ID   IMAGE                        COMMAND                  CREATED          STATUS          PORTS                     NAMES
96def03815c3   teslamate/teslamate:latest   "tini -- /bin/sh /en…"   13 minutes ago   Up 13 minutes   0.0.0.0:4000->4000/tcp    docker_teslamate_1
83720b98d377   teslamate/grafana:latest     "/run.sh"                13 minutes ago   Up 13 minutes   0.0.0.0:3000->3000/tcp    docker_grafana_1
1864c4ea17b1   eclipse-mosquitto:2          "/docker-entrypoint.…"   13 minutes ago   Up 13 minutes   1883/tcp                  docker_mosquitto_1
c6ca4034852e   postgres:14                  "docker-entrypoint.s…"   13 minutes ago   Up 13 minutes   5432/tcp                  docker_database_1
05d2a8c43ea8   teslamate/teslamate:latest   "tini -- /bin/sh /en…"   40 hours ago     Up 11 minutes   0.0.0.0:49156->4000/tcp   teslamate-teslamate1
8f62aacde114   teslamate/grafana:latest     "/run.sh"                40 hours ago     Up 11 minutes   0.0.0.0:49155->3000/tcp   teslamate-grafana1

Code:
root@ExtraDrive:/volume1/@docker# docker-compose ps

       Name                     Command               State           Ports
------------------------------------------------------------------------------------
docker_database_1    docker-entrypoint.sh postgres    Up      5432/tcp
docker_grafana_1     /run.sh                          Up      0.0.0.0:3000->3000/tcp
docker_mosquitto_1   /docker-entrypoint.sh mosq ...   Up      1883/tcp
docker_teslamate_1   tini -- /bin/sh /entrypoin ...   Up      0.0.0.0:4000->4000/tcp

You didn't mention how you ran it.
 
docker ps
Code:
CONTAINER ID   IMAGE                        COMMAND                  CREATED          STATUS          PORTS                     NAMES
96def03815c3   teslamate/teslamate:latest   "tini -- /bin/sh /en…"   13 minutes ago   Up 13 minutes   0.0.0.0:4000->4000/tcp    docker_teslamate_1
83720b98d377   teslamate/grafana:latest     "/run.sh"                13 minutes ago   Up 13 minutes   0.0.0.0:3000->3000/tcp    docker_grafana_1
1864c4ea17b1   eclipse-mosquitto:2          "/docker-entrypoint.…"   13 minutes ago   Up 13 minutes   1883/tcp                  docker_mosquitto_1
c6ca4034852e   postgres:14                  "docker-entrypoint.s…"   13 minutes ago   Up 13 minutes   5432/tcp                  docker_database_1
05d2a8c43ea8   teslamate/teslamate:latest   "tini -- /bin/sh /en…"   40 hours ago     Up 11 minutes   0.0.0.0:49156->4000/tcp   teslamate-teslamate1
8f62aacde114   teslamate/grafana:latest     "/run.sh"                40 hours ago     Up 11 minutes   0.0.0.0:49155->3000/tcp   teslamate-grafana1

Code:
root@ExtraDrive:/volume1/@docker# docker-compose ps

       Name                     Command               State           Ports
------------------------------------------------------------------------------------
docker_database_1    docker-entrypoint.sh postgres    Up      5432/tcp
docker_grafana_1     /run.sh                          Up      0.0.0.0:3000->3000/tcp
docker_mosquitto_1   /docker-entrypoint.sh mosq ...   Up      1883/tcp
docker_teslamate_1   tini -- /bin/sh /entrypoin ...   Up      0.0.0.0:4000->4000/tcp

You didn't mention how you ran it.
You've got multiple teslamates running. How are you starting these?

1/ running docker-compose up -d to start everything
2/ something else?