HydraIssues

Updater installed a TRUNCATED hydraguard on an arm64 Mac head: binary SIGKILLed, mesh down silently for weeks
open bug Project: hydranode Reporter: 15 Oct 2026 11:34

Description

Found on cheeky-cactus-86 (node-8acd8c19), the Mac Mini test head, while bringing it onto the mesh.

Symptom

The head's hydraguard-air tunnel never came up. hydrahead retried every ~5 minutes for as long as the log goes back:

13:14:19 WireGuard tunnel is down, restarting...
13:14:19 WireGuard tunnel restart failed: signal: killed
13:19:19 WireGuard tunnel is down, restarting...
13:19:19 WireGuard tunnel restart failed: signal: killed

signal: killed is SIGKILL. Running the binary by hand gives exit 137 with no stdout and no stderr at all.

Cause

The installed ~/.hydranode/bin/hydraguard was truncated:

bytes
installed on the head 7,684,096
published hydraguard/production/latest/hydraguard-darwin-arm64 11,045,922

About 3.4 MB short, roughly 70% of the real file. codesign -dv reported code object is not signed at all, and codesign -s - -f refused to sign it with main executable failed strict validation, i.e. the Mach-O is malformed rather than merely unsigned.

On Apple Silicon an unsigned or malformed Mach-O cannot execute at all — the kernel SIGKILLs it before any code runs. That is why there is no error output to go on. By contrast the sibling wireguard-go in the same directory was intact and adhoc, linker-signed.

Re-downloading the same URL on the head produced exactly 11,045,922 bytes and a valid signature, and it then ran normally. So the artifact on the release server is fine; the installed copy was corrupted on the way in.

Why this is worse than it looks

  1. Silent. A truncated binary on arm64 produces no diagnostic whatsoever, just SIGKILL. Nothing in the log names the real problem, and the obvious reading of signal: killed is that something external killed it.
  2. The updater is documented to verify a checksum before replacing a binary (hydrarelease/pkg/updater: download, verify checksum, backup, replace, restart). Either that verification did not run for this path, or it passed on a truncated file. Either way it did not catch a 30% short download.
  3. It took the node off the mesh indefinitely. The hub peer for 10.10.100.11 showed latest handshake: 0 and rx/tx 0/0, never once connected. The node still reported status: online to hydracluster the whole time, because hydranode talks to the public API and does not need the mesh. So a head can look healthy in the admin view while being completely unreachable over the mesh, which is the path streaming uses.

Asks

  • Verify the checksum on every binary the updater installs, and refuse to replace on mismatch. A short read must fail loudly, not install.
  • On darwin, validate the installed binary actually executes before declaring the update complete, and roll back to the backup if it does not. codesign -dv plus a trivial --help invocation would have caught this in one step.
  • Treat signal: killed from a freshly updated darwin binary as a corruption signal in the log message, pointing at size and signature, so the next person does not have to find this from first principles.

Separate but related, found alongside

Before the 13:13 update the previous hydraguard binary DID run but was invoked incorrectly, printing usage and exiting 1:

13:12:28 interface utun4 created
Error: UAPI config: UAPI error: errno=-22
  hydraguard tunnel up <config-file> [flags]
13:12:28 WireGuard tunnel restart failed: exit status 1

So there is also a version skew between how hydraheadflatscreen invokes hydraguard tunnel up and what the binary accepts, plus a UAPI error: errno=-22 when configuring the interface. Worth confirming that hydraheadflatscreen v2.2.5 and the current hydraguard agree on that interface.

Also seen on the same host and probably worth its own look: intermittent DNS failure (lookup hydracluster.experiencenet.com: no such host, could not resolve hydraguard.experiencenet.com) and two HTTP 401 invalid token config fetches during the update window, after which the head fell back to a cached config and kept launching the kiosk with its OLD district and venue.

Session Context

Venue
mobile-kit