October 9, 2026
The cleanup job that broke 24 containers
My domains went dark because the Shelver, Eight.ly's nightly cache mover, had been deleting empty folders inside running containers for five days. Here is how I found it, proved it on a throwaway VM, and fixed it.
A little after noon on Friday, none of my domains worked. Overseerr was gone, NZBGet was gone, and the NAS that serves most of my house was showing every container as "Up". The cause turned out to be a few lines of my own code in the Shelver, the nightly job in Eight.ly OS that moves files from the cache SSD onto the array. It had been deleting empty folders inside running containers since the previous Sunday.

Everything said "Up"
The first pass was the boring kind of debugging. The front door was fine: most addresses still answered and sent me to the Authelia sign-in. Behind it, Plex on the NAS refused connections and the NAS's own Traefik had no route for Overseerr. All 24 containers on the box reported Up. Plex was not listening, and seerr, tautulli and reaparr were unhealthy.
The host's own /proc was healthy, so the trouble was inside the containers. A brand-new container on the same box worked, and its settings matched the broken ones exactly. So Docker itself was fine and the old containers were damaged. Restarting them brought 23 of 24 back. Tautulli kept looping on exit code 1 and needed a full recreate. By about 12:50 my domains answered again and the outage was filed as EOS-2587 at the top of the running sprint.
Getting the apps back is the easy half. I had no idea why they broke, which meant I had no idea when they would break again.
The wrong suspect first
The health check history said the first failure on the NAS was 4 October at 03:15:55 UTC. That was five days earlier, not the night before. Five minutes before that, at 03:10:49, Debian's weekly xfs_scrub_all had started. The same scrub had run on 13, 20 and 27 September with no damage. The one thing that changed in between was that on 3 October I moved Docker's data off the boot disk and onto the cache SSD at /mnt/array-cache/docker. The scrub's units run with private mounts, and I had a plausible story about it disturbing the mounts Docker shares.
Plausible was all it was, so I disabled the weekly timer on the NAS to protect the coming Sunday and went looking for proof. There was also a second suspect in the air. The night before I had shipped v2.3.72 to fix a separate bug where a failed image pull deleted containerd leases and stripped the writable layer from running containers on another box. That bug was real, but it had a different shape and different boxes, and I kept it out of this investigation on purpose.
The audit log had the answer
The NAS keeps an audit log, and I read the window around 03:15 on 4 October over the API. Three lines mattered. At 03:15:41 the Shelver relocated a set of hardlinked files. At 03:15:53 it logged the end of its scheduled run: 147 files moved, about 49.8 GB, 2 errors. Two seconds later the first container failed its health check. Nothing else ran in that window. Tautulli broke again on Monday 5 October, which a Sunday-only scrub cannot explain and a nightly mover can.
Then I read the end of the Shelver's run in internal/storage/mover.go. Line 677 called cleanEmptyDirs(cfg.CachePath). That function walked the entire cache and removed every empty directory it found. It skipped nothing. It ignored excluded and pinned shares, it crossed into other mounts, and once Docker's data lived on the cache it walked straight into each running container's root filesystem. Every container has empty folders that the runtime needs to exist: /proc, /sys, /tmp, /root, /mnt, and empty volume folders that an app has not written to yet. The Shelver deleted all of them, every night, as tidy housekeeping.
The function had been harmless for as long as the cache only held user files. The day I put Docker on the cache, it became a container wrecker, and the first run after the move did exactly what the record says.
Proving it on a box I could break
A theory that matches the timestamps is still a theory. I built a throwaway VM on testprox with Docker on a btrfs cache and six containers, then ran the two suspects separately.
xfs_scrub_all ran twice. All six containers stayed healthy, and the filesystem diff inside each showed only the probe files I had written. Then I ran the Shelver's cleanup function over the same cache. It removed 309 folders, six of each kind across the six containers, from var/tmp and etc/periodic/daily to proc and sys. All six containers went unhealthy at once. A restart brought five back with the deletions still baked into their layers. The one whose empty volume folder had been removed needed a recreate. That was the NAS in miniature: 23 restarted, one recreated.
At 13:43 I turned the Shelver off on the NAS through its own Settings > Storage screen. Its next run had been scheduled for 23:00 that night and would have broken everything again. I also checked the other boxes. Each one either had the Shelver off or kept Docker on /var/lib/docker, off the cache.
The fix
PR #1977 merged at 14:18 as cbc0183df, and it went out in v2.3.73 that afternoon. The idea is simple. The Shelver now records which directories its own run emptied by moving files out of them, and the cleanup only considers those. Even then it refuses anything under an excluded or pinned share, anything under Docker's data root, which it reads from daemon.json instead of assuming a path, anything under appdata, and anything on a different filesystem. The main new test builds a cache holding a container's empty proc and sys folders, an empty volume folder, an excluded path, a pinned share and an untouched empty folder, moves one episode off it, and checks that only the three folders that episode left empty are gone.
The second half of the ticket was about the five days. My containers were damaged from Sunday to Friday, and nothing on any screen said so. They said "Up", because the process was up. So PR #1981 teaches the Docker page to mark a container Broken when the runtime itself refuses to run anything inside it, with "The container's files are damaged; Recreate it." Codex reviewed it and pushed back on several points. One of them changed the design: most containers have no health check at all, so waiting for a failed health check would have missed most of the damage. A running container without one now gets a cheap docker exec <id> true probe, at most once every five minutes per container and three per read.
Turning it back on
At 20:33 I turned the Shelver back on through the same Settings screen on the NAS, now running v2.3.73. Before the run, all 24 containers were up, with the four that have health checks reporting healthy. The scheduled run finished at 23:16. It moved 198 files, 143.6 GB, with Docker still on the cache. Two minutes later all 24 were still up and all four health checks still passed. On 4 October the same job had broken them within two seconds.
There was a smaller echo the same evening. The Monitoring page's Drive Status card was listing every container's root under /mnt/array-cache/docker/rootfs/overlayfs/ as if it were a drive, all reading 165G of 916G. Same cause underneath: code that assumed Docker would never live on the cache. That one became EOS-2617 and merged that night as PR #1984.
What stays with me from Friday is how long the damage sat there. The cleanup was mine, it was wrong the moment I gave it a cache with containers on it, and the only reason I found it was that my own domains stopped answering. The fixed Shelver is the smaller part of the work. The bigger part is a screen that tells you a container is damaged, so the next owner hears it from Eight.ly instead of from a dead Overseerr.