You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when I changes some face name from people menu:
immich-microservices[2246]: #033[31m[Nest] 2246 - #033[39m10/11/2023, 8:30:17 PM #033[31m ERROR#033[39m #033[38;5;3m[JobService] #033[39m#033[31mUnable to run job handler (search/search-index-faces): TypeError: Cannot read properties of null (reading 'ownerId')#033[39m
immich-microservices[2246]: #033[31m[Nest] 2246 - #033[39m10/11/2023, 8:30:17 PM #033[31m ERROR#033[39m #033[38;5;3m[JobService] #033[39m#033[31mTypeError: Cannot read properties of null (reading 'ownerId')
immich-microservices[2246]: at /var/lib/immich/app/server/dist/domain/search/search.service.js:293:33
immich-microservices[2246]: at Array.map (<anonymous>)
immich-microservices[2246]: at SearchService.patchFaces (/var/lib/immich/app/server/dist/domain/search/search.service.js:291:22)
immich-microservices[2246]: at SearchService.handleIndexFaces (/var/lib/immich/app/server/dist/domain/search/search.service.js:172:28)
immich-microservices[2246]: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
immich-microservices[2246]: at async /var/lib/immich/app/server/dist/domain/job/job.service.js:108:37
immich-microservices[2246]: at async Worker.processJob (/var/lib/immich/app/server/node_modules/bullmq/dist/cjs/classes/worker.js:350:28)
immich-microservices[2246]: at async Worker.retryIfFailed (/var/lib/immich/app/server/node_modules/bullmq/dist/cjs/classes/worker.js:535:24)#033[39m
immich-microservices[2246]: #033[31m[Nest] 2246 - #033[39m10/11/2023, 8:30:17 PM #033[31m ERROR#033[39m #033[38;5;3m[JobService] #033[39m#033[31mObject:#033[39m
immich-microservices[2246]: {}
Looking for the issue in code, I found the issue occurs when you have some asset in trash, so the map in patchFaces function fails because the asset array is null for the deleted assets (in trash), so ownerId is not readable because is null:
The problem is solved clicking the empty trash button deleting all pending deleted files, so faces array dont have any item with asset null and no error logs anymore.
enoixer
changed the title
[BUG] Error changing name people faces when have some images in trash
[BUG] Error changing name people faces when you have some images in trash
Oct 11, 2023
enoixer
changed the title
[BUG] Error changing name people faces when you have some images in trash
[BUG] Error changing name people faces when you have assets in trash
Oct 11, 2023
Thank you for the report. The face re-indexing happens during face merges. Do you by any chance happen to merge faces during rename? Either ways, a PR has been raised to address this #4450
The bug
I'm getting this error when I changes some face name from people menu:
Looking for the issue in code, I found the issue occurs when you have some asset in trash, so the map in patchFaces function fails because the asset array is null for the deleted assets (in trash), so ownerId is not readable because is null:
The problem is solved clicking the empty trash button deleting all pending deleted files, so faces array dont have any item with asset null and no error logs anymore.
The OS that Immich Server is running on
Debian 12 Proxmox Container
Version of Immich Server
1.81.1
Version of Immich Mobile App
1.80.0
Platform with the issue
Your docker-compose.yml content
Not used in Proxmox
Your .env content
Reproduction steps
1. Delete an asset with trash enabled. 2. Change name for a people face.
Additional information
No response
The text was updated successfully, but these errors were encountered: