Immich crashes: libxml2: getentropy failed with error code 38 -> immich_server exited with code 134 #6403

Closed
opened 2026-02-05 12:15:50 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @ramonsmits on GitHub (Jul 1, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

Last relevant logs:

immich_server              | libxml2: getentropy failed with error code 38                                                                                                                                                                                                                                                                                                                                                          
immich_server exited with code 134   

After this, immich will keep restarting and not recover.

It requires docker-compose down then docker-compose up.

This seems to imply that some state in the immich container causes startup to fail as recreating the container makes it start again.

The OS that Immich Server is running on

Synology DSM 6.2 Docker

Version of Immich Server

v1.135.3

Version of Immich Mobile App

NA

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

#name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    labels:
      - traefik.enable=true
      - traefik.http.routers.immich_server.rule=host(`xxxx`)
      - traefik.http.routers.immich_server.entrypoints=https
      - traefik.http.routers.immich_server.tls.certresolver=letsencrypt
      - traefik.http.routers.immich_server.middlewares=compression
      - traefik.http.services.immich_server.loadbalancer.server.port=2283
      #- traefik.http.middlewares.compression.compress=true
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
#      - /volume2/photo:/data/photo:ro
      - /volume1/photo:/data/photo:ro
      - /volume1/video:/data/video:ro
      - /volume1/homes:/data/homes:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
#    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      DB_STORAGE_TYPE: 'HDD'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always

volumes:
  model-cache:

Your .env content

UPLOAD_LOCATION=./library
DB_DATA_LOCATION=./postgres
TZ=Europe/Amsterdam
IMMICH_VERSION=release
DB_PASSWORD=XXX
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
DB_STORAGE_TYPE='HDD'
#LOG_LEVEL=debug
#IMMICH_LOG_LEVEL=debug
#DB_LOG_LEVEL=debug
#REDIS_LOG_LEVEL=debug

Reproduction steps

  1. Add external library
  2. Wait until reindexes it
  3. Eventually it fails based on certain content in the library

Relevant log output

immich_server              |   libswresample   5.  1.100 /  5.  1.100                                                                                                                                                                                                                                                                                                                                                       [0/1443]
immich_server              |   libpostproc    58.  1.100 / 58.  1.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              | [gif @ 0x3f094040180] Format gif detected only with low score of 1, misdetection possible!                                                                                                                                                                                                                                                                                                             
immich_server              | /X/X/X/X/X/X.gif: End of file                                                                                                                                                                                                                                                                                                                              
immich_server              |                                                                                                                                                                                                                                                                                                                                                                                                        
immich_server              | Error: ffprobe exited with code 1                                                                                                                                                                                                                                                                                                                                                                      
immich_server              | ffprobe version 7.0.2-Jellyfin Copyright (c) 2007-2024 the FFmpeg developers                                                                                                                                                                                                                                                                                                                           
immich_server              |   built with gcc 12 (Debian 12.2.0-14)                                                                                                                                                                                                                                                                                                                                                                 
immich_server              |   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=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-lib
ass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enab
le-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc                                                                                                                                                                                                                                                                              
immich_server              |   libavutil      59.  8.100 / 59.  8.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              |   libavcodec     61.  3.100 / 61.  3.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              |   libavformat    61.  1.100 / 61.  1.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              |   libavdevice    61.  1.100 / 61.  1.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              |   libavfilter    10.  1.100 / 10.  1.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              |   libswscale      8.  1.100 /  8.  1.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              |   libswresample   5.  1.100 /  5.  1.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              |   libpostproc    58.  1.100 / 58.  1.100                                                                                                                                                                                                                                                                                                                                                               
immich_server              | [gif @ 0x3f094040180] Format gif detected only with low score of 1, misdetection possible!                                                                                                                                                                                                                                                                                                             
immich_server              | /X/X/X/X/X/X/warning.gif: End of file                                                                                                                                                                                                                                                                                                                              
immich_server              |                                                                                                                                                                                                                                                                                                                                                                                                        
immich_server              |     at ChildProcess.<anonymous> (/usr/src/app/node_modules/fluent-ffmpeg/lib/ffprobe.js:233:22)                                                                                                                                                                                                                                                                                                        
immich_server              |     at ChildProcess.emit (node:events:518:28)                                                                                                                                                                                                                                                                                                                                                          
immich_server              |     at ChildProcess._handle.onexit (node:internal/child_process:293:12)                                                                                                                                                                                                                                                                                                                                
immich_server              | [Nest] 8  - 07/01/2025, 12:00:21 AM     LOG [Microservices:LibraryService] Checked existing asset(s): 0 offlined, 0 onlined, 0 updated, 10000 unchanged of current batch of 10000 (Total progress: 40000 of 50022, 80.0 %) in library 5d86eb2e-e936-4619-837f-6aaf65b44a5e.                                                                                                                            
immich_server              | [Nest] 8  - 07/01/2025, 12:00:24 AM     LOG [Microservices:LibraryService] Checked existing asset(s): 0 offlined, 0 onlined, 0 updated, 10000 unchanged of current batch of 10000 (Total progress: 40000 of 50286, 79.5 %) in library c16ff3b8-7467-4ad8-b7e2-5984a7607332.                                                                                                                            
immich_server              | [Nest] 8  - 07/01/2025, 12:00:24 AM   ERROR [Microservices:{"id":"129483c6-c41b-49fd-aeb0-ecc3170cba23"}] Unable to run job handler (generate-thumbnails): Error: Input file contains unsupported image format                                                                                                                                                                                         
immich_server              | Error: Input file contains unsupported image format                                                                                                                                                                                                                                                                                                                                                    
immich_server              |     at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17)                                                                                                                                                                                                                                                                                                                           
immich_server              |     at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:105:68)                                                                                                                                                                                                                                                                                                         
immich_server              |     at MediaService.decodeImage (/usr/src/app/dist/services/media.service.js:177:59)                                                                                                                                                                                                                                                                                                                   
immich_server              |     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)                                                                                                                                                                                                                                                                                                                     
immich_server              |     at async MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:189:44)                                                                                                                                                                                                                                                                                                 
immich_server              |     at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:116:25)                                                                                                                                                                                                                                                                                                
immich_server              |     at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:166:28)                                                                                                                                                                                                                                                                                                                  
immich_server              |     at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13)                                                                                                                                                                                                                                                                                                       
immich_server              |     at async /usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:526:32                                                                                                                                                                                                                                                                                                                        
immich_server              |     at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:751:24)                                                                                                                                                                                                                                                                                                 
immich_server              | [Nest] 8  - 07/01/2025, 12:00:24 AM   ERROR [Microservices:{"id":"e73c0fb5-9afb-4855-9782-0a1ae0968475"}] Unable to run job handler (generate-thumbnails): Error: Input file contains unsupported image format                                                                                                                                                                                         
immich_server              | Error: Input file contains unsupported image format                                                                                                                                                                                                                                                                                                                                                    
immich_server              |     at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17)                                                                                                                                                                                                                                                                                                                           
immich_server              |     at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:105:68)                                                                                                                                                                                                                                                                                                         
immich_server              |     at MediaService.decodeImage (/usr/src/app/dist/services/media.service.js:177:59)                                                                                                                                                                                                                                                                                                                   
immich_server              |     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)                                                                                                                                                                                                                                                                                                                     
immich_server              |     at async MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:189:44)                                                                                                                                                                                                                                                                                                 
immich_server              |     at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:116:25)                                                                                                                                                                                                                                                                                                
immich_server              |     at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:166:28)                                                                                                                                                                                                                                                                                                                  
immich_server              |     at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13)                                                                                                                                                                                                                                                                                                       
immich_server              |     at async /usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:526:32                                                                                                                                                                                                                                                                                                                        
immich_server              |     at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:751:24)                                                                                                                                                                                                                                                                                                 
immich_server              | [Nest] 8  - 07/01/2025, 12:00:24 AM   ERROR [Microservices:{"id":"b931e43f-2685-4f66-ae14-515822cf41aa"}] Unable to run job handler (generate-thumbnails): Error: Input file contains unsupported image format                                                                                                                                                                                         
immich_server              | Error: Input file contains unsupported image format                                                                                                                                                                                                                                                                                                                                                    
immich_server              |     at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17)                                                                                                                                                                                                                                                                                                                           
immich_server              |     at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:105:68)                                                                                                                                                                                                                                                                                                         
immich_server              |     at MediaService.decodeImage (/usr/src/app/dist/services/media.service.js:177:59)                                                                                                                                                                                                                                                                                                                   
immich_server              |     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)                                                                                                                                                                                                                                                                                                                     
immich_server              |     at async MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:189:44)                                                                                                                                                                                                                                                                                                 
immich_server              |     at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:116:25)                                                                                                                                                                                                                                                                                                
immich_server              |     at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:166:28)                                                                                                                                                                                                                                                                                                                  
immich_server              |     at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13)                                                                                                                                                                                                                                                                                                       
immich_server              |     at async /usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:526:32                                                                                                                                                                                                                                                                                                                        
immich_server              |     at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:751:24)                                                                                                                                                                                                                                                                                                 
immich_server              | [Nest] 8  - 07/01/2025, 12:00:29 AM   ERROR [Microservices:{"id":"99a836a2-5cfe-4560-845b-82198cce2dfa"}] Unable to run job handler (generate-thumbnails): Error: Input file contains unsupported image format                                                                                                                                                                                         
immich_server              | libxml2: getentropy failed with error code 38                                                                                                                                                                                                                                                                                                                                                          
immich_postgres            | 2025-06-30 22:00:47.107 UTC [3253] LOG:  could not receive data from client: Connection reset by peer                                                                                                                                                                                                                                                                                                  
immich_postgres            | 2025-06-30 22:00:47.107 UTC [3253] LOG:  unexpected EOF on client connection with an open transaction                                                                                                                                                                                                                                                                                                  
immich_server exited with code 134

Additional information

No response

Originally created by @ramonsmits on GitHub (Jul 1, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug Last relevant logs: ``` immich_server | libxml2: getentropy failed with error code 38 immich_server exited with code 134 ``` After this, immich will keep restarting and not recover. It requires `docker-compose down` then `docker-compose up`. This seems to imply that some state in the immich container causes startup to fail as recreating the container makes it start again. ### The OS that Immich Server is running on Synology DSM 6.2 Docker ### Version of Immich Server v1.135.3 ### Version of Immich Mobile App NA ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML #name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.transcoding.yml # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding labels: - traefik.enable=true - traefik.http.routers.immich_server.rule=host(`xxxx`) - traefik.http.routers.immich_server.entrypoints=https - traefik.http.routers.immich_server.tls.certresolver=letsencrypt - traefik.http.routers.immich_server.middlewares=compression - traefik.http.services.immich_server.loadbalancer.server.port=2283 #- traefik.http.middlewares.compression.compress=true volumes: # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro # - /volume2/photo:/data/photo:ro - /volume1/photo:/data/photo:ro - /volume1/video:/data/video:ro - /volume1/homes:/data/homes:ro env_file: - .env ports: - '2283:2283' depends_on: - redis - database # restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs DB_STORAGE_TYPE: 'HDD' volumes: # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file - ${DB_DATA_LOCATION}:/var/lib/postgresql/data shm_size: 128mb restart: always volumes: model-cache: ``` ### Your .env content ```Shell UPLOAD_LOCATION=./library DB_DATA_LOCATION=./postgres TZ=Europe/Amsterdam IMMICH_VERSION=release DB_PASSWORD=XXX DB_USERNAME=postgres DB_DATABASE_NAME=immich DB_STORAGE_TYPE='HDD' #LOG_LEVEL=debug #IMMICH_LOG_LEVEL=debug #DB_LOG_LEVEL=debug #REDIS_LOG_LEVEL=debug ``` ### Reproduction steps 1. Add external library 2. Wait until reindexes it 3. Eventually it fails based on certain content in the library ### Relevant log output ```shell immich_server | libswresample 5. 1.100 / 5. 1.100 [0/1443] immich_server | libpostproc 58. 1.100 / 58. 1.100 immich_server | [gif @ 0x3f094040180] Format gif detected only with low score of 1, misdetection possible! immich_server | /X/X/X/X/X/X.gif: End of file immich_server | immich_server | Error: ffprobe exited with code 1 immich_server | ffprobe version 7.0.2-Jellyfin Copyright (c) 2007-2024 the FFmpeg developers immich_server | built with gcc 12 (Debian 12.2.0-14) immich_server | 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=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-lib ass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enab le-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc immich_server | libavutil 59. 8.100 / 59. 8.100 immich_server | libavcodec 61. 3.100 / 61. 3.100 immich_server | libavformat 61. 1.100 / 61. 1.100 immich_server | libavdevice 61. 1.100 / 61. 1.100 immich_server | libavfilter 10. 1.100 / 10. 1.100 immich_server | libswscale 8. 1.100 / 8. 1.100 immich_server | libswresample 5. 1.100 / 5. 1.100 immich_server | libpostproc 58. 1.100 / 58. 1.100 immich_server | [gif @ 0x3f094040180] Format gif detected only with low score of 1, misdetection possible! immich_server | /X/X/X/X/X/X/warning.gif: End of file immich_server | immich_server | at ChildProcess.<anonymous> (/usr/src/app/node_modules/fluent-ffmpeg/lib/ffprobe.js:233:22) immich_server | at ChildProcess.emit (node:events:518:28) immich_server | at ChildProcess._handle.onexit (node:internal/child_process:293:12) immich_server | [Nest] 8 - 07/01/2025, 12:00:21 AM LOG [Microservices:LibraryService] Checked existing asset(s): 0 offlined, 0 onlined, 0 updated, 10000 unchanged of current batch of 10000 (Total progress: 40000 of 50022, 80.0 %) in library 5d86eb2e-e936-4619-837f-6aaf65b44a5e. immich_server | [Nest] 8 - 07/01/2025, 12:00:24 AM LOG [Microservices:LibraryService] Checked existing asset(s): 0 offlined, 0 onlined, 0 updated, 10000 unchanged of current batch of 10000 (Total progress: 40000 of 50286, 79.5 %) in library c16ff3b8-7467-4ad8-b7e2-5984a7607332. immich_server | [Nest] 8 - 07/01/2025, 12:00:24 AM ERROR [Microservices:{"id":"129483c6-c41b-49fd-aeb0-ecc3170cba23"}] Unable to run job handler (generate-thumbnails): Error: Input file contains unsupported image format immich_server | Error: Input file contains unsupported image format immich_server | at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) immich_server | at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:105:68) immich_server | at MediaService.decodeImage (/usr/src/app/dist/services/media.service.js:177:59) immich_server | at process.processTicksAndRejections (node:internal/process/task_queues:105:5) immich_server | at async MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:189:44) immich_server | at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:116:25) immich_server | at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:166:28) immich_server | at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) immich_server | at async /usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:526:32 immich_server | at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:751:24) immich_server | [Nest] 8 - 07/01/2025, 12:00:24 AM ERROR [Microservices:{"id":"e73c0fb5-9afb-4855-9782-0a1ae0968475"}] Unable to run job handler (generate-thumbnails): Error: Input file contains unsupported image format immich_server | Error: Input file contains unsupported image format immich_server | at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) immich_server | at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:105:68) immich_server | at MediaService.decodeImage (/usr/src/app/dist/services/media.service.js:177:59) immich_server | at process.processTicksAndRejections (node:internal/process/task_queues:105:5) immich_server | at async MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:189:44) immich_server | at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:116:25) immich_server | at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:166:28) immich_server | at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) immich_server | at async /usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:526:32 immich_server | at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:751:24) immich_server | [Nest] 8 - 07/01/2025, 12:00:24 AM ERROR [Microservices:{"id":"b931e43f-2685-4f66-ae14-515822cf41aa"}] Unable to run job handler (generate-thumbnails): Error: Input file contains unsupported image format immich_server | Error: Input file contains unsupported image format immich_server | at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) immich_server | at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:105:68) immich_server | at MediaService.decodeImage (/usr/src/app/dist/services/media.service.js:177:59) immich_server | at process.processTicksAndRejections (node:internal/process/task_queues:105:5) immich_server | at async MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:189:44) immich_server | at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:116:25) immich_server | at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:166:28) immich_server | at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13) immich_server | at async /usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:526:32 immich_server | at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:751:24) immich_server | [Nest] 8 - 07/01/2025, 12:00:29 AM ERROR [Microservices:{"id":"99a836a2-5cfe-4560-845b-82198cce2dfa"}] Unable to run job handler (generate-thumbnails): Error: Input file contains unsupported image format immich_server | libxml2: getentropy failed with error code 38 immich_postgres | 2025-06-30 22:00:47.107 UTC [3253] LOG: could not receive data from client: Connection reset by peer immich_postgres | 2025-06-30 22:00:47.107 UTC [3253] LOG: unexpected EOF on client connection with an open transaction immich_server exited with code 134 ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Jul 1, 2025):

Probably related:
https://github.com/maybe-finance/maybe/discussions/2007
https://github.com/jellyfin/jellyfin-ffmpeg/issues/530

What's the kernel version you're running?

My first thoughts are we could maybe try updating some deps but I think this is not at the core an Immich issue.

@bo0tzz commented on GitHub (Jul 1, 2025): Probably related: https://github.com/maybe-finance/maybe/discussions/2007 https://github.com/jellyfin/jellyfin-ffmpeg/issues/530 What's the kernel version you're running? My first thoughts are we could maybe try updating some deps but I think this is not at the core an Immich issue.
Author
Owner

@ramonsmits commented on GitHub (Jul 1, 2025):

What's the kernel version you're running?

Synology DSM 6.2.4-25556 Update 8
Kernel 3.10.105

@ramonsmits commented on GitHub (Jul 1, 2025): > What's the kernel version you're running? Synology DSM 6.2.4-25556 Update 8 Kernel 3.10.105
Author
Owner

@ramonsmits commented on GitHub (Jul 1, 2025):

I'm not running on latest DSM 7.1.x for my model, but AFAIK that uses the same kernel version.

claude.ai suggested to do:

docker run -e LIBXML_DISABLE_GETENTROPY=1 -v /dev/urandom:/dev/urandom:ro

So added this envvar and volume mapping to my docker-compose.yml. Will report if this makes a difference.

@ramonsmits commented on GitHub (Jul 1, 2025): I'm not running on latest DSM 7.1.x for my model, but AFAIK that uses the same kernel version. claude.ai suggested to do: docker run -e LIBXML_DISABLE_GETENTROPY=1 -v /dev/urandom:/dev/urandom:ro So added this envvar and volume mapping to my `docker-compose.yml`. Will report if this makes a difference.
Author
Owner

@ramonsmits commented on GitHub (Jul 3, 2025):

unfortunately that didn't help.

Again, compose down/up resolved it. That failure really makes a change to the container that will result in restarting the container to fail.

@ramonsmits commented on GitHub (Jul 3, 2025): unfortunately that didn't help. Again, compose down/up resolved it. That failure really makes a change to the container that will result in restarting the container to fail.
Author
Owner

@mtheuma commented on GitHub (Jul 19, 2025):

I'm experiencing this same issue on DSM 7.2.2.

@mtheuma commented on GitHub (Jul 19, 2025): I'm experiencing this same issue on DSM 7.2.2.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#6403