[BUG] <title> #1191

Closed
opened 2026-02-05 00:49:29 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @paulmorabito on GitHub (Aug 6, 2023).

The bug

Immich machine learning container reports endless lines of:

[Errno 2] No such file or directory python: can't open file '/usr/src/app/src/main.py

Immich micro services reports:

  "id": "7c4c1a4a-3a60-4e5f-9d11-5f09217768ec",
  "source": "upload"
}
[Nest] 8  - 08/05/2023, 3:39:23 PM   ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning
[Nest] 8  - 08/05/2023, 3:39:23 PM   ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[Nest] 8  - 08/05/2023, 3:39:23 PM   ERROR [JobService] Object:
{
  "id": "7c4c1a4a-3a60-4e5f-9d11-5f09217768ec",
  "source": "upload"
}
[Nest] 8  - 08/05/2023, 3:39:23 PM   ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning
[Nest] 8  - 08/05/2023, 3:39:23 PM   ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[Nest] 8  - 08/05/2023, 3:39:23 PM   ERROR [JobService] Object:
{
  "id": "7c4c1a4a-3a60-4e5f-9d11-5f09217768ec",
  "source": "upload"
}
[Nest] 8  - 08/05/2023, 3:39:23 PM     LOG [MediaService] Start encoding video 05f1dbbf-4e4a-46ce-bbed-086ea0126661 {"inputOptions":[],"outputOptions":["-vcodec h264","-acodec aac","-movflags faststart","-fps_mode passthrough","-vf scale=720:-2","-preset ultrafast","-crf 23"],"twoPass":false}
[Nest] 8  - 08/05/2023, 3:39:24 PM     LOG [MediaService] Encoding success 05f1dbbf-4e4a-46ce-bbed-086ea0126661
[Nest] 8  - 08/05/2023, 3:39:24 PM     LOG [MediaService] Start encoding video 403b850d-0150-4e4e-8ba6-b5639b6a93a2 {"inputOptions":[],"outputOptions":["-vcodec h264","-acodec aac","-movflags faststart","-fps_mode passthrough","-vf scale=720:-2","-preset ultrafast","-crf 23"],"twoPass":false}
[Nest] 8  - 08/05/2023, 3:39:24 PM     LOG [MediaService] Encoding success 403b850d-0150-4e4e-8ba6-b5639b6a93a2
[Nest] 8  - 08/05/2023, 6:43:12 PM     LOG [MediaService] Generating video thumbnail
[Nest] 8  - 08/05/2023, 6:43:13 PM     LOG [MediaService] Successfully generated video thumbnail 9704a547-2a8b-47cc-9019-ec3265f7e237
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Object:
{
  "id": "9704a547-2a8b-47cc-9019-ec3265f7e237",
  "source": "upload"
}
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Object:
{
  "id": "9704a547-2a8b-47cc-9019-ec3265f7e237",
  "source": "upload"
}
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[Nest] 8  - 08/05/2023, 6:43:13 PM   ERROR [JobService] Object:
{
  "id": "9704a547-2a8b-47cc-9019-ec3265f7e237",
  "source": "upload"
}
[Nest] 8  - 08/05/2023, 6:43:13 PM     LOG [MediaService] Start encoding video 9704a547-2a8b-47cc-9019-ec3265f7e237 {"inputOptions":[],"outputOptions":["-vcodec h264","-acodec aac","-movflags faststart","-fps_mode passthrough","-vf scale=720:-2","-preset ultrafast","-crf 23"],"twoPass":false}
[Nest] 8  - 08/05/2023, 6:43:20 PM     LOG [MediaService] Encoding success 9704a547-2a8b-47cc-9019-ec3265f7e237
[Nest] 8  - 08/06/2023, 12:00:01 AM   ERROR [JobService] Unable to run job handler: Error: Input file is missing: upload/upload/b1f69b2c-d492-42fe-82de-9f8fc4d7aa47/d75c5d27-e8d8-4360-a8a8-2847af8eda4a.jpg
[Nest] 8  - 08/06/2023, 12:00:01 AM   ERROR [JobService] Error: Input file is missing: upload/upload/b1f69b2c-d492-42fe-82de-9f8fc4d7aa47/d75c5d27-e8d8-4360-a8a8-2847af8eda4a.jpg
[Nest] 8  - 08/06/2023, 12:00:01 AM   ERROR [JobService] Object:
{
  "id": "e1fade0f-8268-44b2-914b-321e32f11d68"
}
[Nest] 8  - 08/06/2023, 12:00:01 AM   ERROR [JobService] Unable to run job handler: Error: Input file is missing: upload/upload/b1f69b2c-d492-42fe-82de-9f8fc4d7aa47/cca0bed6-6e5b-46fc-bf02-beab69eab483.HEIC
[Nest] 8  - 08/06/2023, 12:00:01 AM   ERROR [JobService] Error: Input file is missing: upload/upload/b1f69b2c-d492-42fe-82de-9f8fc4d7aa47/cca0bed6-6e5b-46fc-bf02-beab69eab483.HEIC
[Nest] 8  - 08/06/2023, 12:00:01 AM   ERROR [JobService] Object:
{
  "id": "477a8f7f-95a3-431d-bfb3-5bc56f079615"
}
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Object:
{
  "id": "715a2df0-6f7b-46cd-83f8-a50476eaf308",
  "source": "upload"
}
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Object:
{
  "id": "715a2df0-6f7b-46cd-83f8-a50476eaf308",
  "source": "upload"
}
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[Nest] 8  - 08/06/2023, 6:08:56 AM   ERROR [JobService] Object:
{
  "id": "715a2df0-6f7b-46cd-83f8-a50476eaf308",
  "source": "upload"
}
[Nest] 8  - 08/06/2023, 6:08:57 AM     LOG [MediaService] Start encoding video bbb37747-d318-4a80-a43e-b3bd3189a8f7 {"inputOptions":[],"outputOptions":["-vcodec h264","-acodec aac","-movflags faststart","-fps_mode passthrough","-vf scale=720:-2","-preset ultrafast","-crf 23"],"twoPass":false}
[Nest] 8  - 08/06/2023, 6:08:58 AM     LOG [MediaService] Encoding success bbb37747-d318-4a80-a43e-b3bd3189a8f7

The OS that Immich Server is running on

Debian 12 (via docker)

Version of Immich Server

1.71

Version of Immich Mobile App

1.71 build 111

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

<relevant sections>

  immich-machine-learning:
    image: altran1502/immich-machine-learning:release
    container_name: immich_machinelearning
    command: [ "python", "src/main.py" ]
    volumes:
      - /media/downloads/immich/:/usr/src/app/upload
      - model-cache:/cache
    env_file:
      - immich.env
    environment:
      - NODE_ENV=production
    depends_on:
      - postgres
    restart: always

Your .env content

<relevant section>

TYPESENSE_API_KEY=<random text>

Reproduction steps

I was trying to play an uploaded video on my Macbook and the video (recorded on an iphone) didn't play. I thought to check the logs and stumbled across this. No idea if it is related but something does seem to be not working.

Additional information

No response

Originally created by @paulmorabito on GitHub (Aug 6, 2023). ### The bug Immich machine learning container reports endless lines of: ``` [Errno 2] No such file or directory python: can't open file '/usr/src/app/src/main.py ``` Immich micro services reports: ``` "id": "7c4c1a4a-3a60-4e5f-9d11-5f09217768ec", "source": "upload" } [Nest] 8 - 08/05/2023, 3:39:23 PM ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning [Nest] 8 - 08/05/2023, 3:39:23 PM ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) [Nest] 8 - 08/05/2023, 3:39:23 PM ERROR [JobService] Object: { "id": "7c4c1a4a-3a60-4e5f-9d11-5f09217768ec", "source": "upload" } [Nest] 8 - 08/05/2023, 3:39:23 PM ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning [Nest] 8 - 08/05/2023, 3:39:23 PM ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) [Nest] 8 - 08/05/2023, 3:39:23 PM ERROR [JobService] Object: { "id": "7c4c1a4a-3a60-4e5f-9d11-5f09217768ec", "source": "upload" } [Nest] 8 - 08/05/2023, 3:39:23 PM LOG [MediaService] Start encoding video 05f1dbbf-4e4a-46ce-bbed-086ea0126661 {"inputOptions":[],"outputOptions":["-vcodec h264","-acodec aac","-movflags faststart","-fps_mode passthrough","-vf scale=720:-2","-preset ultrafast","-crf 23"],"twoPass":false} [Nest] 8 - 08/05/2023, 3:39:24 PM LOG [MediaService] Encoding success 05f1dbbf-4e4a-46ce-bbed-086ea0126661 [Nest] 8 - 08/05/2023, 3:39:24 PM LOG [MediaService] Start encoding video 403b850d-0150-4e4e-8ba6-b5639b6a93a2 {"inputOptions":[],"outputOptions":["-vcodec h264","-acodec aac","-movflags faststart","-fps_mode passthrough","-vf scale=720:-2","-preset ultrafast","-crf 23"],"twoPass":false} [Nest] 8 - 08/05/2023, 3:39:24 PM LOG [MediaService] Encoding success 403b850d-0150-4e4e-8ba6-b5639b6a93a2 [Nest] 8 - 08/05/2023, 6:43:12 PM LOG [MediaService] Generating video thumbnail [Nest] 8 - 08/05/2023, 6:43:13 PM LOG [MediaService] Successfully generated video thumbnail 9704a547-2a8b-47cc-9019-ec3265f7e237 [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Object: { "id": "9704a547-2a8b-47cc-9019-ec3265f7e237", "source": "upload" } [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Object: { "id": "9704a547-2a8b-47cc-9019-ec3265f7e237", "source": "upload" } [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) [Nest] 8 - 08/05/2023, 6:43:13 PM ERROR [JobService] Object: { "id": "9704a547-2a8b-47cc-9019-ec3265f7e237", "source": "upload" } [Nest] 8 - 08/05/2023, 6:43:13 PM LOG [MediaService] Start encoding video 9704a547-2a8b-47cc-9019-ec3265f7e237 {"inputOptions":[],"outputOptions":["-vcodec h264","-acodec aac","-movflags faststart","-fps_mode passthrough","-vf scale=720:-2","-preset ultrafast","-crf 23"],"twoPass":false} [Nest] 8 - 08/05/2023, 6:43:20 PM LOG [MediaService] Encoding success 9704a547-2a8b-47cc-9019-ec3265f7e237 [Nest] 8 - 08/06/2023, 12:00:01 AM ERROR [JobService] Unable to run job handler: Error: Input file is missing: upload/upload/b1f69b2c-d492-42fe-82de-9f8fc4d7aa47/d75c5d27-e8d8-4360-a8a8-2847af8eda4a.jpg [Nest] 8 - 08/06/2023, 12:00:01 AM ERROR [JobService] Error: Input file is missing: upload/upload/b1f69b2c-d492-42fe-82de-9f8fc4d7aa47/d75c5d27-e8d8-4360-a8a8-2847af8eda4a.jpg [Nest] 8 - 08/06/2023, 12:00:01 AM ERROR [JobService] Object: { "id": "e1fade0f-8268-44b2-914b-321e32f11d68" } [Nest] 8 - 08/06/2023, 12:00:01 AM ERROR [JobService] Unable to run job handler: Error: Input file is missing: upload/upload/b1f69b2c-d492-42fe-82de-9f8fc4d7aa47/cca0bed6-6e5b-46fc-bf02-beab69eab483.HEIC [Nest] 8 - 08/06/2023, 12:00:01 AM ERROR [JobService] Error: Input file is missing: upload/upload/b1f69b2c-d492-42fe-82de-9f8fc4d7aa47/cca0bed6-6e5b-46fc-bf02-beab69eab483.HEIC [Nest] 8 - 08/06/2023, 12:00:01 AM ERROR [JobService] Object: { "id": "477a8f7f-95a3-431d-bfb3-5bc56f079615" } [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Object: { "id": "715a2df0-6f7b-46cd-83f8-a50476eaf308", "source": "upload" } [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Object: { "id": "715a2df0-6f7b-46cd-83f8-a50476eaf308", "source": "upload" } [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Unable to run job handler: Error: getaddrinfo ENOTFOUND immich-machine-learning [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Error: getaddrinfo ENOTFOUND immich-machine-learning at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) [Nest] 8 - 08/06/2023, 6:08:56 AM ERROR [JobService] Object: { "id": "715a2df0-6f7b-46cd-83f8-a50476eaf308", "source": "upload" } [Nest] 8 - 08/06/2023, 6:08:57 AM LOG [MediaService] Start encoding video bbb37747-d318-4a80-a43e-b3bd3189a8f7 {"inputOptions":[],"outputOptions":["-vcodec h264","-acodec aac","-movflags faststart","-fps_mode passthrough","-vf scale=720:-2","-preset ultrafast","-crf 23"],"twoPass":false} [Nest] 8 - 08/06/2023, 6:08:58 AM LOG [MediaService] Encoding success bbb37747-d318-4a80-a43e-b3bd3189a8f7 ``` ### The OS that Immich Server is running on Debian 12 (via docker) ### Version of Immich Server 1.71 ### Version of Immich Mobile App 1.71 build 111 ### Platform with the issue - [X] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML <relevant sections> immich-machine-learning: image: altran1502/immich-machine-learning:release container_name: immich_machinelearning command: [ "python", "src/main.py" ] volumes: - /media/downloads/immich/:/usr/src/app/upload - model-cache:/cache env_file: - immich.env environment: - NODE_ENV=production depends_on: - postgres restart: always ``` ### Your .env content ```Shell <relevant section> TYPESENSE_API_KEY=<random text> ``` ### Reproduction steps ```bash I was trying to play an uploaded video on my Macbook and the video (recorded on an iphone) didn't play. I thought to check the logs and stumbled across this. No idea if it is related but something does seem to be not working. ``` ### Additional information _No response_
Author
Owner

@paulmorabito commented on GitHub (Aug 6, 2023):

nevermind, i think my compose is out of date!

@paulmorabito commented on GitHub (Aug 6, 2023): nevermind, i think my compose is out of date!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1191