-
Hi, I just installed the TeslaMate 1.27.0 on my Synology DS420+ via Docker (v20.10.3, apparently) two days ago. I used the generic docker-compose file from the docker installation guide, though I modified the whole setup a bit later manually:
So far, I am able to access TeslaMate's and Grafana's web interface, and TeslaMate seems to be writing into the database correctly – I tried looking into the postgres database and there seems to be some data; however, Grafana keeps throwing "query data errors" for everything, even though it should able to connect and access the database. This is the returned error:
The docker-compose logs shows Grafana repeatedly making complaints like these (apparently whenever I ask it to query the database):
Looks like Postgres never complained; though today there's been a flood of API timeout errors and stale data from teslamate, but this happened after the Grafana issue and should be unrelated. Quick nmap test from an Alpine-Linux container in the same bridge network shows that all containers' host name works, and all containers other then mosquitto have open ports as required (4000, 3000, 5432). I don't know how to send a Postgres query from command line, so I haven't try that. Anything else should I provide? Any recommendations as to what to next? Thanks for any help in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
So it looks like the reason is that when I am following the docker-compose.yml file, wherever there is things like To Fix, just change the password to one that have no space:
To Avoid, just make sure you delete the space before |
Beta Was this translation helpful? Give feedback.
-
Though @Bz16 has given the answer, would like to share a quick way to debug this issue. |
Beta Was this translation helpful? Give feedback.
So it looks like the reason is that when I am following the docker-compose.yml file, wherever there is things like
- DATABASE_PASS= #insert your secure database password!
,I replaced only
#
and the string after#
to my password of choice, like so:- DATABASE_PASS= my-password-is-very-safe
Thus the password environmental variables all include a prefixed space. Looks like Grafana strips the space when sending the query and that causes all the errors.
To Fix, just change the password to one that have no space:
psql -U teslamate -d teslamate
\passw…