Homelab · Sanitized report

The photo library marked offline overnight

A reboot let a container bind to an empty directory before the NFS mount was ready.

Startup dependency
  • NFS storage
  • Docker bind mount
  • Immich library
  1. Symptoms and impact

    The nightly scan marked 48,207 photos offline after a reboot.

  2. Diagnostic observations

    The application was looking at the underlying empty directory instead of the mounted library.

  3. Root cause

    Docker started before the NFS mount. The already-running container’s private bind mount did not pick up the later mount.

  4. Remediation

    Restarted the stack and declared the mount as a startup dependency with a systemd drop-in.

  5. Verification

    The volume was available again after restarting the stack. The rescan restored the library without data loss.

Lessons learned

Declare storage dependencies explicitly and verify their order after reboot.