cannot open shared object file #5753

Closed
opened 2026-02-05 11:43:09 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @YowFung on GitHub (Apr 2, 2025).

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

  • Yes

The bug

ERROR: ld.so: object '/usr/lib/libmimalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

The OS that Immich Server is running on

Debian

Version of Immich Server

v1.131.1

Version of Immich Mobile App

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

sudo docker run -d -it \
  --name immich-machine-learning \
  --restart always \
  --network prod \
  --group-add 44 \
  --group-add 109 \
  --device /dev/dri:/dev/dri \
  --device-cgroup-rule 'c 189:* rmw' \
  -v /dev/bus/usb:/dev/bus/usb \
  -v /docker/immich-machine-learning:/cache \
  -e MACHINE_LEARNING_WORKER_TIMEOUT=300 \
  -e MACHINE_LEARNING_MAX_BATCH_SIZE__FACIAL_RECOGNITION=1 \
  -e TZ=Asia/Shanghai \
  -p 3003:3003 \
  ghcr.io/immich-app/immich-machine-learning:release-openvino

Your .env content

-e MACHINE_LEARNING_WORKER_TIMEOUT=300 \
  -e MACHINE_LEARNING_MAX_BATCH_SIZE__FACIAL_RECOGNITION=1 \
  -e TZ=Asia/Shanghai \

Reproduction steps

  1. docker run
  2. watch logs
  3. get the error in log

Relevant log output

$ docker logs -f immich-machine-learning
ERROR: ld.so: object '/usr/lib/libmimalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/libmimalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/libmimalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[04/02/25 13:18:31] INFO     Starting gunicorn 23.0.0
[04/02/25 13:18:31] INFO     Listening at: http://[::]:3003 (8)
[04/02/25 13:18:31] INFO     Using worker: immich_ml.config.CustomUvicornWorker
[04/02/25 13:18:31] INFO     Booting worker with pid: 9
[04/02/25 13:18:45] INFO     Started server process [9]
[04/02/25 13:18:45] INFO     Waiting for application startup.
[04/02/25 13:18:45] INFO     Created in-memory cache with unloading after 300s
                             of inactivity.
[04/02/25 13:18:45] INFO     Initialized request thread pool with 4 threads.
[04/02/25 13:18:45] INFO     Application startup complete.

Additional information

No response

Originally created by @YowFung on GitHub (Apr 2, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug ERROR: ld.so: object '/usr/lib/libmimalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ### The OS that Immich Server is running on Debian ### Version of Immich Server v1.131.1 ### Version of Immich Mobile App - ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML sudo docker run -d -it \ --name immich-machine-learning \ --restart always \ --network prod \ --group-add 44 \ --group-add 109 \ --device /dev/dri:/dev/dri \ --device-cgroup-rule 'c 189:* rmw' \ -v /dev/bus/usb:/dev/bus/usb \ -v /docker/immich-machine-learning:/cache \ -e MACHINE_LEARNING_WORKER_TIMEOUT=300 \ -e MACHINE_LEARNING_MAX_BATCH_SIZE__FACIAL_RECOGNITION=1 \ -e TZ=Asia/Shanghai \ -p 3003:3003 \ ghcr.io/immich-app/immich-machine-learning:release-openvino ``` ### Your .env content ```Shell -e MACHINE_LEARNING_WORKER_TIMEOUT=300 \ -e MACHINE_LEARNING_MAX_BATCH_SIZE__FACIAL_RECOGNITION=1 \ -e TZ=Asia/Shanghai \ ``` ### Reproduction steps 1. docker run 2. watch logs 3. get the error in log ### Relevant log output ```shell $ docker logs -f immich-machine-learning ERROR: ld.so: object '/usr/lib/libmimalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ERROR: ld.so: object '/usr/lib/libmimalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ERROR: ld.so: object '/usr/lib/libmimalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. [04/02/25 13:18:31] INFO Starting gunicorn 23.0.0 [04/02/25 13:18:31] INFO Listening at: http://[::]:3003 (8) [04/02/25 13:18:31] INFO Using worker: immich_ml.config.CustomUvicornWorker [04/02/25 13:18:31] INFO Booting worker with pid: 9 [04/02/25 13:18:45] INFO Started server process [9] [04/02/25 13:18:45] INFO Waiting for application startup. [04/02/25 13:18:45] INFO Created in-memory cache with unloading after 300s of inactivity. [04/02/25 13:18:45] INFO Initialized request thread pool with 4 threads. [04/02/25 13:18:45] INFO Application startup complete. ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Apr 2, 2025):

This is fixed in the latest version (and also harmless).

@bo0tzz commented on GitHub (Apr 2, 2025): This is fixed in the latest version (and also harmless).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#5753