wizard-rent: DigitalOcean droplet-create action errors asynchronously, stranding S4a rent in provision — DigitalOcean refused: Not Found #682

Closed
opened 2026-08-22 19:50:43 +00:00 by matou-build-agent · 3 comments

Failure

journey.rented.spec.ts (s4aRent, tests/e2e/journey.rented.spec.ts:158-181, the assertion at journey.rented.spec.ts:173) times out waiting for [data-status="address"]. The S4a card instead shows a rent-error state with fault-line:

provision — broker: DigitalOcean refused: Not Found: {"id":"not_found","message":"The resource you were accessing could not be found."}

Reproduced identically across 3 consecutive rehearsal drives today (2026-08-22, runs 20260822T181240Z, 20260822T185236Z, 20260822T192646Z — see test-results/drive-rented/<run>/artifacts/journey.rented-.../error-context.md in each). A 4th, earlier run (20260822T175941Z) failed on a different, now-fixed bug (terms-copy regex, commit d607c8f5), so this signature has been consistently red since ~18:12 UTC.

Evidence trail

The error text is the raw, unwrapped *doRefusal.Error() string (broker/internal/broker/provider_do.go:326-328), surfaced through ProvisionError{Stage:"provision"} at broker/internal/broker/rentals.go:199, rendered by internal/founding/access.go:174-179 ("{stage} — {message}"). That shape only occurs on an immediate DO API refusal — not pollActive's timeout path (provider_do.go:272-275), which always prepends "never became reachable in time" / "did not become active", neither of which appears in the captured DOM text.

I cross-referenced DigitalOcean's own /v2/actions log (using the DIGITALOCEAN_ACCESS_TOKEN present on this executor) against each drive's timing. For the 20260822T192646Z run, exactly two droplets were created ~30s apart (the deliberate rehearsal-rentfail honesty leg, then the real rent leg the test asserts on):

errored   create  droplet 594384880  2026-08-22T19:27:03Z
completed destroy droplet 594384880  2026-08-22T19:27:21Z
errored   create  droplet 594384942  2026-08-22T19:27:30Z
completed destroy droplet 594384942  2026-08-22T19:27:59Z

Both create actions show DO's own async provisioning ending in status:"errored" — this is DigitalOcean's platform failing the request after accepting it (200/202 + assigned id), not a bad payload rejected synchronously. GET /v2/droplets/594384942 now permanently 404s ({"id":"not_found",...}) — the exact body text in the fault-line — because DO tore the resource down once its own create action errored.

Ruled out (account/config is healthy)

Direct DO API checks against the live account:

  • Image: LatestImageID (provider_do.go:89-116) correctly resolves the newest idss-gateway-* snapshot (idss-gateway-6a1b0cb9b811, id 242227844), confirmed status:"available", region ["syd1"], min_disk_size:80 exactly matching size s-2vcpu-4gb's disk:80 (boundary, but DO accepts >= normally and this combo is unchanged across all 3 gateway snapshots today).
  • SSH key: ensureSSHKey (provider_do.go:192-224) works — the rent-operator's fingerprint (a0:22:a2:ff:...) is registered on the account, confirming the 422-dedup path functions.
  • Account: droplet_limit:15, only 5 non-rehearsal droplets active; status:"active"; no idss-gateway-* droplets leaked (all cleanly destroyed).
  • DO status page: no unresolved incidents.

Suspected layer

Genuine DigitalOcean-side provisioning failure — most likely an account-level rate/abuse-review threshold tripped by the cumulative droplet-creation velocity from this DO account today (2 gateway-image rebuild builds + repeated rehearsal drives, each creating 1–2 droplets), given the onset lines up with the second gateway-image-rebuild.log advance (17:59:31Z) and every drive since has hit it on both of its creates. This is infra state outside the repo checkout (the DO account itself, not anything in this checkout) — no line in this repo is confirmed defective, and there's no local test that exercises live DO infra to verify a fix.

What plugging it needs

Someone with DO account/ops access needs to check the account's dashboard/support notices for a flagged-activity or manual-review banner on new droplet creates, and possibly throttle/space out how many gateway droplets the rehearsal drives create per hour, or move the drive to a different (verified/business) DO account or team. If DO confirms it's transient, the drive should simply be re-fired once clear.

drive 20260822T192646Z red at wizard-rent: expect(locator).toBeVisible() failed Locator: locator('[data-status="address"]') Expected: visible Timeout: 480000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 480000ms
evidence: test-results/…/20260822T192646Z/ on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)

Why human

Ruled ready-for-human under ADR 0174 — this is a one-way door, not a
two-way one: no line in this repo is defective (confirmed below), so there is
no revertible commit/config change to make, and no local test/drive/probe can
prove a fix because the fault is DigitalOcean account-side state that the API
does not expose. What's needed is Ben's eyes on the DO web dashboard
(account/billing notices, flagged-activity or manual-review banners — none of
which surface via the API token this session holds) plus, if DO confirms an
account-level throttle, an account/spend decision (throttle rehearsal
droplet cadence, or move the drive to a different DO account/team) — both
listed one-way-door categories (personal/account access only Ben holds;
non-routine spend).

Independently re-verified live, 2026-08-22T20:02Z (this session, same
DIGITALOCEAN_ACCESS_TOKEN the ticket's evidence trail used):

  • GET /v2/account: status:"active", status_message:"", droplet_limit:15
    — API-visible account state is clean, which is itself consistent with the
    suspected-layer theory: an abuse/manual-review hold would not necessarily
    show here, only in the web dashboard or an account email.
  • GET /v2/actions (last 20): every create droplet action since
    2026-08-22T18:00:00Z is status:"errored" (6 consecutive, latest
    19:27:30Z, action id 3362399327) — zero successes since the
    17:52:36Z gateway-image-rebuild create. The signature is still live right
    now, not resolved by any auto-recovery.
  • GET /v2/actions/3362399327 (the latest errored create): no error-detail
    field beyond status:"errored" — DO's actions API does not surface a
    reason, confirming the ticket's own conclusion that this can't be root-caused
    further from the API alone.
  • GET /v2/droplets: 5 active droplets, well under the 15 limit; region
    syd1 and size s-2vcpu-4gb both still report available:true in the
    errored action's own region payload — ruling out a capacity/availability
    explanation.

No new droplet-create probe was attempted here: it would add cost without new
diagnostic value — the account-state and action-history evidence above already
confirms the ticket's read is still accurate, and a 7th errored create tells us
nothing a dashboard check wouldn't answer directly.

This ticket was routed ready-for-session because earlier wizard-rent
commits today (#673, #675, #677, #679) each fixed a real, distinct code-side
bug that shared the same symptom (S4a rent stalling) — this signature is the
first of the four where the evidence rules out a code fix entirely. Its
remainder is pure DO-account investigation, which is out of session standing,
so it routes to ready-for-human.

## Failure `journey.rented.spec.ts` (`s4aRent`, `tests/e2e/journey.rented.spec.ts:158-181`, the assertion at `journey.rented.spec.ts:173`) times out waiting for `[data-status="address"]`. The S4a card instead shows a `rent-error` state with fault-line: ``` provision — broker: DigitalOcean refused: Not Found: {"id":"not_found","message":"The resource you were accessing could not be found."} ``` Reproduced identically across 3 consecutive rehearsal drives today (2026-08-22, runs `20260822T181240Z`, `20260822T185236Z`, `20260822T192646Z` — see `test-results/drive-rented/<run>/artifacts/journey.rented-.../error-context.md` in each). A 4th, earlier run (`20260822T175941Z`) failed on a different, now-fixed bug (terms-copy regex, commit `d607c8f5`), so this signature has been consistently red since ~18:12 UTC. ## Evidence trail The error text is the raw, unwrapped `*doRefusal.Error()` string (`broker/internal/broker/provider_do.go:326-328`), surfaced through `ProvisionError{Stage:"provision"}` at `broker/internal/broker/rentals.go:199`, rendered by `internal/founding/access.go:174-179` (`"{stage} — {message}"`). That shape only occurs on an *immediate* DO API refusal — not `pollActive`'s timeout path (`provider_do.go:272-275`), which always prepends "never became reachable in time" / "did not become active", neither of which appears in the captured DOM text. I cross-referenced DigitalOcean's own `/v2/actions` log (using the `DIGITALOCEAN_ACCESS_TOKEN` present on this executor) against each drive's timing. For the `20260822T192646Z` run, exactly two droplets were created ~30s apart (the deliberate `rehearsal-rentfail` honesty leg, then the real rent leg the test asserts on): ``` errored create droplet 594384880 2026-08-22T19:27:03Z completed destroy droplet 594384880 2026-08-22T19:27:21Z errored create droplet 594384942 2026-08-22T19:27:30Z completed destroy droplet 594384942 2026-08-22T19:27:59Z ``` Both `create` actions show DO's own async provisioning ending in `status:"errored"` — this is DigitalOcean's platform failing the request after accepting it (200/202 + assigned id), not a bad payload rejected synchronously. `GET /v2/droplets/594384942` now permanently 404s (`{"id":"not_found",...}`) — the exact body text in the fault-line — because DO tore the resource down once its own create action errored. ## Ruled out (account/config is healthy) Direct DO API checks against the live account: - **Image**: `LatestImageID` (`provider_do.go:89-116`) correctly resolves the newest `idss-gateway-*` snapshot (`idss-gateway-6a1b0cb9b811`, id `242227844`), confirmed `status:"available"`, region `["syd1"]`, `min_disk_size:80` exactly matching size `s-2vcpu-4gb`'s `disk:80` (boundary, but DO accepts `>=` normally and this combo is unchanged across all 3 gateway snapshots today). - **SSH key**: `ensureSSHKey` (`provider_do.go:192-224`) works — the rent-operator's fingerprint (`a0:22:a2:ff:...`) is registered on the account, confirming the 422-dedup path functions. - **Account**: `droplet_limit:15`, only 5 non-rehearsal droplets active; `status:"active"`; no `idss-gateway-*` droplets leaked (all cleanly destroyed). - **DO status page**: no unresolved incidents. ## Suspected layer Genuine DigitalOcean-side provisioning failure — most likely an account-level rate/abuse-review threshold tripped by the cumulative droplet-creation velocity from this DO account today (2 gateway-image rebuild builds + repeated rehearsal drives, each creating 1–2 droplets), given the onset lines up with the second `gateway-image-rebuild.log` advance (`17:59:31Z`) and every drive since has hit it on **both** of its creates. This is infra state outside the repo checkout (the DO account itself, not anything in this checkout) — no line in this repo is confirmed defective, and there's no local test that exercises live DO infra to verify a fix. ## What plugging it needs Someone with DO account/ops access needs to check the account's dashboard/support notices for a flagged-activity or manual-review banner on new droplet creates, and possibly throttle/space out how many gateway droplets the rehearsal drives create per hour, or move the drive to a different (verified/business) DO account or team. If DO confirms it's transient, the drive should simply be re-fired once clear. drive `20260822T192646Z` red at `wizard-rent`: `expect(locator).toBeVisible() failed Locator: locator('[data-status="address"]') Expected: visible Timeout: 480000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 480000ms ` evidence: `test-results/…/20260822T192646Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596) ## Why human Ruled **ready-for-human** under ADR 0174 — this is a one-way door, not a two-way one: no line in this repo is defective (confirmed below), so there is no revertible commit/config change to make, and no local test/drive/probe can prove a fix because the fault is DigitalOcean account-side state that the API does not expose. What's needed is **Ben's eyes** on the DO web dashboard (account/billing notices, flagged-activity or manual-review banners — none of which surface via the API token this session holds) plus, if DO confirms an account-level throttle, an **account/spend decision** (throttle rehearsal droplet cadence, or move the drive to a different DO account/team) — both listed one-way-door categories (personal/account access only Ben holds; non-routine spend). **Independently re-verified live, 2026-08-22T20:02Z** (this session, same `DIGITALOCEAN_ACCESS_TOKEN` the ticket's evidence trail used): - `GET /v2/account`: `status:"active"`, `status_message:""`, `droplet_limit:15` — API-visible account state is clean, which is itself consistent with the suspected-layer theory: an abuse/manual-review hold would not necessarily show here, only in the web dashboard or an account email. - `GET /v2/actions` (last 20): every `create droplet` action since `2026-08-22T18:00:00Z` is `status:"errored"` (6 consecutive, latest `19:27:30Z`, action id `3362399327`) — zero successes since the `17:52:36Z` gateway-image-rebuild create. The signature is still live right now, not resolved by any auto-recovery. - `GET /v2/actions/3362399327` (the latest errored create): no error-detail field beyond `status:"errored"` — DO's actions API does not surface a reason, confirming the ticket's own conclusion that this can't be root-caused further from the API alone. - `GET /v2/droplets`: 5 active droplets, well under the 15 limit; region `syd1` and size `s-2vcpu-4gb` both still report `available:true` in the errored action's own region payload — ruling out a capacity/availability explanation. No new droplet-create probe was attempted here: it would add cost without new diagnostic value — the account-state and action-history evidence above already confirms the ticket's read is still accurate, and a 7th errored create tells us nothing a dashboard check wouldn't answer directly. This ticket was routed `ready-for-session` because earlier wizard-rent commits today (#673, #675, #677, #679) each fixed a real, distinct code-side bug that shared the same symptom (S4a rent stalling) — this signature is the first of the four where the evidence rules out a code fix entirely. Its remainder is pure DO-account investigation, which is out of session standing, so it routes to `ready-for-human`. <!-- rehearsal-sig: 3b0b824f61b8 -->
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Ruling: relabelled ready-for-session → ready-for-human. This is a
one-way door (## Why human added to the issue body), not a two-way one —
independently re-verified the DO account/action state live just now
(2026-08-22T20:02Z, same DIGITALOCEAN_ACCESS_TOKEN) and it matches the
ticket's evidence trail exactly: GET /v2/account is API-clean (status: "active", no status_message), but GET /v2/actions shows 6 consecutive
create droplet actions erroring since 18:00:00Z with zero successes since
the 17:52:36Z gateway-image-rebuild create, and the errored action detail
carries no reason field beyond status:"errored". Droplet count (5/15),
region syd1, and size s-2vcpu-4gb are all healthy/available, ruling out
capacity. No repo line is defective, no commit/config change is revertible
here, and no local test/drive/probe can prove a fix — the fault is DO
account-side state (suspected abuse/rate review) only visible from the DO web
dashboard or support, which needs Ben's eyes and possibly a spend/account
decision.

Did not fire an 8th droplet-create probe — the account/action-history
evidence already confirms the signature is still live; another errored create
adds cost with no new diagnostic value.

No commit lands from this session (nothing in the repo needed changing), so
STATUS.md is untouched.

Ruled by agent under ADR 0174 — veto anytime. **Ruling:** relabelled `ready-for-session` → `ready-for-human`. This is a one-way door (`## Why human` added to the issue body), not a two-way one — independently re-verified the DO account/action state live just now (2026-08-22T20:02Z, same `DIGITALOCEAN_ACCESS_TOKEN`) and it matches the ticket's evidence trail exactly: `GET /v2/account` is API-clean (`status: "active"`, no `status_message`), but `GET /v2/actions` shows 6 consecutive `create droplet` actions erroring since `18:00:00Z` with zero successes since the `17:52:36Z` gateway-image-rebuild create, and the errored action detail carries no reason field beyond `status:"errored"`. Droplet count (5/15), region `syd1`, and size `s-2vcpu-4gb` are all healthy/available, ruling out capacity. No repo line is defective, no commit/config change is revertible here, and no local test/drive/probe can prove a fix — the fault is DO account-side state (suspected abuse/rate review) only visible from the DO web dashboard or support, which needs Ben's eyes and possibly a spend/account decision. Did not fire an 8th droplet-create probe — the account/action-history evidence already confirms the signature is still live; another errored create adds cost with no new diagnostic value. No commit lands from this session (nothing in the repo needed changing), so `STATUS.md` is untouched.
Owner

Phase-4 session — correction to the suspected layer (evidence from the same DO action log, 2026-08-23 02:15Z). The account is not under an abuse/rate hold. Splitting today's create droplet actions by source image:

source image creates result
stock Ubuntu (gateway-image build droplets 594355724 16:20, 594357280 16:34, 594359092 16:47, 594369466 17:52) 4 all completed
idss-gateway-* snapshot (rent/rentfail droplets 594363031 17:09, 594368000 17:39, 594370280 18:00, 594372835/…900 18:13, 594379223/…294 18:53, 594384880/…942 19:27) 8 every one errored

A stock-image create succeeded at 17:52 between failed snapshot creates, and no create from any of the three idss-gateway-* snapshots has ever completed — including the very first at 17:09 (drive 3's "transient 404", #672, was almost certainly this same errored create, not read-after-write lag). So the fault is specific to creating a droplet from our snapshot, i.e. DO's restore/provisioning of a nixos-anywhere-installed disk (hybrid bios_grub + ESP + ext4 root, nix/gateway-image/disko.nix). Note the only other golden snapshot on the account (clan-lab-golden-20260709-0003, 28.8 GiB, min-disk 160) is an Ubuntu snapshot — the "clan-lab build-golden" precedent in ADR 0189 never covered a NixOS/disko disk, so this is an untested assumption failing, not a regression.

Human step that pins it (Ben): create one droplet from idss-gateway-6a1b0cb9b811 (id 242227844, syd1, s-2vcpu-4gb) in the DO web dashboard — the dashboard/activity view shows the failure reason the API hides (status:"errored" only). Delete it after. If the reason is "unsupported image/partition layout" (the likely one), ADR 0189 ruling 2 needs a design amendment — candidates: (a) DO custom image upload (doctl compute image create --image-url of a NixOS qcow2 with services.cloud-init for key injection) instead of a droplet snapshot; (b) broker rents a stock droplet and runs the nixos-anywhere takeover itself (slow, ~8 min, moves heavy lifting into the broker); (c) MBR/BIOS-only single-root disko layout if DO's snapshot restore simply wants root on partition 1. That is a Ben design gate (ADR 0047/0189), so ready-for-human stands — but for a different reason than the body says. Also: #681 (capture the broker log in the drive harness) would not have changed this diagnosis; the DO action log was the decisive source.

**Phase-4 session — correction to the suspected layer (evidence from the same DO action log, 2026-08-23 02:15Z).** The account is *not* under an abuse/rate hold. Splitting today's `create droplet` actions by source image: | source image | creates | result | |---|---|---| | stock Ubuntu (gateway-image **build** droplets `594355724` 16:20, `594357280` 16:34, `594359092` 16:47, `594369466` **17:52**) | 4 | **all completed** | | `idss-gateway-*` **snapshot** (rent/rentfail droplets `594363031` 17:09, `594368000` 17:39, `594370280` 18:00, `594372835`/`…900` 18:13, `594379223`/`…294` 18:53, `594384880`/`…942` 19:27) | 8 | **every one errored** | A stock-image create succeeded at 17:52 *between* failed snapshot creates, and **no create from any of the three `idss-gateway-*` snapshots has ever completed** — including the very first at 17:09 (drive 3's "transient 404", #672, was almost certainly this same errored create, not read-after-write lag). So the fault is specific to creating a droplet **from our snapshot**, i.e. DO's restore/provisioning of a nixos-anywhere-installed disk (hybrid `bios_grub` + ESP + ext4 root, `nix/gateway-image/disko.nix`). Note the only other golden snapshot on the account (`clan-lab-golden-20260709-0003`, 28.8 GiB, min-disk 160) is an **Ubuntu** snapshot — the "clan-lab build-golden" precedent in ADR 0189 never covered a NixOS/disko disk, so this is an untested assumption failing, not a regression. **Human step that pins it (Ben):** create one droplet from `idss-gateway-6a1b0cb9b811` (id `242227844`, `syd1`, `s-2vcpu-4gb`) in the **DO web dashboard** — the dashboard/activity view shows the failure reason the API hides (`status:"errored"` only). Delete it after. If the reason is "unsupported image/partition layout" (the likely one), ADR 0189 ruling 2 needs a design amendment — candidates: (a) DO **custom image** upload (`doctl compute image create --image-url` of a NixOS qcow2 with `services.cloud-init` for key injection) instead of a droplet snapshot; (b) broker rents a stock droplet and runs the nixos-anywhere takeover itself (slow, ~8 min, moves heavy lifting into the broker); (c) MBR/BIOS-only single-root disko layout if DO's snapshot restore simply wants root on partition 1. That is a Ben design gate (ADR 0047/0189), so `ready-for-human` stands — but for a different reason than the body says. Also: #681 (capture the broker log in the drive harness) would not have changed this diagnosis; the DO action log was the decisive source.
Owner

Root-caused, fixed on main, closing (Ben in the loop for the spike).

Cause: DigitalOcean's snapshot provisioning treats GPT partition 1 as the root filesystem; the gateway image carried the takeover numbering (bios_grub=1, ESP=2, root=3), so DO tried to resize a 1 MB grub stub and destroyed every droplet before first boot — 8/8 creates errored, a dashboard create too, no reason exposed. Not an account hold (stock-image creates completed throughout), not a transient 404 (#672's poll retry was fixing a symptom).

Spike: 988c726 renumbers only — root = 1 (priority/explicit start/end), bios_grub = 2, ESP = 3; labels, sizes, filesystems, physical order unchanged. Ben built idss-gateway-988c726b10e2 and created from it in the dashboard: survives, DO grew root to the full 80 G, injected the create's key, idss-agent active (probe 170.64.209.92).

Landed on main (56cf880, merge df8bfec): durable rationale in nix/gateway-image/disko.nix; drift guard gateway_image_disko_test.go now compares partition FACTS (type/size/filesystem/mountpoint), not verbatim lines — the takeover layout (renderDisko) keeps clan-core's numbering, own-VPS/self-hosted untouched (negative-tested: ext4→xfs drift is caught); ADR 0189 amendment 2026-08-23 (ruling 2 stands + partition-1 constraint; custom-image upload / broker-side takeover remain fallbacks); GOTCHAS #57; STATUS lead.

Next: #652 re-fires on elitebook-03. 56cf880 touches internal/, so the #656 gate will call the spike snapshot stale and the executor rebuilds from main (~10 min) before driving — expected, and it re-proves the build loop on the new layout. #681 (capture the broker log) stays open as the nice-to-have it is.

**Root-caused, fixed on main, closing (Ben in the loop for the spike).** **Cause:** DigitalOcean's snapshot provisioning treats **GPT partition 1 as the root filesystem**; the gateway image carried the takeover numbering (`bios_grub`=1, `ESP`=2, `root`=3), so DO tried to resize a 1 MB grub stub and destroyed every droplet before first boot — 8/8 creates errored, a dashboard create too, no reason exposed. Not an account hold (stock-image creates completed throughout), not a transient 404 (#672's poll retry was fixing a symptom). **Spike:** `988c726` renumbers only — root = 1 (`priority`/explicit `start`/`end`), bios_grub = 2, ESP = 3; labels, sizes, filesystems, physical order unchanged. Ben built `idss-gateway-988c726b10e2` and created from it in the dashboard: survives, DO grew root to the full 80 G, injected the create's key, `idss-agent` **active** (probe `170.64.209.92`). **Landed on main** (`56cf880`, merge `df8bfec`): durable rationale in `nix/gateway-image/disko.nix`; drift guard `gateway_image_disko_test.go` now compares partition FACTS (type/size/filesystem/mountpoint), not verbatim lines — the takeover layout (`renderDisko`) keeps clan-core's numbering, own-VPS/self-hosted untouched (negative-tested: ext4→xfs drift is caught); ADR 0189 amendment 2026-08-23 (ruling 2 stands + partition-1 constraint; custom-image upload / broker-side takeover remain fallbacks); GOTCHAS #57; STATUS lead. **Next:** #652 re-fires on elitebook-03. `56cf880` touches `internal/`, so the #656 gate will call the spike snapshot stale and the executor rebuilds from main (~10 min) before driving — expected, and it re-proves the build loop on the new layout. #681 (capture the broker log) stays open as the nice-to-have it is.
ben closed this issue 2026-08-23 02:48:09 +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.

Reference
Matou/idss#682
No description provided.