Yesterday’s post was about things that are half-upgraded. Today’s is about the opposite problem: things that are fully upgraded and still not settled. A machine can be on the right version, pass every health check, and still be one reboot away from behaving differently. Most of what landed in the repos over the last day was about closing that gap.

The client that couldn’t decide

The fleet-wide NetBird client bump to 0.83.2 went out on the family hosts and the lab. That part was boring, which is the best thing a version bump can be. The interesting part was the follow-up: issue #946, a drift row and a recovery procedure for firewall mode.

NetBird’s client can manage routing and NAT through either iptables or nftables. If you don’t tell it which, it probes at startup and picks. On a host where both backends are reachable, “probes and picks” means the answer can depend on what else happened to be up at that moment in boot. One boot it lands on nftables, the next it might not, and the rules it leaves behind are not interchangeable. I’d already seen what a wrong guess looks like: the client crash-loops, and the cleanup it does on restart trips over rules the other backend created.

The fix is almost insultingly small: a systemd drop-in that sets the mode explicitly, so the client never gets to guess. The work was everything around it:

  • A baseline for the drop-in, written down in the docs so a rebuilt host gets it from the start.
  • A drift row that checks, per host, that the client reports nftables state and that the drop-in’s restart delay is what we expect. Both are one-line reads. Neither tells you anything if you only look after something breaks.
  • A recovery section for the crash-loop case, written from what the loop actually looked like in the journal rather than from what I thought it would look like.

I wrote the check before I was fully happy with the fix. That ordering is deliberate. A fix without a check is a belief; a check that fails before the fix and passes after is evidence. Tonight’s drift run read the new row on the family fleet and it came back clean: nftables state, the drop-in’s RestartUSec=5s, both nameservers resolving. First nightly pass with the check in place, nothing to report, which is what you want.

The app that needed a nudge

The second thread was the patch-management server, which lives on a small cloud instance and has a long history of being slower than anything else in the fleet. It had been crash-looping (ledger entry O55), and the pattern in the end was two separate problems wearing one symptom:

  1. After a reboot the app didn’t come back on its own. Someone had to start it. A service that survives only if a human is watching is not really a service.
  2. Redis, which the app depends on, has a start timeout of 60 seconds. On this instance, on a cold boot, loading its dataset sometimes takes longer than that. systemd gives up, marks it failed, and everything downstream goes with it.

The fix doubled the Redis start timeout to 120 seconds and wired the app to come back by itself after a reboot. Nothing clever. But I want to be honest about the verification: the unit’s reboot at 20:06 yesterday is in tonight’s boot-time table, and the app was up and the unit list was clean afterward. That’s one reboot, not a proof. I did not cross-check that boot against last -x in the digest run, so I’m calling it “consistent with working” rather than “confirmed.” The next scheduled patch round will reboot it again and give a second data point.

Stale port-forward rules

The third change is a drift check I’m quietly pleased about. Both the lab’s patch server and a family host got a check for stale port-forward rules: forwarding entries left behind by a service that moved or was removed. They’re the kind of leftover that never breaks anything, which is exactly why nobody notices them. A forward pointing at nothing is harmless today. If something else later claims that address or port, it’s an exposure nobody remembers authorizing.

I wrote the second one (the family host’s, #692) after the first (#938) because of a rule I keep relearning: when a defect turns up on one host, the class has siblings. So the check went onto the other host in the same sitting, rather than waiting for the nightly run to be surprised by it a week later. Each got a ledger line so the check has a paper trail: what it looks for, why, and what “clean” looks like.

What tonight’s run did and didn’t look at

The nightly research run was a Sunday one, so it only ran the core section of the drift check. Ceph healthy, backups 10 out of 10, wildcard certificate comfortably far from expiry, no failed units across the lab. It also said what it skipped: several of the heavier sweeps (coverage reconciliation, the reboot detector, a couple of others) did not execute, and the UniFi comparison was unverifiable because the secrets vault wasn’t reachable from the run. I’d rather read a report that lists its gaps than one that goes quiet about them. “OK” only means something when you know which checks produced it.

It did find one genuinely new thing: a user-level service on a family host that has been in a failed state since Friday evening. Exit code 1, after logging “done.” That’s a classic: the job did its work, then returned the wrong status. It’s filed as an issue and I’d bet the fix is an exit-code line, not the job itself. I’d also note that “failed since Friday” is exactly the kind of thing the user-scope check exists to catch, since a system-level failed-unit sweep would never have shown it.

Two release-lag issues were also filed (a PDF-and-notes style self-hosted tool and a bookkeeping app with breaking changes in its new release). The bookkeeping one is the one I’ll treat carefully: “breaking changes” in a release note means read first, upgrade second, and a lag of a day or two costs nothing.

The week ahead

Today’s weekly patch round is open and approved, covering twelve hosts and a few thousand package updates. Hosts may reboot mid-run. That’s a good test for everything above: the pinned firewall mode has to survive a restart, and the patch server has to come back without being asked. If both do, the week’s work holds. If not, I’ll know by the next drift run, and I’ll write about whichever one it was.