Asset in database which isn't in storage #24432
Unanswered
RenautMestdagh
asked this question in
Q&A
Replies: 1 comment
-
|
For a starter you may have a look at |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
The bug
Setup:
Question:
I'm uploading pictures to Immich with Immich CLI. On my currect setup (without Immich), I had a folder for each album. So I'm uploading with --album tag.
I recently had an album which said it contained 541 assets. When i selected them all, the counter said 540.
I used Immich API to find out there was an asset in immich db which wasn't on my nas. This already happened 2 times.
1st time it happened was for asset with id
9c4698af-e103-4b4a-8594-5757ef96f6a02nd time it happened was for asset with id
f4aeba33-f52b-43f2-a543-070787b85c1fThe OS that Immich Server is running on
Ubuntu 24.04.3
Version of Immich Server
v2.3.1
Version of Immich Mobile App
v2.3.0
Platform with the issue
Device make and model
No response
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
�[31m[Nest] 7 - �[39m11/29/2025, 12:52:10 PM �[31m ERROR�[39m �[33m[Microservices:{"id":"9c4698af-e103-4b4a-8594-5757ef96f6a0"}]�[39m �[31mUnable to run job handler (AssetExtractMetadata): Error: ENOENT: no such file or directory, stat '/data/upload/c016b5b2-5509-4657-8652-76a5838b59e4/30/ff/30ffcfe0-682c-4dec-91e7-d4564f7bf321.JPG'�[39m Error: ENOENT: no such file or directory, stat '/data/upload/c016b5b2-5509-4657-8652-76a5838b59e4/30/ff/30ffcfe0-682c-4dec-91e7-d4564f7bf321.JPG' at async Object.stat (node:internal/fs/promises:1037:18) at async Promise.all (index 1) at async MetadataService.handleMetadataExtraction (/usr/src/app/server/dist/services/metadata.service.js:166:35) at async JobService.onJobRun (/usr/src/app/server/dist/services/job.service.js:51:30) at async EventRepository.onEvent (/usr/src/app/server/dist/repositories/event.repository.js:91:13) at async /usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/cjs/classes/worker.js:512:32 �[31m[Nest] 24 - �[39m12/02/2025, 6:08:01 PM �[31m ERROR�[39m �[33m[Api:ErrorInterceptor~wf9gzd2m]�[39m �[31mUnknown error: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client�[39m Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at ServerResponse.setHeader (node:_http_outgoing:700:11) at SyncController.getSyncStream (/usr/src/app/server/dist/controllers/sync.controller.js:44:17) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) Error: could not renew lock for job FacialRecognitionQueueAll at /usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/cjs/classes/worker.js:828:36 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async Worker.extendLocks (/usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/cjs/classes/worker.js:819:9) at async Timeout._onTimeout (/usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/cjs/classes/worker.js:750:29) Query failed : { durationMs: 0.3772409986704588, error: Error: write CONNECTION_DESTROYED database:5432 at Object.execute (/usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/postgres/cjs/src/connection.js:156:35) at Query.handler (/usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/postgres/cjs/src/index.js:230:13) at Query.handle (/usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/postgres/cjs/src/query.js:140:65) { code: 'CONNECTION_DESTROYED', errno: 'CONNECTION_DESTROYED', address: [ 'database' ], port: [ 5432 ] }, sql: 'insert into "asset_exif" ("assetId", "fileSizeInByte") values ($1::uuid, $2) on conflict ("assetId") do update set "fileSizeInByte" = "excluded"."fileSizeInByte"', params: [ 'f4aeba33-f52b-43f2-a543-070787b85c1f', 974938 ] } �[31m[Nest] 8 - �[39m12/02/2025, 11:03:56 PM �[31m ERROR�[39m �[33m[Microservices:{"id":"f4aeba33-f52b-43f2-a543-070787b85c1f"}]�[39m �[31mUnable to run job handler (AssetExtractMetadata): Error: ENOENT: no such file or directory, stat '/data/upload/c016b5b2-5509-4657-8652-76a5838b59e4/3a/0c/3a0c7feb-342e-4b86-9b5e-ce8e46ca35a0.JPG'�[39m Error: ENOENT: no such file or directory, stat '/data/upload/c016b5b2-5509-4657-8652-76a5838b59e4/3a/0c/3a0c7feb-342e-4b86-9b5e-ce8e46ca35a0.JPG' at async Object.stat (node:internal/fs/promises:1037:18) at async Promise.all (index 1) at async MetadataService.handleMetadataExtraction (/usr/src/app/server/dist/services/metadata.service.js:166:35) at async JobService.onJobRun (/usr/src/app/server/dist/services/job.service.js:51:30) at async EventRepository.onEvent (/usr/src/app/server/dist/repositories/event.repository.js:91:13) at async /usr/src/app/server/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/cjs/classes/worker.js:512:32Additional information
Would there be an easy way for me to check what assets are in immich database but not on my nas?
Beta Was this translation helpful? Give feedback.
All reactions