Replies: 12 comments 14 replies
-
cc @zackpollard |
Beta Was this translation helpful? Give feedback.
-
immich=# \d+ geodata_places |
Beta Was this translation helpful? Give feedback.
-
i execute |
Beta Was this translation helpful? Give feedback.
-
That's strange. You can try renaming it and see if it helps: ALTER TABLE geodata_places RENAME CONSTRAINT geodata_places_pkey1 TO geodata_places_pkey; |
Beta Was this translation helpful? Give feedback.
-
Zip |
Beta Was this translation helpful? Give feedback.
-
I believe my database is having problems, and I'll have to reset it. |
Beta Was this translation helpful? Give feedback.
-
I recovered a backup from yesterday, it gave the same error, however, when I ran the command that @skatsubo recommended it worked.
|
Beta Was this translation helpful? Give feedback.
-
I don't think this is a coincidence, as I encontered the same issue when upgrading immich from v1.134.0 to v1.136.0. The
|
Beta Was this translation helpful? Give feedback.
-
I also have this issue, and rolled back to V1.35.3 |
Beta Was this translation helpful? Give feedback.
-
Similar issue on upgrade to 1.136.0.
For me, the error wasn't clear about which key, had to find out myself by running immich=# \d+ geodata_places;
[......]
Indexes:
"geodata_places_tmp_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='100')
[......] Then run the ALTER TABLE and restart the immich-server container ALTER TABLE geodata_places RENAME CONSTRAINT geodata_places_tmp_pkey TO geodata_places_pkey; After that it worked fine ✅ |
Beta Was this translation helpful? Give feedback.
-
Interesting. Something weird is happening. There is zoo of auto-generated index names instead of the expected
Related/duplicate issue: (Partial?) fix is ready: |
Beta Was this translation helpful? Give feedback.
-
I am experiencing this same error with Immich after updating in TrueNAS Scale... how would I go about implementing this fix in TrueNAS? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i received this error:
Initializing Immich v1.136.0
Detected CPU Cores: 4
Starting api worker
Starting microservices worker
[Nest] 7 - 07/24/2025, 7:24:24 PM LOG [Microservices:EventRepository] Initialized websocket server
[Nest] 18 - 07/24/2025, 7:24:25 PM LOG [Api:EventRepository] Initialized websocket server
[Nest] 7 - 07/24/2025, 7:24:26 PM LOG [Microservices:DatabaseRepository] targetLists=1, current=1 for clip_index of 112306 rows
[Nest] 7 - 07/24/2025, 7:24:26 PM LOG [Microservices:DatabaseRepository] targetLists=256, current=256 for face_index of 181495 rows
[Nest] 7 - 07/24/2025, 7:24:26 PM LOG [Microservices:DatabaseRepository] Running migrations, this may take a while
Query failed : {
durationMs: 5.861652999999933,
error: PostgresError: multiple primary keys for table "geodata_places" are not allowed
at ErrorResponse (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:794:26)
at handle (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:480:6)
at Socket.data (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:315:9)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
severity_local: 'ERROR',
severity: 'ERROR',
code: '42P16',
file: 'index.c', line: '221',
routine: 'index_check_primary_key'
},
sql: 'ALTER TABLE "geodata_places" ADD CONSTRAINT "geodata_places_pkey" PRIMARY KEY ("id");',
params: []
}
Beta Was this translation helpful? Give feedback.
All reactions