rehearsal drive red at agent-install #598

Closed
opened 2026-08-19 21:07:11 +00:00 by matou-build-agent · 2 comments

(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out)

drive 20260819T210458Z red at agent-install: ourcloud-agent is not active after install: systemctl is-active reported "activating" (Warning: Permanently added 'N.N.N.N' (EDN) to the list of known hosts.)
evidence: test-results/…/20260819T210458Z/ on matou-workstation (legs.json, droplet-journal.txt, trace)

(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out) drive `20260819T210458Z` red at `agent-install`: `ourcloud-agent is not active after install: systemctl is-active reported "activating" (Warning: Permanently added 'N.N.N.N' (EDN) to the list of known hosts.)` evidence: `test-results/…/20260819T210458Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) <!-- rehearsal-sig: f719667ae384 -->
Author
Member

Diagnosed. This is NOT a new code bug — it's the exact #597 defect
(listen unix /run/ourcloud/agent.sock: bind: no such file or directory,
agent crash-loops past systemd's restart-burst limit) resurfacing through a
stale served artifact, not stale source.

Evidence:

  • logs/droplet-journal.txt:1170 — ourcloud-agent[6520]: ... err="listen unix /run/ourcloud/agent.sock: bind: no such file or directory", five
    restarts in ~1s, then Start request repeated too quickly /
    Failed to start ourcloud-agent.service (journal lines 1162-1206) — the
    systemctl is-active → "activating" the drive reported is this
    crash-loop caught mid-cycle.
  • The fix for this exact bind gap (listenUnixSocket()'s MkdirAll in
    agent/cmd/agent/main.go:193-201) landed in commit 95c428f at
    2026-08-19T21:01:38Z — before this drive ran (21:06:26Z). The
    source is fixed; unit tests (TestListenUnixSocket_CreatesMissingParentDir,
    TestListenUnixSocket_ClearsStaleSocket) still pass.
  • curl -sSI https://get.idss.nz/get?arch=x86_64 (reachable from this
    session) returns x-ourcloud-release: 75dfba9f61f8d9691ce0362e83c9f9e28c2d9f6c
    — commit 75dfba9, dated 2026-08-15T07:45:54-05:00. Confirmed via
    git merge-base --is-ancestor 75dfba9 95c428f: the pinned release
    predates the fix
    (now 4 days / dozens of commits stale — the same
    residual STATUS.md named after #597, not yet reseeded).

Why human

Ben's hands. The fix is to reseed get.idss.nz's artifacts dir
(<dir>/RELEASE + <dir>/agent-x86_64, bootstrap/cmd/bootstrap/main.go's
dirSource) with a build past 95c428f — a two-way door (revertible, and
provable by the next drive's x-ourcloud-release header), but this session
has no door onto the host that serves it. Confirmed live:
https://get.idss.nz (port 443) is reachable from this workstation, but
nc -zv get.idss.nz 22 gets no response inside an 8s timeout — SSH is
network-blocked, not merely slow. #516 filed that host's infra as
"(Ben)" — it carries no deploy tooling in this repo (per STATUS.md's #597
close report) and no HTTP admin/upload endpoint (bootstrap/cmd/bootstrap/main.go
serves reads only). This is the second session in a row (after #597,
drive 20260819T202246Z) to hit this exact unreachable-host wall — it looks
structural (firewalled to Ben's own access), not transient, so I'm routing
straight to ready-for-human rather than leaving it for a same-wall retry.

Proposed default ruling: reseed get.idss.nz's artifacts dir with an
agent binary built from main past 95c428f (git rev-parse HEAD at
build time → RELEASE), no other change needed — the fix already landed
and is proven by the unit tests above. Every rehearsal-183 drive downstream
of the install leg will keep going red on this exact signature until that
pin advances.

Ruled by agent under ADR 0174 — veto anytime.

Diagnosed. This is NOT a new code bug — it's the exact `#597` defect (`listen unix /run/ourcloud/agent.sock: bind: no such file or directory`, agent crash-loops past systemd's restart-burst limit) resurfacing through a **stale served artifact**, not stale source. Evidence: - `logs/droplet-journal.txt:1170` — `ourcloud-agent[6520]: ... err="listen unix /run/ourcloud/agent.sock: bind: no such file or directory"`, five restarts in ~1s, then `Start request repeated too quickly` / `Failed to start ourcloud-agent.service` (journal lines 1162-1206) — the `systemctl is-active` → `"activating"` the drive reported is this crash-loop caught mid-cycle. - The fix for this exact bind gap (`listenUnixSocket()`'s `MkdirAll` in `agent/cmd/agent/main.go:193-201`) landed in commit `95c428f` at `2026-08-19T21:01:38Z` — **before** this drive ran (`21:06:26Z`). The source is fixed; unit tests (`TestListenUnixSocket_CreatesMissingParentDir`, `TestListenUnixSocket_ClearsStaleSocket`) still pass. - `curl -sSI https://get.idss.nz/get?arch=x86_64` (reachable from this session) returns `x-ourcloud-release: 75dfba9f61f8d9691ce0362e83c9f9e28c2d9f6c` — commit `75dfba9`, dated `2026-08-15T07:45:54-05:00`. Confirmed via `git merge-base --is-ancestor 75dfba9 95c428f`: **the pinned release predates the fix** (now 4 days / dozens of commits stale — the same residual STATUS.md named after `#597`, not yet reseeded). ## Why human **Ben's hands.** The fix is to reseed get.idss.nz's artifacts dir (`<dir>/RELEASE` + `<dir>/agent-x86_64`, `bootstrap/cmd/bootstrap/main.go`'s `dirSource`) with a build past `95c428f` — a two-way door (revertible, and provable by the next drive's `x-ourcloud-release` header), but this session has no door onto the host that serves it. Confirmed live: `https://get.idss.nz` (port 443) is reachable from this workstation, but `nc -zv get.idss.nz 22` gets no response inside an 8s timeout — SSH is network-blocked, not merely slow. `#516` filed that host's infra as "(Ben)" — it carries no deploy tooling in this repo (per STATUS.md's `#597` close report) and no HTTP admin/upload endpoint (`bootstrap/cmd/bootstrap/main.go` serves reads only). This is the second session in a row (after `#597`, drive `20260819T202246Z`) to hit this exact unreachable-host wall — it looks structural (firewalled to Ben's own access), not transient, so I'm routing straight to `ready-for-human` rather than leaving it for a same-wall retry. **Proposed default ruling:** reseed get.idss.nz's artifacts dir with an agent binary built from `main` past `95c428f` (`git rev-parse HEAD` at build time → `RELEASE`), no other change needed — the fix already landed and is proven by the unit tests above. Every rehearsal-183 drive downstream of the install leg will keep going red on this exact signature until that pin advances. Ruled by agent under ADR 0174 — veto anytime.
Owner

Reseeded by Ben's session, 2026-08-19 21:41Z — the proposed default ruling, executed.

  • Built agent-x86_64 from a clean git archive of origin/main @ e67d774 (includes 95c428f's socket-bind fix; TestListenUnixSocket_* re-run green on the built tree; CGO_ENABLED=0 GOOS=linux GOARCH=amd64, static ELF).
  • Seeded the mail droplet's /opt/ourcloud-bootstrap/artifacts/ (agent-x86_64 0755 + RELEASE, root-owned via sudo install; dir is root-owned so the dev door alone can't write — consistent with the sessions' unreachable-wall finding, the laptop's Netbird door + sudo was required).
  • Proven live: HEAD https://get.idss.nz/get?arch=x86_64 → HTTP/2 200, x-ourcloud-release: e67d774ce778ad926723e510b1b7739947c75837; sha256 of the served artifact's source file on the droplet matches the local build byte-for-byte (8aaf833e…ebb9b). No service restart needed — dirSource.Agent reads RELEASE + binary per request.

The pin is now 4 days forward and past the fix. Closing; #523 refires on this close — the next drive's install leg is the end-to-end proof.

**Reseeded by Ben's session, 2026-08-19 21:41Z — the proposed default ruling, executed.** - Built `agent-x86_64` from a clean `git archive` of `origin/main` @ `e67d774` (includes `95c428f`'s socket-bind fix; `TestListenUnixSocket_*` re-run green on the built tree; `CGO_ENABLED=0 GOOS=linux GOARCH=amd64`, static ELF). - Seeded the mail droplet's `/opt/ourcloud-bootstrap/artifacts/` (`agent-x86_64` 0755 + `RELEASE`, root-owned via sudo install; dir is root-owned so the dev door alone can't write — consistent with the sessions' unreachable-wall finding, the laptop's Netbird door + sudo was required). - **Proven live:** `HEAD https://get.idss.nz/get?arch=x86_64` → `HTTP/2 200`, `x-ourcloud-release: e67d774ce778ad926723e510b1b7739947c75837`; sha256 of the served artifact's source file on the droplet matches the local build byte-for-byte (`8aaf833e…ebb9b`). No service restart needed — `dirSource.Agent` reads `RELEASE` + binary per request. The pin is now 4 days forward and past the fix. Closing; #523 refires on this close — the next drive's install leg is the end-to-end proof.
ben closed this issue 2026-08-19 21:44:35 +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#598
No description provided.