#TypeError: fetch failed

1 messages · Page 1 of 1 (latest)

lilac merlin
#

Is this something I need to be concerned about?

I was having issues with corrupt files I had uploaded (my fault), which I think I fixed, but then I saw this error. That photo is in immich and is loading correctly as far as I can tell.

immich_microservices | [Nest] 7 - 11/04/2023, 10:35:58 PM ERROR [JobService] Unable to run job handler (objectTagging/classify-image): TypeError: fetch failed
immich_microservices | [Nest] 7 - 11/04/2023, 10:35:58 PM ERROR [JobService] TypeError: fetch failed
immich_microservices | at Object.fetch (node:internal/deps/undici/undici:11372:11)
immich_microservices | at async MachineLearningRepository.post (/usr/src/app/dist/infra/repositories/machine-learning.repository.js:16:21)
immich_microservices | at async SmartInfoService.handleClassifyImage (/usr/src/app/dist/domain/smart-info/smart-info.service.js:55:22)
immich_microservices | at async /usr/src/app/dist/domain/job/job.service.js:108:37
immich_microservices | at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:350:28)
immich_microservices | at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:535:24)
immich_microservices | [Nest] 7 - 11/04/2023, 10:35:58 PM ERROR [JobService] Object:
immich_microservices | {
immich_microservices | "id": "e8d9628e-60f8-4638-b42c-18135100fe57"
immich_microservices | }
immich_microservices |

long nova
lilac merlin
#

I didn't notice it when I was looking at this earlier, but I'm looking at it now, and I'm seeing that Ithe microservices container exited with code 0 and then immediately started up again.

#

I'm seeing a lot of these

[Nest] 7 - 11/05/2023, 4:02:52 AM LOG [StorageCore] Attempting to finish incomplete move: upload/upload/17a60c1e-c551-4300-9f9f-d49a14a42d48/218b8453-766d-4536-8b0f-a2fced919849.MOV => upload/library/chris/2022/12/2022-Dec-24-20.11.41-2022-12-24_20.11.MOV
[Nest] 7 - 11/05/2023, 4:02:52 AM WARN [StorageCore] Unable to complete move. File does not exist at either location.

#

And then I just saw this:
[Nest] 7 - 11/05/2023, 4:03:02 AM ERROR [StorageTemplateService] Problem applying storage template
[Nest] 7 - 11/05/2023, 4:03:02 AM ERROR [StorageTemplateService] QueryFailedError: duplicate key value violates unique constraint "UQ_newPath"
at PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async InsertQueryBuilder.execute (/usr/src/app/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
at async SubjectExecutor.executeInsertOperations (/usr/src/app/node_modules/typeorm/persistence/SubjectExecutor.js:260:42)
at async SubjectExecutor.execute (/usr/src/app/node_modules/typeorm/persistence/SubjectExecutor.js:92:9)
at async EntityPersistExecutor.execute (/usr/src/app/node_modules/typeorm/persistence/EntityPersistExecutor.js:140:21)
at async StorageCore.moveFile (/usr/src/app/dist/domain/storage/storage.core.js:122:20)
at async StorageTemplateService.moveAsset (/usr/src/app/dist/domain/storage-template/storage-template.service.js:111:13)
at async StorageTemplateService.handleMigration (/usr/src/app/dist/domain/storage-template/storage-template.service.js:94:17)
at async /usr/src/app/dist/domain/job/job.service.js:108:37
[Nest] 7 - 11/05/2023, 4:03:02 AM ERROR [StorageTemplateService] Object:
{
"id": "2d0a099f-f133-4661-a439-add03ec83177",
"oldPath": "upload/upload/17a60c1e-c551-4300-9f9f-d49a14a42d48/62560931-34ff-4d44-9359-fcd6db532f6c.MOV",
"newPath": "upload/library/chris/2020/10/2020-Oct-19_17.44.24+1.MOV"
}

[Nest] 7 - 11/05/2023, 4:03:24 AM LOG [StorageTemplateService] Finished storage template migration

#

And then like 6 iterations of this error (sorry if these are all not related to the original error):

[Nest] 7 - 11/05/2023, 4:06:36 AM ERROR [JobService] Error: ffprobe exited with code 1
ffprobe version 6.0-Jellyfin Copyright (c) 2007-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
upload/library/chris/2022/07/2022-Jul-09-20.46.16-2022-07-09_20.46.MOV: No such file or directory

at ChildProcess.<anonymous> (/usr/src/app/node_modules/fluent-ffmpeg/lib/ffprobe.js:233:22)
at ChildProcess.emit (node:events:514:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)

[Nest] 7 - 11/05/2023, 4:06:36 AM ERROR [JobService] Object:
{
"id": "5be325a4-c14b-4da6-a573-e41050848ddc"
}

runic sun
#

I have a the same problem but everything seem to function properly.

[Nest] 7 - 12/03/2023, 1:09:47 AM ERROR [JobService] Unable to run job handler (objectTagging/classify-image): TypeError: fetch failed
[Nest] 7 - 12/03/2023, 1:09:47 AM ERROR [JobService] TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11372:11)
at async MachineLearningRepository.post (/usr/src/app/dist/infra/repositories/machine-learning.repository.js:16:21)
at async SmartInfoService.handleClassifyImage (/usr/src/app/dist/domain/smart-info/smart-info.service.js:55:22)
at async /usr/src/app/dist/domain/job/job.service.js:108:37
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:387:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:574:24)
[Nest] 7 - 12/03/2023, 1:09:47 AM ERROR [JobService] Object:
{
"id": "4ed039c3-bb2c-4e8d-9388-56c089b2427d",
"source": "upload"
}
[Nest] 7 - 12/03/2023, 1:09:47 AM ERROR [JobService] Unable to run job handler (clipEncoding/clip-encode): TypeError: fetch failed
...same as above...

[Nest] 7 - 12/03/2023, 1:09:47 AM ERROR [JobService] Unable to run job handler (recognizeFaces/recognize-faces): TypeError: fetch failed
...same as above...