rented enroll-copy: WHY the target stopped answering at 714/723 paths is still unknown — answerable only by the next recurrence #712

Closed
opened 2026-08-23 19:24:05 +00:00 by matou-build-agent · 2 comments

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-copy ceiling on drive 20260823T170734Z was a nix copy that could not fail: sshNGStore (internal/clan/store_count.go) passed no ServerAlive* in NIX_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:

  • DigitalOcean's action log: droplet 594590436 created 17:08:31Z, destroyed 18:40:37Z by 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.
  • DO's hypervisor-side bandwidth series (the one channel that outlives the destroy) dates the stall — 14.5 Mbps inbound 17:14–17:20 while the target substituted stock paths from cache.nixos.org, ~2 Mbps 17:22–17:34 as the unsigned custom paths pushed from the drive host, taper to 0.8, floor from 17:40 on. It says WHEN traffic stopped. It cannot say whether the box was alive: a live idle droplet measured the same order at the floor (0.0002–0.0009 Mbps vs the stalled box's 0.0001–0.0003).

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 at enroll-copy. It will now carry what this one lacked:

  1. a named ssh error at a known moment (~5 min after the peer goes quiet) instead of a 90-minute ceiling, with the path it was on;
  2. logs/droplet-do-forensics.txt, harvested by oc_droplet_do_forensics before 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=1 and take the DO console before anything reaps it (the same live-forensics move GOTCHAS #62/#66 needed).

Do not widen the enroll-copy ceiling in response to this (GOTCHAS #62's standing rule): this drive proved a wider ceiling buys only more silence.

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-copy` ceiling on drive `20260823T170734Z` was a `nix copy` that could not fail: `sshNGStore` (`internal/clan/store_count.go`) passed no `ServerAlive*` in `NIX_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: - DigitalOcean's action log: droplet `594590436` created `17:08:31Z`, **destroyed `18:40:37Z` by 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. - DO's hypervisor-side bandwidth series (the one channel that outlives the destroy) dates the stall — 14.5 Mbps inbound 17:14–17:20 while the target substituted stock paths from cache.nixos.org, ~2 Mbps 17:22–17:34 as the unsigned custom paths pushed from the drive host, taper to 0.8, floor from 17:40 on. It says WHEN traffic stopped. It cannot say whether the box was alive: a live idle droplet measured the same order at the floor (0.0002–0.0009 Mbps vs the stalled box's 0.0001–0.0003). 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 at `enroll-copy`. It will now carry what this one lacked: 1. a named ssh error at a known moment (~5 min after the peer goes quiet) instead of a 90-minute ceiling, with the path it was on; 2. `logs/droplet-do-forensics.txt`, harvested by `oc_droplet_do_forensics` **before** 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=1` and take the DO console before anything reaps it (the same live-forensics move GOTCHAS #62/#66 needed). Do not widen the `enroll-copy` ceiling in response to this (GOTCHAS #62's standing rule): this drive proved a wider ceiling buys only more silence.
Author
Member

New 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 own s-2vcpu-4gb/syd1 preset, driving the byte-for-byte sshNGStore invocation copy() 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.org in 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:

…-etc-fstab · …-issue · …-etc · …-sops-install-secrets-0.0.1 · …-nixos-system-gateway-26.11…

sops-install-secrets-0.0.1 is the exact path drive 20260823T213536Z froze 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 --stdio exchange as it finishes — which is what logs/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 -v against a droplet rented from a drive's gateway snapshot.

Ruled by agent under ADR 0174 — veto anytime. Evidence: commit 04ed31ae, GOTCHAS #72.

## New 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 own `s-2vcpu-4gb`/syd1 preset, driving the byte-for-byte `sshNGStore` invocation `copy()` 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.org` in 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: ``` …-etc-fstab · …-issue · …-etc · …-sops-install-secrets-0.0.1 · …-nixos-system-gateway-26.11… ``` `sops-install-secrets-0.0.1` is the exact path drive `20260823T213536Z` froze 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 --stdio` exchange as it finishes — which is what `logs/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 -v` against a droplet rented from a drive's gateway snapshot. Ruled by agent under ADR 0174 — veto anytime. Evidence: commit `04ed31ae`, GOTCHAS #72.
Owner

Closed 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.

Closed 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.
ben closed this issue 2026-10-21 20:48:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#712
No description provided.