-
I'm using unraid, and rereading the only supported way for upgrading PostgreSQL described here https://docs.teslamate.org/docs/maintenance/upgrading_postgres , I first made sure that the process I took aligns with the backup procedure, but on the restore I made some errors due to the new changes to the DB needed before restoring. On the Backup and Restore page, it says to Create backup file I did this using the same pgdump command, specifying my own docker environment port specifics: I then used the unraid GUI and Adminer to perform the steps of upgrading the postgressql DB version from 15 -> 17, deleting existing previous dbs, and creating an (empty) new one The usual process to restore is usually something like the following, which i've used for other containers in the past: However, upon closer analysis on the restore procedure, i now see that additional changes are made to the database via the following before restoring:
My questions then:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You can run the "CREATE EXTENSION" psql instructions at anytime, it won't effect any data already restored. They will error if the extension is already installed. That is fine. I think it may not even matter if Teslamate is running at the time. Do not run the |
Beta Was this translation helpful? Give feedback.
-
i figured out the issue, i ended up having to delete some directories associated with teslamate-grafana and letting them reinitialize, which fixed things. |
Beta Was this translation helpful? Give feedback.
i figured out the issue, i ended up having to delete some directories associated with teslamate-grafana and letting them reinitialize, which fixed things.