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.
- NFS storage
- Docker bind mount
- Immich library
Investigation
Symptoms and impact
The nightly scan marked 48,207 photos offline after a reboot.
Diagnostic observations
The application was looking at the underlying empty directory instead of the mounted library.
Root cause
Docker started before the NFS mount. The already-running container’s private bind mount did not pick up the later mount.
Remediation
Restarted the stack and declared the mount as a startup dependency with a systemd drop-in.
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.