[BUG] Immich fails to start when the external library is offline #1555

Closed
opened 2026-02-05 02:21:17 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @travelr on GitHub (Nov 2, 2023).

The bug

Hi,

when a external library (mount) is not available then Immich fails to start via docker. I run into this issue mainly when Watchtower is updating Immich. Then it fails to start until you restore the connection to the library.

Is it possible to make external libraries fail silent if the mount is not available?

Found new [ghcr.io/immich-app/immich-proxy:release](http://ghcr.io/immich-app/immich-proxy:release) image (7a8db6b05f20)
Found new [ghcr.io/immich-app/immich-web:release](http://ghcr.io/immich-app/immich-web:release) image (7582947032dd)
Found new [ghcr.io/immich-app/immich-server:release](http://ghcr.io/immich-app/immich-server:release) image (00a6abcca4cd)
Found new [ghcr.io/immich-app/immich-server:release](http://ghcr.io/immich-app/immich-server:release) image (00a6abcca4cd)
Stopping /immich_server (29882f88facf) with SIGTERM
Stopping /immich_microservices (15ed80080880) with SIGTERM
Stopping /immich_web (ffac222af448) with SIGTERM
Stopping /immich_proxy (d8a08f4cb2a7) with SIGTERM
Creating /immich_proxy
Creating /immich_web
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/photos_ext" to rootfs at "/mnt/media/photos": mount /mnt/photos_ext:/mnt/media/photos (via /proc/self/fd/6), flags: 0x5001: no such device: unknown
Creating /immich_microservices
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/photos_ext" to rootfs at "/mnt/media/photos": mount /mnt/photos_ext:/mnt/media/photos (via /proc/self/fd/6), flags: 0x5001: no such device: unknown
Creating /immich_server
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/photos_ext" to rootfs at "/mnt/media/photos": mount /mnt/photos_ext:/mnt/media/photos (via /proc/self/fd/6), flags: 0x5001: no such device: unknown

PS: If anybody can tell me why the CIFS mount to Hetzner stops working after a day I would appreciate it.

//123.your-storagebox.de/123-sub1 /mnt/photos_ext_crypt cifs credentials=/root/.smb_cred_photos,iocharset=utf8,rw,_netdev,uid=xy,gid=xy,file_mode=0660,dir_mode=0770,vers=3.0  0 0

The OS that Immich Server is running on

Ubuntu 22

Version of Immich Server

latest

Version of Immich Mobile App

latest

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

volumes:
    - /home/xy/photos:/usr/src/app/upload
    - /mnt/photos_ext:/mnt/media/photos:ro

Your .env content

-

Reproduction steps

1.
2.
3.
...

Additional information

No response

Originally created by @travelr on GitHub (Nov 2, 2023). ### The bug Hi, when a external library (mount) is not available then Immich fails to start via docker. I run into this issue mainly when Watchtower is updating Immich. Then it fails to start until you restore the connection to the library. Is it possible to make external libraries fail silent if the mount is not available? ``` Found new [ghcr.io/immich-app/immich-proxy:release](http://ghcr.io/immich-app/immich-proxy:release) image (7a8db6b05f20) Found new [ghcr.io/immich-app/immich-web:release](http://ghcr.io/immich-app/immich-web:release) image (7582947032dd) Found new [ghcr.io/immich-app/immich-server:release](http://ghcr.io/immich-app/immich-server:release) image (00a6abcca4cd) Found new [ghcr.io/immich-app/immich-server:release](http://ghcr.io/immich-app/immich-server:release) image (00a6abcca4cd) Stopping /immich_server (29882f88facf) with SIGTERM Stopping /immich_microservices (15ed80080880) with SIGTERM Stopping /immich_web (ffac222af448) with SIGTERM Stopping /immich_proxy (d8a08f4cb2a7) with SIGTERM Creating /immich_proxy Creating /immich_web Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/photos_ext" to rootfs at "/mnt/media/photos": mount /mnt/photos_ext:/mnt/media/photos (via /proc/self/fd/6), flags: 0x5001: no such device: unknown Creating /immich_microservices Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/photos_ext" to rootfs at "/mnt/media/photos": mount /mnt/photos_ext:/mnt/media/photos (via /proc/self/fd/6), flags: 0x5001: no such device: unknown Creating /immich_server Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/photos_ext" to rootfs at "/mnt/media/photos": mount /mnt/photos_ext:/mnt/media/photos (via /proc/self/fd/6), flags: 0x5001: no such device: unknown ``` PS: If anybody can tell me why the CIFS mount to Hetzner stops working after a day I would appreciate it. ``` //123.your-storagebox.de/123-sub1 /mnt/photos_ext_crypt cifs credentials=/root/.smb_cred_photos,iocharset=utf8,rw,_netdev,uid=xy,gid=xy,file_mode=0660,dir_mode=0770,vers=3.0 0 0 ``` ### The OS that Immich Server is running on Ubuntu 22 ### Version of Immich Server latest ### Version of Immich Mobile App latest ### Platform with the issue - [X] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML volumes: - /home/xy/photos:/usr/src/app/upload - /mnt/photos_ext:/mnt/media/photos:ro ``` ### Your .env content ```Shell - ``` ### Reproduction steps ```bash 1. 2. 3. ... ``` ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1555