-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to successfully start Teslamate instance when messing with db before starting #4533
Comments
Thanks for reporting, I'm not able to reproduce your issue. May I ask you to share your exact commands? Pleae ensure you really use https://docs.teslamate.org/docs/maintenance/backup_restore and ensure copying everything including |
Many times, yes. I have almost 6 years of data in my install (3-4 years of running Teslamate, plus import of TeslaFi data from around May 2019), not sure how much that has to do with it. I finally got it to successfully start yesterday by setting DATABASE_POOL_SIZE=150 in the Teslamate container, and set the following in the Postgres postgresql.conf file: max_connections = 200 |
Glad you solved your issue. |
I think what I did was more of a bandaid, not a fix. Running this on an Synology RS1221+. |
Is there an existing issue for this?
What happened?
I have run into this issue before, but in the past I was able to follow the steps to backup, wipe, and restore the database to get things up and running again.
No other config/env changes were made between the system working and not working - I just restarted the main Teslamate service, and it failed to restart.
Initially I was running against a v15 Postgres container, but I have also tried v17 with no change. I have tried increasing the DATABASE_POOL_SIZE environment variable in the Teslamate container without any improvement. I have been running Teslamate for about 3-4 years. This is my second Tesla, I even tried deleting the data from all tables related to my first car (owned 2019 until late 2022) to see if it helped to prune some data. No other services/containers are using the Postgres container, it is dedicated to Teslamate. I have tried truncating and renaming the migration table as well.
Seems like the Ecto commands are relevant to the Teslamate container, but I couldn't figure out a way to run them because the container immediately fails and stops.
Expected Behavior
Successfully starting the Teslamate container.
Steps To Reproduce
Stop Teslamate container
Perform backup of DB
Run queries to reset DB
Perform restore of DB
Start Teslamate container
Relevant log output
Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
1.32.0
The text was updated successfully, but these errors were encountered: