v1.142.0 - Could not load the "sharp" module using the linux-arm64 runtime #7171

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

Originally created by @florentyu on GitHub (Sep 13, 2025).

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

  • Yes

The bug

After upgrading from v1.141.1 to v1.142.0 using docker-compose, immich-server throw the following error :

Could not load the "sharp" module using the linux-arm64 runtime

The OS that Immich Server is running on

Linux 6.1.0-39-arm64 SMP Debian 6.1.148-1 (2025-08-26) aarch64 GNU/Linux

Version of Immich Server

v1.142.0

Version of Immich Mobile App

v1.142.0

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
 transcoding
    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
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
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:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0@sha256:fa4f6e0971f454cd95fec5a9aaed2ed93d8f46725cc6bc61e0698e97dba96da1
    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
    restart: always

volumes:
  model-cache:

Your .env content

# The location where your uploaded files are stored
UPLOAD_LOCATION=xxxxxxxxxxxxx

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=xxxxxxxxxxxxx

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=xxxxxxxxxxxxx

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=xxxxxxxxxxxxx
DB_DATABASE_NAME=xxxxxxxxxxxxx

Reproduction steps

Upgrade from v1.141.1 to v1.142.0
docker compose pull && docker compose up -d

Relevant log output

immich_server    | Initializing Immich v1.142.0
immich_server    | skipping libmimalloc - path not found /usr/lib/aarch64-linux-gnu/libmimalloc.so.2
immich_server    | Detected CPU Cores: 2
immich_server    | /usr/src/app/server/node_modules/.pnpm/sharp@0.34.3/node_modules/sharp/lib/sharp.js:121
immich_server    |   throw new Error(help.join('\n'));
immich_server    |   ^
immich_server    |
immich_server    | Error: Could not load the "sharp" module using the linux-arm64 runtime
immich_server    | ERR_DLOPEN_FAILED: /usr/local/lib/libvips-cpp.so.42: file too short
immich_server    | Possible solutions:
immich_server    | - Ensure optional dependencies can be installed:
immich_server    |     npm install --include=optional sharp
immich_server    | - Ensure your package manager supports multi-platform installation:
immich_server    |     See https://sharp.pixelplumbing.com/install#cross-platform
immich_server    | - Add platform-specific dependencies:
immich_server    |     npm install --os=linux --cpu=arm64 sharp
immich_server    | - Consult the installation documentation:
immich_server    |     See https://sharp.pixelplumbing.com/install
immich_server    |     at Object.<anonymous> (/usr/src/app/server/node_modules/.pnpm/sharp@0.34.3/node_modules/sharp/lib/sharp.js:121:9)
immich_server    |     at Module._compile (node:internal/modules/cjs/loader:1688:14)
immich_server    |     at Object..js (node:internal/modules/cjs/loader:1820:10)
immich_server    |     at Module.load (node:internal/modules/cjs/loader:1423:32)
immich_server    |     at Function._load (node:internal/modules/cjs/loader:1246:12)
immich_server    |     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
immich_server    |     at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
immich_server    |     at Module.require (node:internal/modules/cjs/loader:1445:12)
immich_server    |     at require (node:internal/modules/helpers:135:16)
immich_server    |     at Object.<anonymous> (/usr/src/app/server/node_modules/.pnpm/sharp@0.34.3/node_modules/sharp/lib/constructor.js:10:1)
immich_server    |
immich_server    | Node.js v22.18.0

Additional information

No response

Originally created by @florentyu on GitHub (Sep 13, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug After upgrading from v1.141.1 to v1.142.0 using docker-compose, **immich-server** throw the following error : `Could not load the "sharp" module using the linux-arm64 runtime` ### The OS that Immich Server is running on Linux 6.1.0-39-arm64 SMP Debian 6.1.148-1 (2025-08-26) aarch64 GNU/Linux ### Version of Immich Server v1.142.0 ### Version of Immich Mobile App v1.142.0 ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model _No response_ ### 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} transcoding 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 env_file: - .env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} 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:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0@sha256:fa4f6e0971f454cd95fec5a9aaed2ed93d8f46725cc6bc61e0698e97dba96da1 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 restart: always volumes: model-cache: ``` ### Your .env content ```Shell # The location where your uploaded files are stored UPLOAD_LOCATION=xxxxxxxxxxxxx # The location where your database files are stored. Network shares are not supported for the database DB_DATA_LOCATION=xxxxxxxxxxxxx # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List # TZ=Etc/UTC # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secret for postgres. You should change it to a random password # Please use only the characters `A-Za-z0-9`, without special characters or spaces DB_PASSWORD=xxxxxxxxxxxxx # The values below this line do not need to be changed ################################################################################### DB_USERNAME=xxxxxxxxxxxxx DB_DATABASE_NAME=xxxxxxxxxxxxx ``` ### Reproduction steps Upgrade from v1.141.1 to v1.142.0 docker compose pull && docker compose up -d ### Relevant log output ```shell immich_server | Initializing Immich v1.142.0 immich_server | skipping libmimalloc - path not found /usr/lib/aarch64-linux-gnu/libmimalloc.so.2 immich_server | Detected CPU Cores: 2 immich_server | /usr/src/app/server/node_modules/.pnpm/sharp@0.34.3/node_modules/sharp/lib/sharp.js:121 immich_server | throw new Error(help.join('\n')); immich_server | ^ immich_server | immich_server | Error: Could not load the "sharp" module using the linux-arm64 runtime immich_server | ERR_DLOPEN_FAILED: /usr/local/lib/libvips-cpp.so.42: file too short immich_server | Possible solutions: immich_server | - Ensure optional dependencies can be installed: immich_server | npm install --include=optional sharp immich_server | - Ensure your package manager supports multi-platform installation: immich_server | See https://sharp.pixelplumbing.com/install#cross-platform immich_server | - Add platform-specific dependencies: immich_server | npm install --os=linux --cpu=arm64 sharp immich_server | - Consult the installation documentation: immich_server | See https://sharp.pixelplumbing.com/install immich_server | at Object.<anonymous> (/usr/src/app/server/node_modules/.pnpm/sharp@0.34.3/node_modules/sharp/lib/sharp.js:121:9) immich_server | at Module._compile (node:internal/modules/cjs/loader:1688:14) immich_server | at Object..js (node:internal/modules/cjs/loader:1820:10) immich_server | at Module.load (node:internal/modules/cjs/loader:1423:32) immich_server | at Function._load (node:internal/modules/cjs/loader:1246:12) immich_server | at TracingChannel.traceSync (node:diagnostics_channel:322:14) immich_server | at wrapModuleLoad (node:internal/modules/cjs/loader:235:24) immich_server | at Module.require (node:internal/modules/cjs/loader:1445:12) immich_server | at require (node:internal/modules/helpers:135:16) immich_server | at Object.<anonymous> (/usr/src/app/server/node_modules/.pnpm/sharp@0.34.3/node_modules/sharp/lib/constructor.js:10:1) immich_server | immich_server | Node.js v22.18.0 ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Sep 13, 2025):

Please try deleting and re-pulling the immich-server image

@bo0tzz commented on GitHub (Sep 13, 2025): Please try deleting and re-pulling the immich-server image
Author
Owner

@florentyu commented on GitHub (Sep 13, 2025):

Please try deleting and re-pulling the immich-server image

Indeed, deleting and re-pulling fixed the issue.
I've got a bad docker image, thanks for pointing this out !

@florentyu commented on GitHub (Sep 13, 2025): > Please try deleting and re-pulling the immich-server image Indeed, deleting and re-pulling fixed the issue. I've got a bad docker image, thanks for pointing this out !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7171