standing: gateway deploy red — DNS-01 delegation absent, both TLS doors never answer #904

Closed
opened 2026-08-27 16:06:11 +00:00 by matou-build-agent · 1 comment

The failure

artifacts/verdict.json — "verdict": "red", "firstRedLeg": "standing", {"total": 17, "green": 15, "red": 2, "skip": 0}. The two reds in artifacts/legs.json carry the same error, and standing is the wrapper: the leg that actually burned is activation ("ms": 648090).

{ "leg": "activation", "status": "red", "ms": 648090,
  "error": "the gateway deploy failed — The gateway deploy failed. [There is no old
             operating system to roll back to — this server was rented fresh …]" }

This is not the KNOWN frontier. legs.json records "skip": 0 — it names no out-of-scope leg at all — and pairing did flip: {"leg": "pair", "status": "green", "ms": 96}, corroborated by logs/founding-state.log:817 — "paired — the community name was aimed at the server before install, so the public reachability check is skipped; the gateway deploy begins". The own-VPS carrier issue is not what killed this drive.

The deploy got all the way to the last door. logs/founding-state.log:61-96 — every step done except one:

{ "id": "public-entry", "label": "Public entry — secure connections live", "status": "failed" }

The evidence

1. Neither door ever answered — and neither ever came close. logs/founding-state.log:143–615, 119 logged probes, all identical in shape:

"[id.rehearsal-c.idss.nz rehearsal-c.idss.nz] not answering yet (probe 119/120) — re-probing in 5s (Caddy still gated behind acme-dns registration / issuance, #499, #524)"

I checked this myself: grep -c for the two-name pending set returns 119, and grepping for any not answering yet line without both names returns nothing. The pending set never shrank by a single name across the whole ~600 s budget. That rules out the app's own stated theory.

2. The app's fault text blames a budget, and offers a retry. logs/founding-state.log:633-637:

"kind": "unknown",
"headline": "The gateway deploy failed.",
"detail": "https://id.rehearsal-c.idss.nz did not answer over TLS within the first-boot
           cold-start budget — acme-dns registration and DNS-01 issuance gate Caddy's
           :443 listener, and the apex is a SEPARATE order that can lag the wildcard's
           (GOTCHAS #15, ADR 0014, #524); resume the deploy to re-probe once it settles"

The apex-lags-wildcard story requires one name to answer before the other. Neither did. kind is literally "unknown" — the app is guessing, and the guess is wrong.

3. The box was alive the whole time; only the door was shut. logs/gateway-do-forensics.txt — droplet 595628182 / idss-gateway-rehearsal-c-fe92 status: active, one create action and nothing else (no DO-side power_cycle/resize), 0% packet loss, and tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did.

What is absent

  • logs/droplet-journal.txt does not exist. This drive writes logs/device-journal.txt (the clan-lab device box) and logs/gateway-journal.txt instead.

  • The gateway journal is empty of gateway. All four gateway captures are the same two lines — logs/gateway-journal.txt, -units.txt, -stall.txt, -caddy.txt:

    root@168.144.172.20: Permission denied (publickey,keyboard-interactive).
    note: gateway evidence gather failed (gateway unreachable?)

    Against tcp/22: a FRESH connect succeeded in the same run's forensics, "unreachable?" is a misread: the harvest dialled root@<ip> with no identity, so the rented gateway — which trusts only the app's rent-operator key — refused it. The drive kept zero evidence off the one box that failed. (logs/healer-claude.out reports this harness hole fixed at commit 8f5ae592; that fix is not in this run dir's own logs.)

  • artifacts/journey.json is {"rows": null, "fault": null} — the device-add journey never reached its founding rows, as expected when standing reds.

  • logs/broker-journal.txt — dev@100.98.48.68: Permission denied (publickey); off the admin mesh from this executor, absent by design (ADR 0208, #681). This matters: the broker is the prime suspect and its journal is exactly what is missing.

  • No live-box section was appended to this diagnosis. I was given no access line, and this session's sandbox refused both an authoritative dig against the zone and any read outside the run directory, so I could not independently re-verify the DNS state or the repo claims below. Everything in the next section comes from logs/healer-claude.out in this run dir — a prior agent's live harvest, reported as such, not confirmed by me.

Suspected layer — infra (the live broker), with a product tail

Per logs/healer-claude.out, harvested live off the still-standing gateway with the rent-operator key:

  • acme-dns came up clean and wrote its per-boot fulldomain 07feca20-5f4c-4c51-a570-24c0f7fc4c70.acme.rehearsal-c.idss.nz at 14:58:36.388Z; the control plane re-pointed 1.6 s later (14:58:37.991Z, address heartbeat: … community record re-pointed ip=168.144.172.20) — so the challenge value existed and was carried.
  • The zone never got the delegation. Authoritative dig @andy.ns.cloudflare.com: _acme-challenge.rehearsal-c.idss.nz CNAME rehearsal-c.idss.nz. — pointing at the apex, not the fulldomain; acme.rehearsal-c.idss.nz NS NODATA; no glue A. Only the two challenge-independent records of the five-record set are live, and the challenge CNAME that is live names the wrong target.
  • acme-dns-gate at 15:03:40 said so out loud: "_acme-challenge.rehearsal-c.idss.nz never resolved to 07feca20-… on all of [1.1.1.1 8.8.8.8] within budget — releasing Caddy anyway (fail-open)".
  • Caddy then failed as it must: 7 × tls.obtain … timed out waiting for record to fully propagate, for both *.rehearsal-c.idss.nz and rehearsal-c.idss.nz, still retrying (attempt: 7, elapsed: 2651s) long after the drive gave up. A larger door budget cannot fix this — it would only burn more wall-clock, which is exactly what the app's "resume the deploy" advice would do.

That is the dead end GOTCHAS #28 was opened for, whose own deploy gate reads: the LIVE broker runs from /usr/local/bin/idss-broker — a repo landing does NOT change it; the broker must be REBUILT AND REDEPLOYED before any drive can green. A second fault on the same host points the same way: /v1/gateways/renew returned 502 on all 11 passes, 14:58:39Z → 15:53:40Z, with DigitalOcean refused: Forbidden … You are not authorized to perform this operation — a stale/under-scoped credential on the broker host. The rented lease is therefore never renewed.

What plugging it needs

  1. On the broker host (dev@100.98.48.68, ourcloud-broker.service, off-mesh from this executor): identify which build /usr/local/bin/idss-broker is, and read its journal for 14:58:37Z — whether the point request arrived with AcmeChallenge non-empty is the one check that splits stale build from challenge dropped in transit. Rebuild and redeploy at the #508 five-record PutRecords if stale.
  2. Overwrite, don't skip. _acme-challenge.rehearsal-c is a live wrong-target CNAME, not a missing record — whatever writes the set must replace it.
  3. Repair the DO token's authorization for the rental expiry-tag move (/v1/gateways/renew → 403).
  4. Re-check the zone before any further device drive: the five-record set live, _acme-challenge.<slug> naming the gateway's per-boot acme-dns fulldomain.
  5. In-repo, smaller, and independently actionable: the deploy-failed detail (founding-state.log:637) tells the operator this is a cold-start budget and to resume the deploy — advice that fails forever against a dead delegation, and it ships "kind": "unknown" while acme-dns-gate already knew the truth at 15:03:40. Feed the gate's fail-open verdict into the deploy failure so the fault names the missing delegation instead of a budget.
  6. Harness: confirm 8f5ae592 (gateway evidence dialled with the rent-operator identity) is on the branch drives run from — otherwise the next red is blind in exactly the same place, and "gateway unreachable?" will again contradict tcp/22: a FRESH connect succeeded in the same run dir.

drive 20260827T144343Z red at standing: the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this server was rented fresh for the community, so nothing of yours was overwritten.]
evidence: /home/swarm/swarm/Matou/idss/test-results/drive-device/20260827T144343Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure `artifacts/verdict.json` — `"verdict": "red"`, `"firstRedLeg": "standing"`, `{"total": 17, "green": 15, "red": 2, "skip": 0}`. The two reds in `artifacts/legs.json` carry the same error, and `standing` is the wrapper: the leg that actually burned is `activation` (`"ms": 648090`). ``` { "leg": "activation", "status": "red", "ms": 648090, "error": "the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this server was rented fresh …]" } ``` **This is not the KNOWN frontier.** `legs.json` records `"skip": 0` — it names no out-of-scope leg at all — and pairing *did* flip: `{"leg": "pair", "status": "green", "ms": 96}`, corroborated by `logs/founding-state.log:817` — *"paired — the community name was aimed at the server before install, so the public reachability check is skipped; the gateway deploy begins"*. The own-VPS carrier issue is not what killed this drive. The deploy got all the way to the last door. `logs/founding-state.log:61-96` — every step `done` except one: ``` { "id": "public-entry", "label": "Public entry — secure connections live", "status": "failed" } ``` ## The evidence **1. Neither door ever answered — and neither ever came close.** `logs/founding-state.log:143`–`615`, 119 logged probes, all identical in shape: > `"[id.rehearsal-c.idss.nz rehearsal-c.idss.nz] not answering yet (probe 119/120) — re-probing in 5s (Caddy still gated behind acme-dns registration / issuance, #499, #524)"` I checked this myself: `grep -c` for the two-name pending set returns **119**, and grepping for any `not answering yet` line *without* both names returns **nothing**. The pending set never shrank by a single name across the whole ~600 s budget. That rules out the app's own stated theory. **2. The app's fault text blames a budget, and offers a retry.** `logs/founding-state.log:633-637`: ``` "kind": "unknown", "headline": "The gateway deploy failed.", "detail": "https://id.rehearsal-c.idss.nz did not answer over TLS within the first-boot cold-start budget — acme-dns registration and DNS-01 issuance gate Caddy's :443 listener, and the apex is a SEPARATE order that can lag the wildcard's (GOTCHAS #15, ADR 0014, #524); resume the deploy to re-probe once it settles" ``` The apex-lags-wildcard story requires one name to answer before the other. Neither did. `kind` is literally `"unknown"` — the app is guessing, and the guess is wrong. **3. The box was alive the whole time; only the door was shut.** `logs/gateway-do-forensics.txt` — droplet `595628182` / `idss-gateway-rehearsal-c-fe92` `status: active`, one `create` action and nothing else (no DO-side power_cycle/resize), `0% packet loss`, and `tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did`. ## What is absent - **`logs/droplet-journal.txt` does not exist.** This drive writes `logs/device-journal.txt` (the clan-lab device box) and `logs/gateway-journal.txt` instead. - **The gateway journal is empty of gateway.** All four gateway captures are the same two lines — `logs/gateway-journal.txt`, `-units.txt`, `-stall.txt`, `-caddy.txt`: > `root@168.144.172.20: Permission denied (publickey,keyboard-interactive).` > `note: gateway evidence gather failed (gateway unreachable?)` Against `tcp/22: a FRESH connect succeeded` in the same run's forensics, "unreachable?" is a misread: the harvest dialled `root@<ip>` with **no identity**, so the rented gateway — which trusts only the app's rent-operator key — refused it. The drive kept **zero** evidence off the one box that failed. (`logs/healer-claude.out` reports this harness hole fixed at commit `8f5ae592`; that fix is not in this run dir's own logs.) - **`artifacts/journey.json` is `{"rows": null, "fault": null}`** — the device-add journey never reached its founding rows, as expected when `standing` reds. - **`logs/broker-journal.txt`** — `dev@100.98.48.68: Permission denied (publickey)`; off the admin mesh from this executor, absent by design (ADR 0208, #681). This matters: the broker is the prime suspect and its journal is exactly what is missing. - **No live-box section was appended to this diagnosis.** I was given no access line, and this session's sandbox refused both an authoritative `dig` against the zone and any read outside the run directory, so I could **not** independently re-verify the DNS state or the repo claims below. Everything in the next section comes from `logs/healer-claude.out` in this run dir — a prior agent's live harvest, reported as such, not confirmed by me. ## Suspected layer — infra (the live broker), with a product tail Per `logs/healer-claude.out`, harvested live off the still-standing gateway with the rent-operator key: - acme-dns came up clean and wrote its per-boot fulldomain `07feca20-5f4c-4c51-a570-24c0f7fc4c70.acme.rehearsal-c.idss.nz` at **14:58:36.388Z**; the control plane re-pointed **1.6 s later** (`14:58:37.991Z`, `address heartbeat: … community record re-pointed ip=168.144.172.20`) — so the challenge value existed and was carried. - The zone never got the delegation. Authoritative `dig @andy.ns.cloudflare.com`: `_acme-challenge.rehearsal-c.idss.nz CNAME rehearsal-c.idss.nz.` — pointing at the **apex**, not the fulldomain; `acme.rehearsal-c.idss.nz NS` **NODATA**; no glue A. Only the two challenge-independent records of the five-record set are live, and the challenge CNAME that *is* live names the wrong target. - `acme-dns-gate` at `15:03:40` said so out loud: *"`_acme-challenge.rehearsal-c.idss.nz` never resolved to `07feca20-…` on all of [1.1.1.1 8.8.8.8] within budget — releasing Caddy anyway (fail-open)"*. - Caddy then failed as it must: 7 × `tls.obtain … timed out waiting for record to fully propagate`, for **both** `*.rehearsal-c.idss.nz` and `rehearsal-c.idss.nz`, still retrying (`attempt: 7`, `elapsed: 2651s`) long after the drive gave up. **A larger door budget cannot fix this** — it would only burn more wall-clock, which is exactly what the app's "resume the deploy" advice would do. That is the dead end **GOTCHAS #28** was opened for, whose own deploy gate reads: *the LIVE broker runs from `/usr/local/bin/idss-broker` — a repo landing does NOT change it; the broker must be REBUILT AND REDEPLOYED before any drive can green.* A second fault on the same host points the same way: `/v1/gateways/renew` returned 502 on **all 11** passes, 14:58:39Z → 15:53:40Z, with `DigitalOcean refused: Forbidden … You are not authorized to perform this operation` — a stale/under-scoped credential on the broker host. The rented lease is therefore never renewed. ## What plugging it needs 1. **On the broker host** (`dev@100.98.48.68`, `ourcloud-broker.service`, off-mesh from this executor): identify which build `/usr/local/bin/idss-broker` is, and read its journal for `14:58:37Z` — whether the point request arrived with `AcmeChallenge` non-empty is the one check that splits *stale build* from *challenge dropped in transit*. Rebuild and redeploy at the #508 five-record `PutRecords` if stale. 2. **Overwrite, don't skip.** `_acme-challenge.rehearsal-c` is a live *wrong-target* CNAME, not a missing record — whatever writes the set must replace it. 3. **Repair the DO token's authorization** for the rental expiry-tag move (`/v1/gateways/renew` → 403). 4. **Re-check the zone** before any further device drive: the five-record set live, `_acme-challenge.<slug>` naming the gateway's per-boot acme-dns fulldomain. 5. **In-repo, smaller, and independently actionable:** the deploy-failed detail (`founding-state.log:637`) tells the operator this is a cold-start budget and to *resume the deploy* — advice that fails forever against a dead delegation, and it ships `"kind": "unknown"` while `acme-dns-gate` already knew the truth at `15:03:40`. Feed the gate's fail-open verdict into the deploy failure so the fault names the missing delegation instead of a budget. 6. **Harness:** confirm `8f5ae592` (gateway evidence dialled with the rent-operator identity) is on the branch drives run from — otherwise the next red is blind in exactly the same place, and "gateway unreachable?" will again contradict `tcp/22: a FRESH connect succeeded` in the same run dir. drive `20260827T144343Z` red at `standing`: `the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this server was rented fresh for the community, so nothing of yours was overwritten.]` evidence: `/home/swarm/swarm/Matou/idss/test-results/drive-device/20260827T144343Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 25304f657c24 -->
Owner

Ruled by agent under ADR 0174 (the watch's hands) — veto anytime: closing as a duplicate of #905, in #905's favour.

Same drive (20260827T144343Z), same verdict (15 green / 2 red / 0 skip), same burned leg (activation, 648 090 ms), same error, same diagnosis (DNS-01 delegation absent → neither TLS door answers). The two tickets differ only in their rehearsal-sig — 25304f657c24 here is the standing wrapper's signature, 4c82deb1e678 on #905 is activation's — because standing wraps the prefix and records the inner leg's failure as its own. One fault, two leg keys, two filings.

#905 is the keeper: it is already agent-working and carries the fuller evidence, including the proof that this is not the known own-VPS frontier (skip: 0, no skip reasons recorded, and pair genuinely flipped green at 96 ms, corroborated by logs/founding-state.log:817).

Confirmed live from the watch while closing this: dig NS acme.rehearsal-c.idss.nz against the authoritative nameserver returns empty — the delegation really is absent, not merely unobserved. (An NS query is the honest probe for this zone: *.idss.nz has a wildcard A record, so any name resolves and an A-record test proves nothing — see #887 for the full trap.) Gateway 168.144.172.20 (droplet 595628182, rented 14:45) is still standing if anyone wants to read acme-dns-register and Caddy on the box directly.

This is the third duplicate pair today — #885/#886, #898/#899's overlap, and now #904/#905. Every one has the same cause: a red inside a wrapped leg gets filed once per leg key. Worth a reporter fix so it dedupes on the inner leg rather than the wrapper; filed as a note here rather than a ticket while the drive is mid-flight.

#854 is now blocked on #905 alone.

**Ruled by agent under ADR 0174 (the watch's hands) — veto anytime: closing as a duplicate of #905, in #905's favour.** Same drive (`20260827T144343Z`), same verdict (`15 green / 2 red / 0 skip`), same burned leg (`activation`, 648 090 ms), same error, same diagnosis (DNS-01 delegation absent → neither TLS door answers). The two tickets differ only in their `rehearsal-sig` — `25304f657c24` here is the `standing` wrapper's signature, `4c82deb1e678` on #905 is `activation`'s — because `standing` wraps the prefix and records the inner leg's failure as its own. One fault, two leg keys, two filings. #905 is the keeper: it is already `agent-working` and carries the fuller evidence, including the proof that **this is not the known own-VPS frontier** (`skip: 0`, no skip reasons recorded, and `pair` genuinely flipped green at 96 ms, corroborated by `logs/founding-state.log:817`). Confirmed live from the watch while closing this: `dig NS acme.rehearsal-c.idss.nz` against the authoritative nameserver returns **empty** — the delegation really is absent, not merely unobserved. (An NS query is the honest probe for this zone: `*.idss.nz` has a wildcard **A** record, so any name resolves and an A-record test proves nothing — see #887 for the full trap.) Gateway `168.144.172.20` (droplet `595628182`, rented 14:45) is still standing if anyone wants to read `acme-dns-register` and Caddy on the box directly. **This is the third duplicate pair today** — #885/#886, #898/#899's overlap, and now #904/#905. Every one has the same cause: a red inside a wrapped leg gets filed once per leg key. Worth a reporter fix so it dedupes on the inner leg rather than the wrapper; filed as a note here rather than a ticket while the drive is mid-flight. #854 is now blocked on #905 alone.
ben closed this issue 2026-08-27 16:14:13 +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#904
No description provided.