immich-go icon indicating copy to clipboard operation
immich-go copied to clipboard

upload from-immich not creating tags or albums. ERR failed to add assets to album err=AddAssetToAlbum

Open WraithBane opened this issue 11 months ago • 17 comments

I'm having issues with using the upload from immich option to copy images, tags and albums to a another user on the same instance.

I'm able to create tags and albums via the GUI as both users but when I run the I-Go upload command it will upload the images to the destination user but not create the tags or albums. I was also able to upload from google takeout without issues. Please note that the images in the source user got there from a folder upload of misc. images found in the google voice takeout (sms images)

  • I had some dupes and removed them and tried again.
    • Restarted the Immich instance

I've attached the debug and trace api logs but below is 1 example of what could be the problem

What am I doing wrong?.

Thanks


Misc background info

Immich: VWin11/docker desktop/wsl2; v1.131.3 immich-go version:0.25.0, commit:561f56503aa27b5d5870315cfa1a787e3b745dd4, date:2025-03-22T15:56:48Z

My CL: upload from-immich --api-trace --log-level DEBUG --log-file=D:\Docker\Immich-p9905\Immich-go TakeoutTool\I2I\bdwtake2bdwdeep\ImmichLog.20250407_0940.log --server=http://localhost:9905 --api-key=gyKWi0U4GaxLL841vEqpZ8izcsEWOsZGut34Ty4ajsI --from-server=http://localhost:9905 --from-api-key=L4G6M06gjeXM3ePEImoc6LSQFu7flVzbTicBg5gRyg --date-range=1000-01-01,3000-01-01 --from-album sms SJD

Log 2025-04-07 09:44:55 ERR failed to add assets to album err=AddAssetToAlbum, PUT, http://localhost:9905/api/albums/f5256b38-1085-41a3-9226-00a009bf7e95/assets, 400 Bad Request Not found or no album.addAsset access

Trace log 2025-04-07T09:44:55-05:00 QUERY 263 AddAssetToAlbum PUT http://localhost:9905/api/albums/f5256b38-1085-41a3-9226-00a009bf7e95/assets Accept [application/json] Content-Type [application/json] X-Api-Key redacted -- body start -- {"ids":["ee4ee365-08db-4977-bce6-e167806e217e","847cbcd2-34df-4e4e-b376-9a1fe8f59f93","d9b5a291-5b4f-462b-adcc-10979504d9f8","60d0c873-9077-4171-8d52-ce681b490a92","5b8c9f51-a578-42f2-94c6-50704e55e2f7","c765ed51-2200-488e-96c3-0e42a26dfe52","39435594-88a6-46ce-bae3-4dc2150695a1","74d227a0-dd98-4394-a9f8-5faab2841f06","fa14d01b-7215-4222-a600-d80b10a5ca61","dee4d81c-8c7e-4c4e-8dbe-e53cc008f6fd","03b4a70a-dabd-472d-a70e-51009a993d5a","bca3e843-4bd0-49b7-a156-2949068783e7","9d0fc4d3-e979-40a7-b7f6-cdde7fcdbd90","acc8577a-a606-4dd6-87fb-8e424a55a587","5241f058-fd85-49d9-bf2b-23e008be129f","c4e972b9-f19f-4442-a488-de6e5492f9a1","7cd1feeb-193e-4cbc-9d04-0096cf0d79b3","318192aa-9522-4555-9b2c-7159f0b6c2e8","5d45fdb9-737d-4739-9c4c-888ffc551150","39891d06-6823-428f-8340-f0e320b4ea48"]} -- body end --

2025-04-07T09:44:55-05:00 RESPONSE 263 AddAssetToAlbum PUT http://localhost:9905/api/albums/f5256b38-1085-41a3-9226-00a009bf7e95/assets Status: 400 Bad Request -- response body -- { "error": "Bad Request", "statusCode": 400, "message": "Not found or no album.addAsset access", "correlationId": "uv5xke5a" }

ImmichLog.20250407_0940.log

ImmichLog.20250407_0940.trace.log

WraithBane avatar Apr 07 '25 15:04 WraithBane

I've tried running the script many times. Sometimes I clear-out the uploaded images in the destination and some times I don't.

WraithBane avatar Apr 07 '25 15:04 WraithBane

Updated Immich-go to latest version and reran. Same issue.

immich-go version:0.25.2, commit:9bb7673c8ec99efd8523d1c83916f11f6a1534f2, date:2025-04-05T07:51:09Z

ImmichLog.20250407_1047.log ImmichLog.20250407_1047.trace.log

WraithBane avatar Apr 07 '25 15:04 WraithBane

Log snip from Docker/immich_server.

2025-04-07 10:49:30 [Nest] 7 - 04/07/2025, 10:49:30 AM ERROR [Microservices:{"id":"fce2210f-745d-470c-bc1f-5d110681381a","source":"upload"}] Unable to run job handler (videoConversion/video-conversion): Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:49:30 Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:49:30 at QsvHwDecodeConfig.validateDevices (/usr/src/app/dist/utils/media.js:280:19) 2025-04-07 10:49:05 [Nest] 7 - 04/07/2025, 10:49:05 AM LOG [Microservices:PersonService] Detected 1 new faces in asset 4319bc2a-caf1-454e-ae6f-d67a9602475f 2025-04-07 10:49:15 [Nest] 7 - 04/07/2025, 10:49:15 AM LOG [Microservices:PersonService] Detected 1 new faces in asset 5f77ed9b-2443-47cb-97ef-c45bcd4380d6 2025-04-07 10:49:26 [Nest] 19 - 04/07/2025, 10:49:26 AM LOG [Api:EventRepository] Websocket Disconnect: B9xnqayBq55-w-FQAAAv 2025-04-07 10:49:30 at QsvHwDecodeConfig.getDevice (/usr/src/app/dist/utils/media.js:288:37) 2025-04-07 10:49:30 at new BaseHWConfig (/usr/src/app/dist/utils/media.js:273:28) 2025-04-07 10:49:30 at new QsvHwDecodeConfig (/usr/src/app/dist/utils/media.js:601:1) 2025-04-07 10:49:30 at BaseConfig.getHWCodecConfig (/usr/src/app/dist/utils/media.js:47:23) 2025-04-07 10:49:30 at BaseConfig.create (/usr/src/app/dist/utils/media.js:15:21) 2025-04-07 10:49:30 at MediaService.handleVideoConversion (/usr/src/app/dist/services/media.service.js:278:44) 2025-04-07 10:49:30 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) 2025-04-07 10:49:30 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:49:30 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:49:30 [Nest] 7 - 04/07/2025, 10:49:30 AM ERROR [Microservices:{"id":"cba92c44-61ef-41f6-b834-1c5ab4bc9b7e","source":"upload"}] Unable to run job handler (videoConversion/video-conversion): Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:49:30 Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:49:30 at QsvHwDecodeConfig.validateDevices (/usr/src/app/dist/utils/media.js:280:19) 2025-04-07 10:49:30 at QsvHwDecodeConfig.getDevice (/usr/src/app/dist/utils/media.js:288:37) 2025-04-07 10:49:30 at new BaseHWConfig (/usr/src/app/dist/utils/media.js:273:28) 2025-04-07 10:49:30 at new QsvHwDecodeConfig (/usr/src/app/dist/utils/media.js:601:1) 2025-04-07 10:49:30 at BaseConfig.getHWCodecConfig (/usr/src/app/dist/utils/media.js:47:23) 2025-04-07 10:49:30 at BaseConfig.create (/usr/src/app/dist/utils/media.js:15:21) 2025-04-07 10:49:30 at MediaService.handleVideoConversion (/usr/src/app/dist/services/media.service.js:278:44) 2025-04-07 10:49:30 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:49:30 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:49:30 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:49:41 [Nest] 7 - 04/07/2025, 10:49:41 AM ERROR [Microservices:{"id":"c70f3c60-2766-43d3-b8e2-48aed7b01a16","source":"upload"}] Unable to run job handler (smartSearch/smart-search): Error: Machine learning request '{"clip":{"visual":{"modelName":"ViT-B-32__openai"}}}' failed for all URLs 2025-04-07 10:49:41 Error: Machine learning request '{"clip":{"visual":{"modelName":"ViT-B-32__openai"}}}' failed for all URLs 2025-04-07 10:49:41 at MachineLearningRepository.predict (/usr/src/app/dist/repositories/machine-learning.repository.js:98:15) 2025-04-07 10:49:41 at async MachineLearningRepository.encodeImage (/usr/src/app/dist/repositories/machine-learning.repository.js:116:26) 2025-04-07 10:49:32 [Nest] 19 - 04/07/2025, 10:49:32 AM LOG [Api:EventRepository] Websocket Connect: m-4LgVDPqONpzVDNAAAx 2025-04-07 10:49:34 [Nest] 7 - 04/07/2025, 10:49:34 AM LOG [Microservices:PersonService] Detected 2 new faces in asset 165f58dd-2826-4d0f-b084-3ef98a89321d 2025-04-07 10:49:41 [Nest] 7 - 04/07/2025, 10:49:41 AM WARN [Microservices:MachineLearningRepository] Machine learning request to "http://immich-machine-learning:3003" failed: fetch failed 2025-04-07 10:49:41 at async SmartInfoService.handleEncodeClip (/usr/src/app/dist/services/smart-info.service.js:103:27) 2025-04-07 10:49:41 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:49:41 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:49:41 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:49:41 at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) 2025-04-07 10:49:42 [Nest] 7 - 04/07/2025, 10:49:42 AM ERROR [Microservices:{"id":"66043ff8-269d-4e87-a465-ee0606c3ddeb","source":"upload"}] Unable to run job handler (videoConversion/video-conversion): Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:49:42 Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:49:42 at QsvHwDecodeConfig.validateDevices (/usr/src/app/dist/utils/media.js:280:19) 2025-04-07 10:49:42 at QsvHwDecodeConfig.getDevice (/usr/src/app/dist/utils/media.js:288:37) 2025-04-07 10:49:42 at new BaseHWConfig (/usr/src/app/dist/utils/media.js:273:28) 2025-04-07 10:49:42 at new QsvHwDecodeConfig (/usr/src/app/dist/utils/media.js:601:1) 2025-04-07 10:49:42 at BaseConfig.getHWCodecConfig (/usr/src/app/dist/utils/media.js:47:23) 2025-04-07 10:49:42 at BaseConfig.create (/usr/src/app/dist/utils/media.js:15:21) 2025-04-07 10:49:42 at MediaService.handleVideoConversion (/usr/src/app/dist/services/media.service.js:278:44) 2025-04-07 10:49:42 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) 2025-04-07 10:49:42 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:49:42 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:49:43 [Nest] 7 - 04/07/2025, 10:49:43 AM ERROR [Microservices:{"id":"8a1a1c64-07a2-4ab7-ac4d-14723bc1bf95","source":"sidecar-write"}] Unable to run job handler (metadataExtraction/metadata-extraction): Error: ENOENT: no such file or directory, stat 'upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/98/52/98524ada-ce1e-43e9-ad94-3fcb68292370.jpg' 2025-04-07 10:49:43 Error: ENOENT: no such file or directory, stat 'upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/98/52/98524ada-ce1e-43e9-ad94-3fcb68292370.jpg' 2025-04-07 10:49:43 at async Object.stat (node:internal/fs/promises:1036:18) 2025-04-07 10:49:43 at async Promise.all (index 1) 2025-04-07 10:49:43 at async MetadataService.handleMetadataExtraction (/usr/src/app/dist/services/metadata.service.js:129:35) 2025-04-07 10:49:43 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:49:43 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:49:43 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:49:43 at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) 2025-04-07 10:49:43 [Nest] 7 - 04/07/2025, 10:49:43 AM WARN [Microservices:Error: File not found - /usr/src/app/upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/98/52/98524ada-ce1e-43e9-ad94-3fcb68292370.jpg 2025-04-07 10:49:43 at ReadTask._ExifToolTask_parser (/usr/src/app/node_modules/exiftool-vendored/dist/ExifToolTask.js:76:71) 2025-04-07 10:49:43 at ReadTask.parser (/usr/src/app/node_modules/exiftool-vendored/dist/ExifToolTask.js:47:167) 2025-04-07 10:49:43 at ReadTask._Task_resolve (/usr/src/app/node_modules/batch-cluster/dist/Task.js:146:40)] Error reading exif data (upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/98/52/98524ada-ce1e-43e9-ad94-3fcb68292370.jpg): Error: File not found - /usr/src/app/upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/98/52/98524ada-ce1e-43e9-ad94-3fcb68292370.jpg 2025-04-07 10:49:44 [Nest] 7 - 04/07/2025, 10:49:44 AM ERROR [Microservices:{"id":"9fa2c7c0-77b3-4738-81e7-a94d4447d083","source":"sidecar-write"}] Unable to run job handler (metadataExtraction/metadata-extraction): Error: ENOENT: no such file or directory, stat 'upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/18/9f/189f08a7-8fa9-48e5-b116-b2e242602f62.jpg' 2025-04-07 10:49:44 Error: ENOENT: no such file or directory, stat 'upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/18/9f/189f08a7-8fa9-48e5-b116-b2e242602f62.jpg' 2025-04-07 10:49:44 at async Object.stat (node:internal/fs/promises:1036:18) 2025-04-07 10:49:44 at async Promise.all (index 1) 2025-04-07 10:49:44 at async MetadataService.handleMetadataExtraction (/usr/src/app/dist/services/metadata.service.js:129:35) 2025-04-07 10:49:44 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:49:44 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:49:44 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:49:44 at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) 2025-04-07 10:49:46 [Nest] 7 - 04/07/2025, 10:49:46 AM ERROR [Microservices:{"id":"bd1b488c-2634-4262-95db-61c23cd689da","source":"upload"}] Unable to run job handler (videoConversion/video-conversion): Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:49:46 Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:49:46 at QsvHwDecodeConfig.validateDevices (/usr/src/app/dist/utils/media.js:280:19) 2025-04-07 10:49:46 at QsvHwDecodeConfig.getDevice (/usr/src/app/dist/utils/media.js:288:37) 2025-04-07 10:49:46 at new BaseHWConfig (/usr/src/app/dist/utils/media.js:273:28) 2025-04-07 10:49:46 at new QsvHwDecodeConfig (/usr/src/app/dist/utils/media.js:601:1) 2025-04-07 10:49:46 at BaseConfig.getHWCodecConfig (/usr/src/app/dist/utils/media.js:47:23) 2025-04-07 10:49:46 at BaseConfig.create (/usr/src/app/dist/utils/media.js:15:21) 2025-04-07 10:49:46 at MediaService.handleVideoConversion (/usr/src/app/dist/services/media.service.js:278:44) 2025-04-07 10:49:46 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:49:46 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:49:46 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:50:03 [Nest] 7 - 04/07/2025, 10:50:03 AM ERROR [Microservices:{"id":"0eb95a45-8e02-441b-87dc-dbec2895a816","source":"sidecar-write"}] Unable to run job handler (metadataExtraction/metadata-extraction): Error: ENOENT: no such file or directory, stat 'upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/85/96/8596bc3d-6c16-437d-810b-2496daf821b6.jpg' 2025-04-07 10:50:03 Error: ENOENT: no such file or directory, stat 'upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/85/96/8596bc3d-6c16-437d-810b-2496daf821b6.jpg' 2025-04-07 10:50:03 at async Object.stat (node:internal/fs/promises:1036:18) 2025-04-07 10:50:03 at async Promise.all (index 1) 2025-04-07 10:50:03 at async MetadataService.handleMetadataExtraction (/usr/src/app/dist/services/metadata.service.js:129:35) 2025-04-07 10:50:03 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:50:03 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:50:03 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:50:03 at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) 2025-04-07 10:50:45 [Nest] 7 - 04/07/2025, 10:50:45 AM ERROR [Microservices:{"id":"bd1b488c-2634-4262-95db-61c23cd689da","source":"upload"}] Unable to run job handler (smartSearch/smart-search): Error: Machine learning request '{"clip":{"visual":{"modelName":"ViT-B-32__openai"}}}' failed for all URLs 2025-04-07 10:50:45 Error: Machine learning request '{"clip":{"visual":{"modelName":"ViT-B-32__openai"}}}' failed for all URLs 2025-04-07 10:50:45 at MachineLearningRepository.predict (/usr/src/app/dist/repositories/machine-learning.repository.js:98:15) 2025-04-07 10:50:45 at async MachineLearningRepository.encodeImage (/usr/src/app/dist/repositories/machine-learning.repository.js:116:26) 2025-04-07 10:50:45 at async SmartInfoService.handleEncodeClip (/usr/src/app/dist/services/smart-info.service.js:103:27) 2025-04-07 10:50:45 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:50:45 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:50:45 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:50:45 at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) 2025-04-07 10:51:24 [Nest] 7 - 04/07/2025, 10:51:24 AM ERROR [Microservices:{"id":"59146971-ddb5-4cf4-8638-296cd80824a9","source":"upload"}] Unable to run job handler (videoConversion/video-conversion): Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:51:24 Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:51:24 at QsvHwDecodeConfig.validateDevices (/usr/src/app/dist/utils/media.js:280:19) 2025-04-07 10:51:24 at QsvHwDecodeConfig.getDevice (/usr/src/app/dist/utils/media.js:288:37) 2025-04-07 10:51:24 at new BaseHWConfig (/usr/src/app/dist/utils/media.js:273:28) 2025-04-07 10:51:24 at new QsvHwDecodeConfig (/usr/src/app/dist/utils/media.js:601:1) 2025-04-07 10:51:24 at BaseConfig.getHWCodecConfig (/usr/src/app/dist/utils/media.js:47:23) 2025-04-07 10:51:24 at BaseConfig.create (/usr/src/app/dist/utils/media.js:15:21) 2025-04-07 10:51:24 at MediaService.handleVideoConversion (/usr/src/app/dist/services/media.service.js:278:44) 2025-04-07 10:51:24 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:51:24 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:51:24 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:51:36 [Nest] 7 - 04/07/2025, 10:51:36 AM ERROR [Microservices:{"id":"0e2932ca-1559-4747-8c51-3b6d32af1cef","source":"upload"}] Unable to run job handler (videoConversion/video-conversion): Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:51:36 Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:51:36 at QsvHwDecodeConfig.validateDevices (/usr/src/app/dist/utils/media.js:280:19) 2025-04-07 10:51:36 at QsvHwDecodeConfig.getDevice (/usr/src/app/dist/utils/media.js:288:37) 2025-04-07 10:51:36 at new BaseHWConfig (/usr/src/app/dist/utils/media.js:273:28) 2025-04-07 10:51:36 at new QsvHwDecodeConfig (/usr/src/app/dist/utils/media.js:601:1) 2025-04-07 10:51:36 at BaseConfig.getHWCodecConfig (/usr/src/app/dist/utils/media.js:47:23) 2025-04-07 10:51:36 at BaseConfig.create (/usr/src/app/dist/utils/media.js:15:21) 2025-04-07 10:51:36 at MediaService.handleVideoConversion (/usr/src/app/dist/services/media.service.js:278:44) 2025-04-07 10:51:36 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:51:36 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:51:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:51:42 [Nest] 7 - 04/07/2025, 10:51:42 AM ERROR [Microservices:{"id":"cf02295e-a6c7-4ce9-bd60-d64c3ef86a6d","source":"upload"}] Unable to run job handler (videoConversion/video-conversion): Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:51:42 Error: No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted 2025-04-07 10:51:42 at QsvHwDecodeConfig.validateDevices (/usr/src/app/dist/utils/media.js:280:19) 2025-04-07 10:51:42 at QsvHwDecodeConfig.getDevice (/usr/src/app/dist/utils/media.js:288:37) 2025-04-07 10:51:42 at new BaseHWConfig (/usr/src/app/dist/utils/media.js:273:28) 2025-04-07 10:51:42 at new QsvHwDecodeConfig (/usr/src/app/dist/utils/media.js:601:1) 2025-04-07 10:51:42 at BaseConfig.getHWCodecConfig (/usr/src/app/dist/utils/media.js:47:23) 2025-04-07 10:51:42 at BaseConfig.create (/usr/src/app/dist/utils/media.js:15:21) 2025-04-07 10:51:42 at MediaService.handleVideoConversion (/usr/src/app/dist/services/media.service.js:278:44) 2025-04-07 10:51:42 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:51:42 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:51:42 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:53:00 [Nest] 7 - 04/07/2025, 10:53:00 AM ERROR [Microservices:{"id":"3c49cfdc-2431-44f7-9767-176bead77ed0"}] Unable to run job handler (thumbnailGeneration/generate-person-thumbnail): Error: Asset 5f77ed9b-2443-47cb-97ef-c45bcd4380d6 dimensions are unknown 2025-04-07 10:53:00 Error: Asset 5f77ed9b-2443-47cb-97ef-c45bcd4380d6 dimensions are unknown 2025-04-07 10:53:00 at PersonService.getInputDimensions (/usr/src/app/dist/services/person.service.js:520:19) 2025-04-07 10:53:00 at PersonService.handleGeneratePersonThumbnail (/usr/src/app/dist/services/person.service.js:445:57) 2025-04-07 10:53:00 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) 2025-04-07 10:53:00 at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:156:28) 2025-04-07 10:53:00 at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) 2025-04-07 10:53:00 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) 2025-04-07 10:53:00 at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) 2025-04-07 10:49:54 [Nest] 7 - 04/07/2025, 10:49:54 AM LOG [Microservices:PersonService] Detected 4 new faces in asset a89c9cc1-1a70-4cfe-a8c4-5975583901fb 2025-04-07 10:49:58 [Nest] 7 - 04/07/2025, 10:49:58 AM LOG [Microservices:PersonService] Detected 4 new faces in asset 5a0d4260-5a16-420f-9f20-b73088153556 2025-04-07 10:50:03 [Nest] 7 - 04/07/2025, 10:50:03 AM WARN [Microservices:Error: File not found - /usr/src/app/upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/85/96/8596bc3d-6c16-437d-810b-2496daf821b6.jpg 2025-04-07 10:50:03 at ReadTask._ExifToolTask_parser (/usr/src/app/node_modules/exiftool-vendored/dist/ExifToolTask.js:76:71) 2025-04-07 10:50:03 at ReadTask.parser (/usr/src/app/node_modules/exiftool-vendored/dist/ExifToolTask.js:47:167) 2025-04-07 10:50:03 at ReadTask._Task_resolve (/usr/src/app/node_modules/batch-cluster/dist/Task.js:146:40)] Error reading exif data (upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/85/96/8596bc3d-6c16-437d-810b-2496daf821b6.jpg): Error: File not found - /usr/src/app/upload/upload/f12e465c-9e4d-417d-90b9-09ac4accff51/85/96/8596bc3d-6c16-437d-810b-2496daf821b6.jpg

WraithBane avatar Apr 07 '25 16:04 WraithBane

Commenting to say that I am running into the same problem. I've imported my partner's photos using the same command without an issue, and now I am using my zip files and I keep getting the same error here

Error uploading file Error: ENOENT: no such file or directory, stat 'upload/upload/6c40d0c3-9273-4ed5-9cf9-541f45ec0280/59/a6/59a6586f-6a48-4c1e-95cf-505557a19e44.jpg'

The command I am running for reference:

./immich-go.0.25.2 upload from-google-photos --server=http://localhost:2283 --api-key=xxx\
--skip-verify-ssl=true \
--include-partner=false \
--include-unmatched=true \
--manage-burst=Stack \
--manage-heic-jpeg=KeepHeic \
--manage-raw-jpeg=StackCoverJPG \
--takeout-tag=true \
--people-tag=true \
--log-level=DEBUG \
./takeout-*.zip"

Much like you I have also tried restarting dockers and clearing the upload folder to no avail

mariolameiras avatar Apr 07 '25 20:04 mariolameiras

Odd. I've been able to work with google takeout zips and upload from-google-photo without issue, well I got everthing in the correct albums they were in in google.

My issue is with upload from-Immich .

In my case I'm using the Immich google voice takeout folder. This has images that were texted/mms/sms to my account. Most have had metadata stripped. I upload to user A using upload from-folder . Then cleanup, tag and move into albums. Next I try to copy from user A to user B using upload from-Immich. This is were the bug is and the subject of this ticket. I'm only getting the uploaded files in the main time-line of user B with no tags or albums.

I'm willing to try a multistep solution with archive and will let you know what happens. Is it possible to get people tags?. I've only seen those types of options in Immich-Go when working with google takeout.

WraithBane avatar Apr 08 '25 00:04 WraithBane

FYI:

Created a new/fresh destination profile to copy to but got the same error.

2025-04-08 15:11:46 ERR failed to add assets to album err=AddAssetToAlbum, PUT, http://localhost:9905/api/albums/3bdf582f-3231-4945-aae1-2b835da58f40/assets, 400 Bad Request
Not found or no album.addAsset access

Immich-GOLog.20250408_1459.log Immich-GOLog.20250408_1459.trace.log

WraithBane avatar Apr 08 '25 20:04 WraithBane

Is this showing on the front-end as 500 internal server errors? I have successfully uploaded around 3k images from takeout before the error, but now I can upload 3-4 files before I get the error again.

ERR upload error file=takeout-20250408T022003Z-003:Takeout/Google Photos/Photos from 2013/SAM_0690.JPG error=AssetReplace, PUT, http://localhost:2283/api/assets/8b13645d-909e-4512-b9b1-abccb072fda0/original, 500 │ │Internal Server Error

KraftyMac avatar Apr 09 '25 16:04 KraftyMac

I have run the jobs to generate all thumbnails and then storage template migration and migration.

And then re-started the same immich-go import and I am now able to resume without the 500errors.

This seems related to having changed the import template

mariolameiras avatar Apr 09 '25 23:04 mariolameiras

@WraithBane According to the logs, you try to import a selection of photos from an account to another account. Apparently, immich tries to reuse the Album's ID from the source account with the destination account. I'm trying to reproduce the case locally

simulot avatar Apr 10 '25 07:04 simulot

Commenting to say that I am running into the same problem. I've imported my partner's photos using the same command without an issue, and now I am using my zip files and I keep getting the same error here

Error uploading file Error: ENOENT: no such file or directory, stat 'upload/upload/6c40d0c3-9273-4ed5-9cf9-541f45ec0280/59/a6/59a6586f-6a48-4c1e-95cf-505557a19e44.jpg'

The command I am running for reference:

./immich-go.0.25.2 upload from-google-photos --server=http://localhost:2283 --api-key=xxx\
--skip-verify-ssl=true \
--include-partner=false \
--include-unmatched=true \
--manage-burst=Stack \
--manage-heic-jpeg=KeepHeic \
--manage-raw-jpeg=StackCoverJPG \
--takeout-tag=true \
--people-tag=true \
--log-level=DEBUG \
./takeout-*.zip"

Much like you I have also tried restarting dockers and clearing the upload folder to no avail

@mariolameiras I don't understand how it comes that immich-go tries to read a file in a path that looks to be the immich library path.

simulot avatar Apr 10 '25 07:04 simulot

Is this showing on the front-end as 500 internal server errors? I have successfully uploaded around 3k images from takeout before the error, but now I can upload 3-4 files before I get the error again.

ERR upload error file=takeout-20250408T022003Z-003:Takeout/Google Photos/Photos from 2013/SAM_0690.JPG error=AssetReplace, PUT, http://localhost:2283/api/assets/8b13645d-909e-4512-b9b1-abccb072fda0/original, 500 │ │Internal Server Error

@KraftyMac Are you using the latest immich-go version 0.25.2 ?

simulot avatar Apr 10 '25 07:04 simulot

I created a fresh instance to test this. I'm new to gethub and win11/dockerDesktop/wsl2. So let me know if this is not the correct way to isolate another Immich instance


***********************************
***********************************
http://localhost:2283

got a fresh .yml from Immich.  
Made these changes for container isolation
- name: immich-gotesting
- #container_name: immich_server
- #container_name: immich_machine_learning
- #container_name: immich_redis
- #container_name: immich_postgres

started with:  docker compose -p immich-gotesting up -d


Administration Settings
- name: [email protected]
- Enabled storage template engine defaults with ({{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}})
- System Settings:
  - Metadata settings: enable face import set on
  - Logging: set level  debug
  - Machine Learning settings: verified all were on

Created  two accounts: 
- [email protected]; 5NepZtMno5Yk7VAPQjdUDHigZ8M6EwrQBW2IW1banY
- [email protected]; VTbDOEW4kHh6iNfQebdtyzz06HIQtDLtBcfWqOscs4


User settings
- No partner sharing
- Turned on all features in each users Account Settings/ "Manage the app features"
- create api keys

in [email protected] user
- Used Immich to upload from 
  - D:\___Temp\Takeout xxxxxxxx-VoiceOnly - publicCopy - Copy\Takeout\Voice\Calls.  
  - No duplicates. 
  - 6 images
- Created 3 albums
  - Birds2, 2 images: http://localhost:2283/albums/aa084a4c-cb3c-4724-ac64-f9b76579419e
  - AllButOne, 5 images; http://localhost:2283/albums/8c79f845-429d-4237-8218-b6f449099174
  - Covid, 1 image; http://localhost:2283/albums/d418f6ed-188b-449c-927d-e40e38bd46fb
- Set one image as a favorite
- 1 image from timeline, archived.
- 1 image from Birds2, archived.

- Created some nested tags.
  - Album
  - Album > birds2
  - Album > covid  (changed color of this tag)
  - archive

Not getting any people/faces listed in source.
re-Started all jobs as admin2283

WraithBane avatar Apr 10 '25 17:04 WraithBane

I created a fresh instance to test this. I'm new to GitHub and win11/Docker Desktop/wsl2. So let me know if this is not the correct way to isolate another Immich instance

  • Started contaner with:

    • docker compose -p immich-gotesting up -d
  • watched logs with:

    • docker compose -p immich-gotesting logs -f --timestamps

Run 1

  • 4 Images (not 6) uploaded to dest.
  • Archived images NOT uploaded but no Immich-Go flag to include them
  • Albums and tags not created in dest.
  • The image marked as favorite was in the archive so not sure if favorite works

Run 2 notes.

  • [email protected]:

    • Cleared out all images and empty trash.
  • [email protected] image:Group Conversation - 2022-06-19T13_46_44Z-2-1.jpg

    • marked as favorite
    • marked with a star rating of 4
    • gave it a location in France
  • Start Immich-go script at 11:49. ran for less then 15 sec

  • Same results but:

    • image marked as a favorite DOES show as a favorite in the dest
    • Star rating not reproduced in dest

Still failing with the same error. Here are the logs from two attempts

immich-config.json

Immich-GOLog.20250410_1149.log Immich-GOLog.20250410_1149.trace.log ImmichDocker.20250410_1149.log

Immich-GOLog.20250410_1050.log Immich-GOLog.20250410_1050.trace.log ImmichDocker.20250410_1050.log

WraithBane avatar Apr 10 '25 17:04 WraithBane

Is this showing on the front-end as 500 internal server errors? I have successfully uploaded around 3k images from takeout before the error, but now I can upload 3-4 files before I get the error again. ERR upload error file=takeout-20250408T022003Z-003:Takeout/Google Photos/Photos from 2013/SAM_0690.JPG error=AssetReplace, PUT, http://localhost:2283/api/assets/8b13645d-909e-4512-b9b1-abccb072fda0/original, 500 │ │Internal Server Error

@KraftyMac Are you using the latest immich-go version 0.25.2 ?

I am, yes.

KraftyMac avatar Apr 10 '25 19:04 KraftyMac

Commenting to say that I am running into the same problem. I've imported my partner's photos using the same command without an issue, and now I am using my zip files and I keep getting the same error here Error uploading file Error: ENOENT: no such file or directory, stat 'upload/upload/6c40d0c3-9273-4ed5-9cf9-541f45ec0280/59/a6/59a6586f-6a48-4c1e-95cf-505557a19e44.jpg' The command I am running for reference:

./immich-go.0.25.2 upload from-google-photos --server=http://localhost:2283 --api-key=xxx\
--skip-verify-ssl=true \
--include-partner=false \
--include-unmatched=true \
--manage-burst=Stack \
--manage-heic-jpeg=KeepHeic \
--manage-raw-jpeg=StackCoverJPG \
--takeout-tag=true \
--people-tag=true \
--log-level=DEBUG \
./takeout-*.zip"

Much like you I have also tried restarting dockers and clearing the upload folder to no avail

@mariolameiras I don't understand how it comes that immich-go tries to read a file in a path that looks to be the immich library path.

@simulot I don't understand it either, but, as I said above, I suspect it's related to the import template being changed as I see my photos now being moved from /library/upload/ to /library/library

I am using the docker compose defaults

mariolameiras avatar Apr 10 '25 23:04 mariolameiras

A fix for the error 500 when adding to an album is on the way. The TAG replication requires more work

simulot avatar Apr 17 '25 07:04 simulot

having the same issue I just want albums to be created and photos synced into the albums when using from immich. is this something I can quickly fix ?

dsrdatta avatar Aug 24 '25 19:08 dsrdatta