ERROR: multiple primary keys... #5114
-
|
Hi, I'm upgrading my Teslamate RaspberryPi from Bookworm to Trixie. Teslamate on Bookworm has been running Teslamate 2.2.0 with Postgres 18 no problem since last week (was at 2.0.0 before with Postgres 17). I reinstalled Docker, Teslamate and while restoring the Teslamate backups, I'm seeing these: mixed, with the usual Is that a cause for concerned? The restore hasn't finished yet (4+ years worth of data takes a while to restore lol) I upgraded to a new SD card so I can easily return back to the old Bookworm system if needed... |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
|
Well, the restore has finished and after a brief look at the dashboard, everything seems to be there. Again, should these errors while restoring be a cause for alarm? |
Beta Was this translation helpful? Give feedback.
-
|
Looks a bit similar to #5035. Seems like the migration already created the tables before your restore. I can only assume you didn't follow the steps 1by 1. |
Beta Was this translation helpful? Give feedback.
-
|
Those are fine never had an issue with the upgrade before by following the procedure. It's the release notes of 2.2.0 that created confusion for me, especially these sentences "We use the latest dependencies and support PostgreSQL 18" and "Volume mounts have changed in PostgreSQL18". So does that mean that V2.2.0 only supports PostgreSQL 18 since you use the latest dependencies and the volume mounts have changed? Is PostgreSQL 17 still supported in V2.2.0? Will PostgreSQL 18 work with version prior to V2.2.0? So when do we upgrade to PostgreSQL 18? Before the upgrade to V2.2.0 or after? That line in the docker configuration also brought some confusion about losing data if misconfigured: Important Note: (for PostgreSQL 17 and below) Mount the data volume at /var/lib/postgresql/data and not at /var/lib/postgresql because mounts at the latter path WILL NOT PERSIST database data when the container is re-created. Hence why I mention the update path wasn't clear. I made a post about it earlier and added what I did (see #5107 (comment)) |
Beta Was this translation helpful? Give feedback.
-
Hi Did you find a solution for this? I've got the exactly same errors during restore, using the official guide |
Beta Was this translation helpful? Give feedback.
-
|
I submitted a pull request to fix the docs: #5190 |
Beta Was this translation helpful? Give feedback.
-
For me, after the restore, everything seems fine anyway. I didn't do anything else. It's been a few weeks now and all my drives and charges are accounted for. |
Beta Was this translation helpful? Give feedback.
--> #5035