The Update Cron That Patched Nothing
A weekly LXC update job fired on schedule for about sixteen months and installed nothing: a 404 script URL, with the error sent to /dev/null. Auditing every update mechanism found zeroes that meant nothing.
My Proxmox node had one job for keeping its LXC containers patched: a line in root's crontab, every Saturday at 03:00. The cron journal shows it firing on August 1, 8, 15 and 22 of 2026. Its log file had not grown since 2025-04-05.
One line, three quiet failures
0 3 * * 6 ... bash -c "$(wget -qLO - https://.../update-lxcs-cron.sh)" >>/var/log/update-lxcs-cron.log 2>/dev/null
It downloads a community update script from GitHub and pipes it into bash. Upstream had moved the script, so the URL now returns 404. With -q, wget prints nothing, so the command becomes bash -c "" and does nothing at all. The wget error went to stderr, and 2>/dev/null threw it away. No output, nothing in the log, nothing to notice.
The dates line up. One LXC's apt package index was last refreshed on 2025-04-05, the same day the log stopped growing. When I found this on 2026-08-25, the job had been firing on schedule and patching nothing for about sixteen months.
Zero pending meant nothing
That day I audited every update mechanism in the fleet, read-only and live on each host. Inside two of the LXCs, apt reported 0 pending.
Their package indexes were 497 and 506 days old, so apt had nothing current to compare against. After apt-get update, the same two hosts showed 97 pending with 23 security, and 92 pending with 20 security. The DNS primary had reported 3 pending against a 67-day-old index. The real figure was 50, with 26 security. The media LXC, whose index happened to be current, had 33 pending and 25 security.
A count taken against a stale index is not a clean bill of health. Here it actively read as safe.
Every updater in the fleet
Patching was never one system. The audit found:
- unattended-upgrades on 5 of 10 apt hosts
- four Watchtower instances configured four different ways: one on the maintained fork, opt-in by label, with notifications; three on the archived upstream image, updating everything not opted out, two of them daily with no notifications at all
- a weekly pull-and-recreate timer on the GPU workstation
- Renovate, well tuned, scanning exactly one repo because its bot account only had access to one
- the dead cron
Of the 154 containers the audit counted, 59 (38%) had any automatic update path. One Docker VM with 24 containers had none of any kind.
The fourth Watchtower nearly went uncounted. Its host had no SSH key from my workstation, only pct exec from the hypervisor, so the first pass never saw it. An inventory built from the hosts you can log into is not an inventory.
What changed
All of this landed on 2026-08-25.
Patch first. The DNS primary went from 26 security updates to 0, the media LXC from 25 to 0, and the two stale LXCs to 0 security. The Docker engine was held for those two, because live-restore is off there and a daemon upgrade would stop every container. Neither the DNS primary nor the media LXC runs needrestart, so restarting services was a separate, deliberate step. Restarting keepalived on the DNS primary handed the virtual IP to its peer for about 8 seconds. DNS never stopped answering.
Then three lanes, each with one job:
- OS packages: unattended-upgrades on all 10 apt hosts. Security origins only, never an automatic reboot, Docker engine excluded, and the hypervisor narrower still: Debian security only, nothing from the Proxmox repo. Each host's dry run has to list its real security origin, because a config that parses but matches nothing is the same silent no-op as the cron.
- Rolling containers: all four Watchtowers on the maintained fork, opt-in by label, one notification channel, weekly, staggered across Sunday morning.
- Pinned images: Renovate got access to the other four compose repos. Discovery went from 1 repo to 5 and opened 8 PRs on its first run. Minor, patch and digest bumps automerge after a 24-hour soak. Majors never do, and neither does anything on the DNS, ingress and SSO path or the Docker engine.
The cron line is gone. Its backup is kept, with a note in the runbook that restoring it only restores the illusion.
A report that never asks whether the job ran
The piece I care about most is a weekly report, Sunday at 06:30, after the Watchtower windows. It asks each host what its state is: pending security updates, when apt last succeeded, whether a reboot is queued, whether unattended-upgrades is installed, when each Watchtower last ran, how many repos Renovate scanned.
It never asks whether an update job ran. That question would have answered yes every Saturday for sixteen months. A host it cannot reach overrides every other line and raises the notification priority, because that is the host most likely to be broken.
I got its first measurement wrong too. Reading index freshness from the InRelease file's mtime looked reasonable, but apt gets 304 Not Modified on a stable release and leaves that file alone. The first version called two fully current hosts 125 days stale. It now reads apt's update-success stamp, and every row prints the index age right next to the pending count.
Where the pass left it
When the pass finished, 10 of 10 apt hosts had unattended-upgrades and 0 security updates were pending, up from 5 of 10 covered. The GPU workstation is the asterisk: its sudo needs a password, so my config could not be applied non-interactively and it still runs the stock one. It was at 0 security pending, so it is a consistency gap rather than an exposure.
The same day, the auto-deploy script from this pass deployed a backup over production, which is an earlier post. The incident record ties them together: this work began with a cron that ran every week and silently did nothing, and the deploy script failed the mirror image: it ran and confidently did the wrong thing. Both reported success.
Written by
Adrian Romo
Senior Backend Engineer: Python backends, AWS, enterprise integrations, realtime voice systems, and AI infrastructure.
Related
Keep reading
Four Hours of CPU Nobody Asked For
In October this site was suspended on Vercel's free tier and its Neon database ran out of compute. Traffic was not the cause. Pages regenerating on timers were, and removing the timers took daily CPU from minutes to seconds.
The Tool Nobody Called
I gave my homelab's agents one tool for grounded answers. It served 1 of 69 lookups, and my voice assistant called it in 0 of 32 turns. The nudges meant to fix that had been going to a debug log.
Instruments That Could Not Fail
A routing differential came back byte-identical against a router I had broken on purpose. It was one of several measurements in one project that reported a confident number about nothing.
Keep going
Where to next?
Browse more technical writing, see the engineering case studies, or reach out directly.