1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
| root@immich:/opt/immich-recovery# docker exec -it immich_postgres psql -U postgres -d immich immich=#
immich=# INSERT INTO "asset" (
id, "deviceAssetId", "deviceId", "ownerId", "type", "originalPath",
"createdAt", "updatedAt", "fileCreatedAt", "fileModifiedAt",
"isFavorite", "duration", "checksum"
)
SELECT
id, "deviceAssetId", "deviceId", "ownerId", "type", "originalPath",
"createdAt", "updatedAt", "createdAt", "updatedAt",
"isFavorite", "duration", "checksum"
FROM assets;
ERROR: null value in column "originalFileName" of relation "asset" violates not-null constraint
DETAIL: Failing row contains (0eafb85e-cec3-4d3b-8f2d-fbbd358b911c, 1000134192, 5fd448a9-458d-4c78-93c9-9ff9d0466628, bd5ab73a8e6ca31ef461fbd4c524f4145f4531b5cede307122d8dbe249631a1b, IMAGE, upload/library/admin/2020/01/18/38.gif, 2025-02-26 04:13:31.791762+00, 2025-02-26 04:13:32.255595+00, f, null, , \x336cb3cbe0fd6cac96cd7cd5ca847c6a01f95b50, null, 2025-02-26 04:13:32.255595+00, 2025-02-26 04:13:31.791762+00, null, null, f, null, f, null, null, null, null, active, 019b7504-be88-7c0c-8cdc-93445ee028dd, timeline).
immich=#
immich=# INSERT INTO asset_exif (
"assetId", "make", "model", "exifImageWidth", "exifImageHeight",
"exposureTime", "dateTimeOriginal"
)
SELECT
"assetId", "make", "model", "exifImageWidth", "exifImageHeight",
"exposureTime", "dateTimeOriginal"
FROM exif;
ERROR: insert or update on table "asset_exif" violates foreign key constraint "asset_exif_assetId_fkey"
DETAIL: Key (assetId)=(b3de2ff3-0cb2-47e0-8552-9d74e7901581) is not present in table "asset".
immich=#
immich=# UPDATE "asset" SET "originalPath" = regexp_replace("originalPath", 'library/[^/]+/', 'library/admin/');
UPDATE 0
immich=#
root@immich:/opt/immich-recovery# docker compose restart
[+] Restarting 4/4
✔ Container immich_postgres Started 16.4s
✔ Container immich_server Started 8.1s
✔ Container immich_machine_learning Started 9.4s
✔ Container immich_redis Started 10.4s
root@immich:/opt/immich-recovery#
root@immich:/opt/immich-recovery# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fa31f5c7e1b3 ghcr.io/immich-app/immich-server:release "tini -- /bin/bash -…" 41 minutes ago Up 34 seconds (health: starting) 0.0.0.0:2283->2283/tcp, [::]:2283->2283/tcp immich_server
0e632e7716e4 ghcr.io/immich-app/immich-machine-learning:release "tini -- python -m i…" 41 minutes ago Up 33 seconds (health: starting) immich_machine_learning
54110efd5159 valkey/valkey:8-bookworm "docker-entrypoint.s…" 2 hours ago Up 32 seconds (health: starting) 6379/tcp immich_redis
bf6a38ff065b ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 "/usr/local/bin/immi…" 2 hours ago Up 25 seconds (health: starting) 5432/tcp immich_postgres
root@immich:/opt/immich-recovery#
root@immich:/opt/immich-recovery# docker logs --tail 20 immich_server
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] ClsCommonModule dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] KyselyModule$1 dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] OpenTelemetryModule dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] KyselyCoreModule$1 dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] DiscoveryModule dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] OpenTelemetryCoreModule dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] ClsRootModule dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] BullModule dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] BullModule dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:InstanceLoader] MicroservicesModule dependencies initialized
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:NestApplication] Nest application successfully started
[Nest] 7 - 12/31/2025, 3:28:29 PM LOG [Microservices:Bootstrap] Immich Microservices is running [v2.4.1] [production]
[Nest] 43 - 12/31/2025, 3:28:31 PM LOG [Api:WebsocketRepository] Websocket Connect: e5zgCBw0k40EZiY-AAAB
[Nest] 43 - 12/31/2025, 3:28:31 PM ERROR [Api:WebsocketRepository] Websocket connection error: UnauthorizedException: Invalid user token
UnauthorizedException: Invalid user token
at AuthService.validateSession (/usr/src/app/server/dist/services/auth.service.js:381:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async AuthService.authenticate (/usr/src/app/server/dist/services/auth.service.js:126:25)
at async WebsocketRepository.handleConnection (/usr/src/app/server/dist/repositories/websocket.repository.js:43:26)
[Nest] 43 - 12/31/2025, 3:28:31 PM LOG [Api:WebsocketRepository] Websocket Disconnect: e5zgCBw0k40EZiY-AAAB
root@immich:/opt/immich-recovery#
|