Closed tsandner closed 8 months ago
Try to connect to the container and run the suggested commands or crash the container and the related volumes and start again
你好,我有同样的问题。有人知道如何解决吗?
同样的问题 解决不了
Seems like it's maybe an authentication problem, which I can't figure out. Looking at teslamate logs gives exactly the same, but looking at the db container: 2022-11-27 18:03:03.883 UTC [1] LOG: database system is ready to accept connections 2022-11-27 18:03:05.503 UTC [35] FATAL: password authentication failed for user "teslamate" 2022-11-27 18:03:05.503 UTC [35] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"
Had the same issue, and for me it was resolved by doing docker system prune --all
and also docker volume prune --force
. If you look in the database log, there was a line that essentially said "already found a 'teslamate' database in this volume, so i'm going to use that" which in my case meant the previous password I tried to configure (and failed because YAML sucks and I have a hard time remembering when to use quotes for strings) for the teslamate database user was still configured, thus it getting the authentication failed message. Hope that resolves this error for others!
I had the same problem. Used a long and complicated password with alot of special letters in them. The teslamate was restarting constantly. Tried the prune commands that @jtuckr posted with no luck. Same problem. Installed portainer https://pimylifeup.com/raspberry-pi-portainer/ and deleted every instance of the teslamate I could find. Under containers I stopped and deleted teslamate. Under volume I did the same. As well under Images. Then I tried the docker-compose up -d with shorter and less complicated passwords and everything works.
Just don't understand why it happened , when I tried to deploy it in my NAS just never worked , but everything is going well on my vps, and the errors is exactly same as it up there!
Testmate container just keep restarting ,
The resource is totally ok there , only 20% usage of CPU and similar in RAM
And i also delete every container of Teslamate related , reinstall for hundreds times, nothing changed
Any one have any clue for the issue????
try the following command (enter Ctrl+C to exit following the logs) and check if there any errors docker-compose logs -f
try the following command (enter Ctrl+C to exit following the logs) and check if there any errors
docker-compose logs -f
tesla-teslamate-1 | The full error report is shown below. tesla-teslamate-1 | tesla-teslamate-1 | ** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2965ms. This means requests are coming in and your connection pool cannot serve them fast enough. You can address this by: tesla-teslamate-1 | tesla-teslamate-1 | 1. Ensuring your database is available and that you can connect to it tesla-teslamate-1 | 2. Tracking down slow queries and making sure they are running fast enough tesla-teslamate-1 | 3. Increasing the pool_size (although this increases resource consumption) tesla-teslamate-1 | 4. Allowing requests to wait longer by increasing :queue_target and :queue_interval tesla-teslamate-1 | tesla-teslamate-1 | See DBConnection.start_link/2 for more information tesla-teslamate-1 | tesla-teslamate-1 | (ecto_sql 3.10.1) lib/ecto/adapters/sql.ex:913: Ecto.Adapters.SQL.raise_sql_call_error/1 tesla-teslamate-1 | (elixir 1.15.0-rc.1) lib/enum.ex:1693: Enum."-map/2-lists^map/1-1-"/2 tesla-teslamate-1 | (ecto_sql 3.10.1) lib/ecto/adapters/sql.ex:1005: Ecto.Adapters.SQL.execute_ddl/4 tesla-teslamate-1 | (ecto_sql 3.10.1) lib/ecto/migrator.ex:738: Ecto.Migrator.verbose_schema_migration/3 tesla-teslamate-1 | (ecto_sql 3.10.1) lib/ecto/migrator.ex:552: Ecto.Migrator.lock_for_migrations/4 tesla-teslamate-1 | (ecto_sql 3.10.1) lib/ecto/migrator.ex:428: Ecto.Migrator.run/4 tesla-teslamate-1 | (ecto_sql 3.10.1) lib/ecto/migrator.ex:170: Ecto.Migrator.with_repo/3 tesla-teslamate-1 | nofile:1: (file) tesla-database-1 | 2023-09-28 04:02:57.132 UTC [3046] FATAL: password authentication failed for user "teslamate" tesla-database-1 | 2023-09-28 04:02:57.132 UTC [3046] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256" tesla-database-1 | 2023-09-28 04:02:57.133 UTC [3045] FATAL: password authentication failed for user "teslamate" tesla-database-1 | 2023-09-28 04:02:57.133 UTC [3045] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256" tesla-database-1 | 2023-09-28 04:02:58.390 UTC [3047] FATAL: password authentication failed for user "teslamate" tesla-database-1 | 2023-09-28 04:02:58.390 UTC [3047] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256" tesla-teslamate-1 exited with code 1
And I actually use same yaml file as my VPS setting,
Message in log is not correct ? It says at the beginning that DB connection fails. So the container stops except if in the config you say that it should always restart and then your enter in a no end loop of restart
Just don't understand why it happened , when I tried to deploy it in my NAS just never worked , but everything is going well on my vps, and the errors is exactly same as it up there!
Testmate container just keep restarting ,
The resource is totally ok there , only 20% usage of CPU and similar in RAM
And i also delete every container of Teslamate related , reinstall for hundreds times, nothing changed
Any one have any clue for the issue????
Problem solved for me , the Grafana port , the default 5432 port is already used by other process, you need to change to a new one for grafana in your docker-compose.yml file ,once done , run the docker-compose up -d then all works
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Had the same issue, and for me it was resolved by doing
docker system prune --all
and alsodocker volume prune --force
. If you look in the database log, there was a line that essentially said "already found a 'teslamate' database in this volume, so i'm going to use that" which in my case meant the previous password I tried to configure (and failed because YAML sucks and I have a hard time remembering when to use quotes for strings) for the teslamate database user was still configured, thus it getting the authentication failed message. Hope that resolves this error for others!
Thanks, clean up resolves the auth issue
Is there an existing issue for this?
What happened?
I'm new to teslamate and installed a new Ubuntu 22.04.1 LTS and deployed teslamate. I could loginto the teslamate web ui and provide access key and refresh token and I could log into grafana, but grafana showed "query data issues" and I thougt it might be the issue with a space before the database passowrd like described here: https://github.com/adriankumpf/teslamate/discussions/2773
I've decided to perform a fresh deployment and killed all containers and did a
docker system prune --all
and did a fresh deployment viadocker-compose up -d
after adjusting the docker-compose.yml.However for some reason the teslamate container keeps restarting and it looks liek there is some issue with the db conneciton but I really don't know where this is coming from since I pruned all containers before.
Expected Behavior
No response
Steps To Reproduce
No response
Relevant log output
Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
1.27.1 (?)