Closed Thloluvin closed 1 month ago
Today I have checked again and all assets are again removed
And here is the log output:
[Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] Unable to run job handler (library/library-queue-sync-files): EntityNotFoundError: Could not find any entity of type "LibraryEntity" matching: { "where": { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }, "relations": { "owner": true }, "withDeleted": false } [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] EntityNotFoundError: Could not find any entity of type "LibraryEntity" matching: { "where": { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }, "relations": { "owner": true }, "withDeleted": false } at /usr/src/app/node_modules/typeorm/entity-manager/EntityManager.js:652:39 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async LibraryService.handleQueueSyncFiles (/usr/src/app/dist/services/library.service.js:433:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] Object: { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }
[Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] Unable to run job handler (library/library-queue-sync-files): EntityNotFoundError: Could not find any entity of type "LibraryEntity" matching: { "where": { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }, "relations": { "owner": true }, "withDeleted": false } [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] EntityNotFoundError: Could not find any entity of type "LibraryEntity" matching: { "where": { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }, "relations": { "owner": true }, "withDeleted": false } at /usr/src/app/node_modules/typeorm/entity-manager/EntityManager.js:652:39 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async LibraryService.handleQueueSyncFiles (/usr/src/app/dist/services/library.service.js:433:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] Object: { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }
[Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] Unable to run job handler (library/library-queue-sync-assets): EntityNotFoundError: Could not find any entity of type "LibraryEntity" matching: { "where": { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }, "relations": { "owner": true }, "withDeleted": false } [Nest] 7 - 10/25/2024, 12:00:00 AM LOG [Microservices:LibraryService] Refreshing library 880857de-cb9f-4856-ab86-4677053b9522 for new assets [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] EntityNotFoundError: Could not find any entity of type "LibraryEntity" matching: { "where": { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }, "relations": { "owner": true }, "withDeleted": false } at /usr/src/app/node_modules/typeorm/entity-manager/EntityManager.js:652:39 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async LibraryService.handleQueueSyncAssets (/usr/src/app/dist/services/library.service.js:475:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] Object: { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }
[Nest] 7 - 10/25/2024, 12:00:00 AM LOG [Microservices:LibraryService] Refreshing library 880857de-cb9f-4856-ab86-4677053b9522 for new assets [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] Unable to run job handler (library/library-queue-sync-assets): EntityNotFoundError: Could not find any entity of type "LibraryEntity" matching: { "where": { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }, "relations": { "owner": true }, "withDeleted": false } [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] EntityNotFoundError: Could not find any entity of type "LibraryEntity" matching: { "where": { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }, "relations": { "owner": true }, "withDeleted": false } at /usr/src/app/node_modules/typeorm/entity-manager/EntityManager.js:652:39 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async LibraryService.handleQueueSyncAssets (/usr/src/app/dist/services/library.service.js:475:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/25/2024, 12:00:00 AM ERROR [Microservices:JobService] Object: { "id": "ae8799c0-544f-4331-8074-fcab6f54e2f0" }
This indicates that your external library gets unmounted at some point
I experienced the same issue today: all assets are moved to trash. Don't know, if external library got disconnected at some point... What is the best way to move the assets back from trash and also keep the assets that were added to albums? And is there any way to prevent this behavior? Thanks!
Thank you Alex
I am running my host with a SW Raid5 (mdadm) setup with hdds for my data, This contains my pictures and added in Immich as external drives. Raid is running unchanged without any problems for years and is accessible 24/7, so I am wondering why this is now unmounted at some point. Immich is running on a SSD drive, upload dir and DB are there.
So what i can try now is
I will give feedback after that, this will take one or two days Further suggestions are welcome
BR
updated to 1.119.x and now i can not add anymore a new paths to an external library. A message appears in the screen that the path validation failed. Checked inside the container and all volumes and all files inside are accessable. When I try to add a library for fractions of a second a message in red is visible. So I tried to make a screenshot, because the time is to short to read this message. A delay would be helpful to read this message. This message says "This import path already exists". This is not possible, because I set up Immich completely new and this is the first path I have added to this library.
Without a solution I can not go further with my initial problem Any ideas?
Can you use absolute path?
Thank you Alex, this worked for me
And just to add: the assets seem to reappear after the next library scan, if they are available again.
Ok, that also seems to be the solution to my original problem. I have not changed anything in the setup, the assets remain and are not moved to the trash. I think a reference to the "Absolute Paths" when adding the paths to a library would be a good hint to avoid future problems of this kind.
Many thanks again and keep up the excellent work
The bug
Hello,
My assest are moved trash bin after a few hours once they have been added. This affects only assets added from an external library. A rescan is doing nothing as the assets still remain in the trash bin. Only removing the library and readding starts scanning and adding again the assets. But a few hours laters the assets are moved again to the trash bin. All Albums are emptied, so it shows that there are 0 Assets inside. Restoring the assets from trash bin is not working, all assets remain there. I am running immich about two years and an never had this problem in the past and I thought the problem was caused due to the breaking change in 1.118 and so I updated compose file to the latest version I found on Github. Since latest version I am running Immich in portainer, this problem was before there and is still present. I have now deactivated trash features in admin settings and will check now if this problem remains.
BR Richard
The OS that Immich Server is running on
Ubuntu 22.10
Version of Immich Server
v1.118.2
Version of Immich Mobile App
v1.118.0 build .163
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
My immich config: immich-config.json