2025-09-08T13:20:54.307338932Z Initializing Immich v1.136.0 2025-09-08T13:20:54.323341544Z Detected CPU Cores: 4 2025-09-08T13:20:57.718938522Z Starting api worker 2025-09-08T13:20:57.727305529Z Starting microservices worker 2025-09-08T13:21:01.840593847Z [Nest] 7 - 09/08/2025, 1:21:01 PM LOG [Microservices:EventRepository] Initialized websocket server 2025-09-08T13:21:02.119773547Z [Nest] 7 - 09/08/2025, 1:21:02 PM LOG [Microservices:DatabaseRepository] Running migrations, this may take a while 2025-09-08T13:21:02.523015531Z [Nest] 18 - 09/08/2025, 1:21:02 PM LOG [Api:EventRepository] Initialized websocket server 2025-09-08T13:21:02.882318716Z [Nest] 7 - 09/08/2025, 1:21:02 PM LOG [Microservices:LoggingRepository] Database has up to date TypeORM migrations, skipping initial Kysely migration 2025-09-08T13:21:03.299103130Z Query failed : { 2025-09-08T13:21:03.299136905Z durationMs: 6.346450000000914, 2025-09-08T13:21:03.299143019Z error: PostgresError: multiple primary keys for table "geodata_places" are not allowed 2025-09-08T13:21:03.299149081Z at ErrorResponse (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:794:26) 2025-09-08T13:21:03.299154532Z at handle (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:480:6) 2025-09-08T13:21:03.299159698Z at Socket.data (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:315:9) 2025-09-08T13:21:03.299164335Z at Socket.emit (node:events:518:28) 2025-09-08T13:21:03.299167603Z at addChunk (node:internal/streams/readable:561:12) 2025-09-08T13:21:03.299170932Z at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) 2025-09-08T13:21:03.299174181Z at Readable.push (node:internal/streams/readable:392:5) 2025-09-08T13:21:03.299177434Z at TCP.onStreamRead (node:internal/stream_base_commons:189:23) { 2025-09-08T13:21:03.299180760Z severity_local: 'ERROR', 2025-09-08T13:21:03.299183849Z severity: 'ERROR', 2025-09-08T13:21:03.299186946Z code: '42P16', 2025-09-08T13:21:03.299191477Z file: 'index.c', 2025-09-08T13:21:03.299196395Z line: '221', 2025-09-08T13:21:03.299201419Z routine: 'index_check_primary_key' 2025-09-08T13:21:03.299219738Z }, 2025-09-08T13:21:03.299225101Z sql: 'ALTER TABLE "geodata_places" ADD CONSTRAINT "geodata_places_pkey" PRIMARY KEY ("id");', 2025-09-08T13:21:03.299231125Z params: [] 2025-09-08T13:21:03.299235726Z } 2025-09-08T13:21:03.299831788Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1744910873969-InitialMigration" succeeded 2025-09-08T13:21:03.300709443Z [Nest] 7 - 09/08/2025, 1:21:03 PM ERROR [Microservices:DatabaseRepository] Kysely migrations failed: PostgresError: multiple primary keys for table "geodata_places" are not allowed 2025-09-08T13:21:03.302343401Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1744991379464-AddNotificationsTable" succeeded 2025-09-08T13:21:03.302361637Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1745244781846-AddUserAvatarColorColumn" succeeded 2025-09-08T13:21:03.302366495Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1745902563899-AddAssetVisibilityColumn" succeeded 2025-09-08T13:21:03.302370570Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1746636476623-DropExtraIndexes" succeeded 2025-09-08T13:21:03.302374583Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1746768490606-AddUserPincode" succeeded 2025-09-08T13:21:03.302378517Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1746844028242-AddLockedVisibilityEnum" succeeded 2025-09-08T13:21:03.302382733Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1746987967923-AddPinExpiresAtColumn" succeeded 2025-09-08T13:21:03.302386381Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1747329504572-AddNewSessionColumns" succeeded 2025-09-08T13:21:03.302390031Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1747338664832-SessionRename" succeeded 2025-09-08T13:21:03.302393830Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1747664684909-AddAlbumAuditTables" succeeded 2025-09-08T13:21:03.302397495Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1749067526135-UserOnboardingDefault" succeeded 2025-09-08T13:21:03.302413338Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1750107668827-PartnerCreateId" succeeded 2025-09-08T13:21:03.302417340Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1750189909087-AddAlbumUserCreateFields" succeeded 2025-09-08T13:21:03.302421267Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1750323941566-UnsetPrewarmDimParameter" succeeded 2025-09-08T13:21:03.302425024Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1750676477029-AlbumAssetUpdateId" succeeded 2025-09-08T13:21:03.302428760Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1750694237564-AlbumAssetAuditTable" succeeded 2025-09-08T13:21:03.302432502Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1750780093818-AddAlbumToAssetDeleteTrigger" succeeded 2025-09-08T13:21:03.302436212Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1751035357937-MemorySyncChanges" succeeded 2025-09-08T13:21:03.302439892Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1751304834247-StackSyncChanges" succeeded 2025-09-08T13:21:03.302443760Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1751924596408-AddOverrides" succeeded 2025-09-08T13:21:03.302448011Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1752004072340-UpdateIndexOverrides" succeeded 2025-09-08T13:21:03.302451897Z [Nest] 7 - 09/08/2025, 1:21:03 PM LOG [Microservices:DatabaseRepository] Migration "1752152941084-PeopleAuditTable" succeeded 2025-09-08T13:21:03.302455595Z [Nest] 7 - 09/08/2025, 1:21:03 PM WARN [Microservices:DatabaseRepository] Migration "1752161055253-RenameGeodataPKConstraint" failed 2025-09-08T13:21:03.304455973Z PostgresError: multiple primary keys for table "geodata_places" are not allowed 2025-09-08T13:21:03.304474662Z at ErrorResponse (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:794:26) 2025-09-08T13:21:03.304487789Z at handle (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:480:6) 2025-09-08T13:21:03.304492181Z at Socket.data (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:315:9) 2025-09-08T13:21:03.304507027Z at Socket.emit (node:events:518:28) 2025-09-08T13:21:03.304510416Z at addChunk (node:internal/streams/readable:561:12) 2025-09-08T13:21:03.304513581Z at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) 2025-09-08T13:21:03.304516773Z at Readable.push (node:internal/streams/readable:392:5) 2025-09-08T13:21:03.304519891Z at TCP.onStreamRead (node:internal/stream_base_commons:189:23) { 2025-09-08T13:21:03.304523267Z severity_local: 'ERROR', 2025-09-08T13:21:03.304526503Z severity: 'ERROR', 2025-09-08T13:21:03.304529695Z code: '42P16', 2025-09-08T13:21:03.304532902Z file: 'index.c', 2025-09-08T13:21:03.304535909Z line: '221', 2025-09-08T13:21:03.304538934Z routine: 'index_check_primary_key' 2025-09-08T13:21:03.304542022Z } 2025-09-08T13:21:03.314555315Z microservices worker error: PostgresError: multiple primary keys for table "geodata_places" are not allowed, stack: PostgresError: multiple primary keys for table "geodata_places" are not allowed 2025-09-08T13:21:03.314584906Z at ErrorResponse (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:794:26) 2025-09-08T13:21:03.314588938Z at handle (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:480:6) 2025-09-08T13:21:03.314592521Z at Socket.data (/usr/src/app/server/node_modules/postgres/cjs/src/connection.js:315:9) 2025-09-08T13:21:03.314595967Z at Socket.emit (node:events:518:28) 2025-09-08T13:21:03.314599163Z at addChunk (node:internal/streams/readable:561:12) 2025-09-08T13:21:03.314602276Z at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) 2025-09-08T13:21:03.314605467Z at Readable.push (node:internal/streams/readable:392:5) 2025-09-08T13:21:03.314608635Z at TCP.onStreamRead (node:internal/stream_base_commons:189:23) 2025-09-08T13:21:03.336349451Z [Nest] 18 - 09/08/2025, 1:21:03 PM LOG [Api:DatabaseRepository] Running migrations, this may take a while 2025-09-08T13:21:03.336775693Z microservices worker exited with code 1 2025-09-08T13:21:03.336954099Z Killing api process