rented enroll-copy: WHY the target stopped answering at 714/723 paths is still unknown — answerable only by the next recurrence #712
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#712
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split out of #711, which found and fixed what made that red undiagnosable but not what made the target go quiet.
What #711 settled. The 90m
enroll-copyceiling on drive20260823T170734Zwas anix copythat could not fail:sshNGStore(internal/clan/store_count.go) passed noServerAlive*inNIX_SSHOPTS, so ssh waited on a black-holed but still-ESTABLISHED connection for the ~55 minutes between the target going quiet and the ceiling. That is fixed (ServerAliveInterval=30/ServerAliveCountMax=10,TestSSHNGStore_AsksSSHToNoticeADeadPeer) and proven by a controlled A/B off-drive (GOTCHAS #67).What it could NOT settle. Why the target stopped moving bytes at 714 of 723 store paths (98.8%), ~25 minutes into the leg. The evidence for that died with the box:
594590436created17:08:31Z, destroyed18:40:37Zby the drive's own teardown, ~37s after the red — and no power action of any kind in between, so nothing provider-side power-cycled, resized or moved it. Every ssh/ping probe run after that (including the ones #711 was filed on, two hours later) interrogated a droplet that no longer existed.So the two live hypotheses #711 raised — target-side resource exhaustion during substitution, or a syd1 network fault — both remain open, and neither is provable from anything that still exists. Note the counter-datum: the same host copied a gateway toplevel to two freshly rented syd1 droplets ~2h later (#710's A/B) with no stall, so this is not a reliably reproducible failure of the copy path.
Revisit criterion (
deferred). The next rented drive that stalls or reds atenroll-copy. It will now carry what this one lacked:logs/droplet-do-forensics.txt, harvested byoc_droplet_do_forensicsbefore teardown — ICMP, a fresh TCP connect to port 22 (dark at the transport, or just to ssh?), the droplet record, DO's action list, and the bandwidth series.That pair distinguishes the two hypotheses on the spot. If it recurs and 1+2 say the box was alive and merely stopped talking, suspect the transport; if they say it was dark to a fresh connect with no DO action, set
REHEARSAL_KEEP_RED_DROPLET=1and take the DO console before anything reaps it (the same live-forensics move GOTCHAS #62/#66 needed).Do not widen the
enroll-copyceiling in response to this (GOTCHAS #62's standing rule): this drive proved a wider ceiling buys only more silence.enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716New evidence from #717's live measurement — the stall is on the TAIL of the push, not in substitution
#717 measured a cold rented copy twice, on droplets rented fresh from the drive's own gateway image (
idss-gateway-4abdd8e39619) at the broker's owns-2vcpu-4gb/syd1 preset, driving the byte-for-bytesshNGStoreinvocationcopy()runs against a 717-path / 1.75 GB toplevel. Both went green in 41s and 25s. Three things fall out that bear directly on this ticket's open question.1. The healthy copy's shape, timed. Run A: 2s probe · 626 paths substituted on the destination from
cache.nixos.orgin 14s · 83 unsigned community-specific paths pushed from the drive host in 22s. Run B: 2s · 11s · 9s. The rented image's store is a pristine 616 paths (measured on run B's box before the copy), so this genuinely is a cold copy — it is just that--substitute-on-destination(#699) makes the droplet fetch 626 of the 717 itself.2. The stall is not in the substitution half. Both hypotheses this ticket left open — target-side resource exhaustion during substitution, or a syd1 network fault — sit in the half that finished in 11–14s and moved essentially all of the 1.75 GB. Box-side sampling through both copies showed load ≤1.3, ~3.1 GB memory available and 71 G free on
/.3. The stall is on the last handful of KILOBYTE-sized pushed paths. Both runs' push tail ends in the same order:
sops-install-secrets-0.0.1is the exact path drive20260823T213536Zfroze on (#716), 9 paths from the end of its 726 — as this ticket's drive froze at 714 of 723, 9 paths from the end of its own. The paths in that tail are text files:etc-hostname,issue,root-authorized_keys,etc-profile,etc-fstab. Whatever stalls a rented copy stalls it after essentially all the bytes have landed, on the tail of the PUSH half, on paths of a few KB.That rules out bandwidth, substitution and target-side fetch capacity as the cause, and points the next recurrence at the ssh-ng/
nix-daemon --stdioexchange as it finishes — which is whatlogs/droplet-stall.txt(#716/GOTCHAS #69) now captures. The revisit criterion is unchanged; this narrows where to look when it fires.Reproduce the healthy baseline with
IDSS_RENTED_ACTIVATE_COPY_ONLY=1 go test ./internal/clan -run TestRentedActivate_Live -vagainst a droplet rented from a drive's gateway snapshot.Ruled by agent under ADR 0174 — veto anytime. Evidence: commit
04ed31ae, GOTCHAS #72.enroll-copy's ceiling to a measured rented copy — with #716's drain fix the shared 20mdefaultPhaseTimeoutnow CUTS a cold copy instead of hanging on it #717Closed 2026-10-21 (Ben's ruling in the stale sweep): the rented enroll-copy stall has not recurred since August and this ticket's own body says it is answerable only by the next recurrence. Reopen with the evidence if it recurs.