Runner host bens-mac-04 cannot resolve git.matou.nz — every job landing on it reds at stage one (triage, resume, swarm leg) #191

Open
opened 2026-10-09 23:05:00 +00:00 by matou-build-agent · 4 comments

Filed by the swarm healer (watchdog mode, signature 50dc0fb56753, evidence /tmp/matou-heal-Matou-dev-factory.qN0le1).

Symptom

triage and resume are in a failure streak and the swarm (bens-mac-04) matrix leg is always-red. Each failing job dies ~9s in with the SAME line:

fatal: unable to access 'https://git.matou.nz/Matou/dev-factory.git/': Could not resolve host: git.matou.nz
⚙️ [runner]: RUN exit status 128

Root cause

The fault is not in the harness or the factory source. It is DNS on one runner host. Runner-id correlation across the last 7 runs of each workflow is exact:

workflow run runner result
triage 19915, 19910, 19904, 19893, 19884 18b49d22… failure (Could not resolve host)
triage 19899 5078e9af… success
triage 19886 1f281146… success
resume 19911 18b49d22… failure (same line)
swarm 19917 leg 0 = bens-mac-04 18b49d22… failure (same line)
swarm 19917 leg 1 = elitebook-03 5078e9af… success
swarm 19917 leg 2 = matou-workstation 1f281146… success

Runner 18b49d22-6243-41d9-881d-2823760575c7 is the bens-mac-04 runner (its swarm leg logs 🧪 Matrix: map[host:bens-mac-04]). Its resolver cannot see git.matou.nz; the other two hosts resolve and fetch normally in the same second. git.matou.nz resolves fine from this host (143.198.134.168), and the healer's own API probe was healthy (api_seconds=0).

Persistent, not transient: every bens-mac-04 leg in the 50-run window failed (19887 → 19917, ~2.5h), and the healer ledger shows watchdog incidents keyed on swarm (bens-mac-04) at 12:17 and 19:12 today as well.

Blast radius

triage and resume use runs-on: swarm, so they land on bens-mac-04 roughly by turn — 5 of the last 7 triage ticks were lost. Each lost tick is a triage pass and a parked-ask re-arm that never ran. The swarm leg loses a third of fleet claim capacity.

The per-host healer ledger masks it on Mattermost: the hook-mode heal that runs on bens-mac-04 after each red finds its own signature (e635093ed980 for triage, 065554cd2d3f for swarm) already escalated and silenced — posting nothing, so the only escalation path that actually speaks is this watchdog on another host.

Why the healer did not repair it

  • The resolver config lives on bens-mac-04, a host the healer has no access to; touching host packages / the runner service is forbidden by the charter.
  • The one lever in reach — dropping bens-mac-04 from swarm.yml's matrix — would mask only 1 of the 3 symptoms (runs-on: swarm would still route triage/resume there), it is a fleet-capacity decision for a human, and swarm.yml:57 states a host leaves the list by re-rendering, never by hand.

What a human should do

  1. On bens-mac-04: fix name resolution for git.matou.nz (resolver/DNS server, VPN or split-horizon DNS, /etc/hosts, or sleeping-laptop network state). getent hosts git.matou.nz on that box is the one-line check.
  2. Until then, consider taking its runner out of the swarm label pool so triage/resume stop drawing a dead host — that stops the lost ticks at the cost of one host's capacity.
  3. Worth a follow-up either way: a stage-one transport red should be attributable to its HOST without a human joining runner-ids by hand, and the per-host silenced ledger means a 100%-dead host can stay quiet on Mattermost for hours.
Filed by the swarm healer (watchdog mode, signature `50dc0fb56753`, evidence `/tmp/matou-heal-Matou-dev-factory.qN0le1`). ## Symptom `triage` and `resume` are in a failure streak and the `swarm (bens-mac-04)` matrix leg is always-red. Each failing job dies ~9s in with the SAME line: ``` fatal: unable to access 'https://git.matou.nz/Matou/dev-factory.git/': Could not resolve host: git.matou.nz ⚙️ [runner]: RUN exit status 128 ``` ## Root cause The fault is not in the harness or the factory source. It is **DNS on one runner host**. Runner-id correlation across the last 7 runs of each workflow is exact: | workflow | run | runner | result | |---|---|---|---| | triage | 19915, 19910, 19904, 19893, 19884 | `18b49d22…` | **failure** (Could not resolve host) | | triage | 19899 | `5078e9af…` | success | | triage | 19886 | `1f281146…` | success | | resume | 19911 | `18b49d22…` | **failure** (same line) | | swarm | 19917 leg 0 = `bens-mac-04` | `18b49d22…` | **failure** (same line) | | swarm | 19917 leg 1 = `elitebook-03` | `5078e9af…` | success | | swarm | 19917 leg 2 = `matou-workstation` | `1f281146…` | success | Runner `18b49d22-6243-41d9-881d-2823760575c7` is the `bens-mac-04` runner (its swarm leg logs `🧪 Matrix: map[host:bens-mac-04]`). Its resolver cannot see `git.matou.nz`; the other two hosts resolve and fetch normally in the same second. `git.matou.nz` resolves fine from this host (`143.198.134.168`), and the healer's own API probe was healthy (`api_seconds=0`). Persistent, not transient: every `bens-mac-04` leg in the 50-run window failed (19887 → 19917, ~2.5h), and the healer ledger shows watchdog incidents keyed on `swarm (bens-mac-04)` at 12:17 and 19:12 today as well. ## Blast radius `triage` and `resume` use `runs-on: swarm`, so they land on `bens-mac-04` roughly by turn — 5 of the last 7 triage ticks were lost. Each lost tick is a triage pass and a parked-ask re-arm that never ran. The swarm leg loses a third of fleet claim capacity. The per-host healer ledger masks it on Mattermost: the hook-mode heal that runs on `bens-mac-04` after each red finds its own signature (`e635093ed980` for triage, `065554cd2d3f` for swarm) `already escalated and silenced — posting nothing`, so the only escalation path that actually speaks is this watchdog on another host. ## Why the healer did not repair it - The resolver config lives on `bens-mac-04`, a host the healer has no access to; touching host packages / the runner service is forbidden by the charter. - The one lever in reach — dropping `bens-mac-04` from `swarm.yml`'s matrix — would mask only 1 of the 3 symptoms (`runs-on: swarm` would still route triage/resume there), it is a fleet-capacity decision for a human, and `swarm.yml:57` states a host leaves the list by re-rendering, never by hand. ## What a human should do 1. On `bens-mac-04`: fix name resolution for `git.matou.nz` (resolver/DNS server, VPN or split-horizon DNS, `/etc/hosts`, or sleeping-laptop network state). `getent hosts git.matou.nz` on that box is the one-line check. 2. Until then, consider taking its runner out of the `swarm` label pool so `triage`/`resume` stop drawing a dead host — that stops the lost ticks at the cost of one host's capacity. 3. Worth a follow-up either way: a stage-one transport red should be attributable to its HOST without a human joining runner-ids by hand, and the per-host silenced ledger means a 100%-dead host can stay quiet on Mattermost for hours.
Author
Member

Recurrence + the mechanism, from today's hook-mode heal on this same host (signature 7f647f2d78ed, run 20260, evidence /tmp/matou-heal-Matou-dev-factory.AV3UGa).

It is no longer persistent — but it still flaps

bens-mac-04 legs are now mostly green (runs 20230/20238/20245/20253 all succeeded). Run 20260's leg got past git-setup.sh — it reached stage list ready tasks — then lost the forge for a few tens of seconds. Siblings matou-workstation and elitebook-03, whose legs were created ~70s later, both went green against the same Forgejo. Forgejo itself is healthy (probed 200 in 0.75s from this host, same unchanged token).

Mechanism: all DNS on this host rides the NetBird mesh, with no fallback

$ resolvectl status
Link 2 (wlp3s0)   Current Scopes: none      <-- physical link carries NO DNS
Link 9 (wt0)      Current Scopes: DNS
                  Current DNS Server: 100.98.33.81
                  DNS Domain: netbird.selfhosted ~98.100.in-addr.arpa
$ netbird status
Nameservers: 0/0 Available
Peers count: 8/19 Connected

wt0 (NetBird WireGuard) is the only DNS-carrying link, so resolution of git.matou.nz — a public name, 143.198.134.168 — depends entirely on the mesh resolver at 100.98.33.81. Any NetBird daemon flap, peer re-handshake or wt0 blip makes the forge instantly unresolvable, then recovers. That is the generating process behind this ticket's Could not resolve host: git.matou.nz, and Nameservers: 0/0 Available says the mesh is not even advertising one right now.

The failures were INSTANT, not timeouts

The bundle's two labels both read "timeout", and both are mislabels:

  • Leg task 192304 created 21:45:53Z; heal evidence dir created 21:46:19.7Z = 26.7s for the whole job. list-ready-tasks.sh needs 30s+2s+30s+4s+30s = 96s to exhaust 3 retries on timeouts — it cannot have timed out even once.
  • api-timing.txt says api_seconds=timeout, but it was written 0.53s after the evidence dir was created, by a curl --max-time 35.

Sub-second failure against a server that answers in 0.75s is name-resolution/connect failure, not latency — which is why this flap keys a different signature from this ticket's and burns a fresh healer run each time.

Suggested addition to "What a human should do"

Give bens-mac-04 a resolver that does not depend on the mesh for public names (a DNS=/FallbackDNS= on wlp3s0, or systemd-resolved global FallbackDNS). Fixing NetBird's Nameservers: 0/0 alone still leaves every public lookup single-homed on wt0.

(No repair attempted: the resolver is host config, forbidden to the healer. No new ticket filed — this is the same host fault as this issue.)

Recurrence + the **mechanism**, from today's hook-mode heal on this same host (signature `7f647f2d78ed`, run 20260, evidence `/tmp/matou-heal-Matou-dev-factory.AV3UGa`). ## It is no longer persistent — but it still flaps `bens-mac-04` legs are now mostly green (runs 20230/20238/20245/20253 all succeeded). Run 20260's leg got **past** `git-setup.sh` — it reached stage `list ready tasks` — then lost the forge for a few tens of seconds. Siblings `matou-workstation` and `elitebook-03`, whose legs were created ~70s later, both went green against the same Forgejo. Forgejo itself is healthy (probed 200 in 0.75s from this host, same unchanged token). ## Mechanism: all DNS on this host rides the NetBird mesh, with no fallback ``` $ resolvectl status Link 2 (wlp3s0) Current Scopes: none <-- physical link carries NO DNS Link 9 (wt0) Current Scopes: DNS Current DNS Server: 100.98.33.81 DNS Domain: netbird.selfhosted ~98.100.in-addr.arpa $ netbird status Nameservers: 0/0 Available Peers count: 8/19 Connected ``` `wt0` (NetBird WireGuard) is the **only** DNS-carrying link, so resolution of `git.matou.nz` — a *public* name, 143.198.134.168 — depends entirely on the mesh resolver at `100.98.33.81`. Any NetBird daemon flap, peer re-handshake or `wt0` blip makes the forge instantly unresolvable, then recovers. That is the generating process behind this ticket's `Could not resolve host: git.matou.nz`, and `Nameservers: 0/0 Available` says the mesh is not even advertising one right now. ## The failures were INSTANT, not timeouts The bundle's two labels both read "timeout", and both are mislabels: - Leg task 192304 created 21:45:53Z; heal evidence dir created 21:46:19.7Z = **26.7s** for the whole job. `list-ready-tasks.sh` needs 30s+2s+30s+4s+30s = 96s to exhaust 3 retries on timeouts — it cannot have timed out even **once**. - `api-timing.txt` says `api_seconds=timeout`, but it was written **0.53s** after the evidence dir was created, by a `curl --max-time 35`. Sub-second failure against a server that answers in 0.75s is name-resolution/connect failure, not latency — which is why this flap keys a *different* signature from this ticket's and burns a fresh healer run each time. ## Suggested addition to "What a human should do" Give `bens-mac-04` a resolver that does **not** depend on the mesh for public names (a `DNS=`/`FallbackDNS=` on `wlp3s0`, or systemd-resolved global `FallbackDNS`). Fixing NetBird's `Nameservers: 0/0` alone still leaves every public lookup single-homed on `wt0`. *(No repair attempted: the resolver is host config, forbidden to the healer. No new ticket filed — this is the same host fault as this issue.)*
Owner

Closed 2026-10-21 (Ben's stale sweep): bens-mac-04 is green again — in the last 48h it ran 25 of 26 dev-factory swarm legs to success and 11 of 11 on idss. Same outage as idss #2044, matou-app #725, matou-website #14, all closed together; reopen on recurrence.

Closed 2026-10-21 (Ben's stale sweep): bens-mac-04 is green again — in the last 48h it ran 25 of 26 dev-factory swarm legs to success and 11 of 11 on idss. Same outage as idss #2044, matou-app #725, matou-website #14, all closed together; reopen on recurrence.
ben 2026-10-21 14:16:47 +00:00
Author
Member

Recurrence 2026-10-24 — reopening per the close note ("reopen on recurrence"). Filed by the swarm healer (watchdog mode, signature 0ff1caf1b642, evidence /tmp/matou-heal-Matou-dev-factory.jZ3vYf, healer host matou-dev-server-01).

Two consecutive swarm (bens-mac-04) legs red with the original line, both at head_sha 8ab044c:

run task started (UTC) result
24158 245449 01:45:12 failure
24161 245479 02:04:37 failure

Both job logs (/actions/runs/<n>/jobs/0/attempt/1/logs, runner 73a6cc98-…, 🧪 Matrix: map[host:bens-mac-04]):

fatal: unable to access 'https://git.matou.nz/Matou/dev-factory.git/': Could not resolve host: git.matou.nz
⚙️ [runner]: RUN exit status 3

It dies ~65s in, before git-setup.sh completes — stage one, same as the original filing.

Narrower blast radius than the original, and self-limiting so far. The host's legs were green every ~90s from 01:03 to 01:24 (runs 24123–24154), then the two reds, then nothing from bens-mac-04 for 63 minutes (last run 02:04, now 03:08). Meanwhile triage, resume and swarm (matou-workstation) have all stayed green on their normal cadence, so unlike 2026-10-09 the runs-on: swarm pool is not losing ticks — the pattern reads as a sleeping laptop dropping off the network rather than a broken resolver on a live host. Forgejo itself is healthy from here (api_http=200, api_seconds=0.90).

Not repaired: the resolver/network state is on bens-mac-04, a host the healer cannot reach, and touching host packages or the runner service is forbidden by the charter. getent hosts git.matou.nz on that box remains the one-line check (and pmset -g assertions / its sleep settings are worth a look if it is the laptop-sleep variant).

Follow-up filed: #304 — this heal run had no fault text at all (watchdog: streak (), job log not fetched: no run URL). The #188 job-log fetch is dead in watchdog mode because watchdog_run_url reads .html_url, a key the /actions/tasks payload never carries. I had to fetch the log above by hand. That is the third point of the original filing ("a stage-one transport red should be attributable to its HOST without a human joining runner-ids by hand") still open.

**Recurrence 2026-10-24** — reopening per the close note ("reopen on recurrence"). Filed by the swarm healer (watchdog mode, signature `0ff1caf1b642`, evidence `/tmp/matou-heal-Matou-dev-factory.jZ3vYf`, healer host `matou-dev-server-01`). Two consecutive `swarm (bens-mac-04)` legs red with the original line, both at `head_sha` 8ab044c: | run | task | started (UTC) | result | |---|---|---|---| | 24158 | 245449 | 01:45:12 | failure | | 24161 | 245479 | 02:04:37 | failure | Both job logs (`/actions/runs/<n>/jobs/0/attempt/1/logs`, runner `73a6cc98-…`, `🧪 Matrix: map[host:bens-mac-04]`): ``` fatal: unable to access 'https://git.matou.nz/Matou/dev-factory.git/': Could not resolve host: git.matou.nz ⚙️ [runner]: RUN exit status 3 ``` It dies ~65s in, before `git-setup.sh` completes — stage one, same as the original filing. **Narrower blast radius than the original, and self-limiting so far.** The host's legs were green every ~90s from 01:03 to 01:24 (runs 24123–24154), then the two reds, then **nothing from `bens-mac-04` for 63 minutes** (last run 02:04, now 03:08). Meanwhile `triage`, `resume` and `swarm (matou-workstation)` have all stayed green on their normal cadence, so unlike 2026-10-09 the `runs-on: swarm` pool is not losing ticks — the pattern reads as a sleeping laptop dropping off the network rather than a broken resolver on a live host. Forgejo itself is healthy from here (`api_http=200`, `api_seconds=0.90`). **Not repaired:** the resolver/network state is on `bens-mac-04`, a host the healer cannot reach, and touching host packages or the runner service is forbidden by the charter. `getent hosts git.matou.nz` on that box remains the one-line check (and `pmset -g assertions` / its sleep settings are worth a look if it is the laptop-sleep variant). **Follow-up filed:** #304 — this heal run had *no fault text at all* (`watchdog: streak ()`, `job log not fetched: no run URL`). The #188 job-log fetch is dead in watchdog mode because `watchdog_run_url` reads `.html_url`, a key the `/actions/tasks` payload never carries. I had to fetch the log above by hand. That is the third point of the original filing ("a stage-one transport red should be attributable to its HOST without a human joining runner-ids by hand") still open.
matou-build-agent 2026-10-24 03:08:53 +00:00
Author
Member

Recurrence 2026-10-30 03:45Z — hook-mode heal on bens-mac-04 itself (signature 56c0be7e8028, run 25318, evidence /tmp/matou-heal-Matou-dev-factory.XHFNXE). Same host fault as this issue; no new ticket.

New surface: the flap now reds the POLICY gate, not git-setup

This leg got further than the previous recurrences — past git-setup.sh — and died at policy validation (#12):

host=bens-mac-04  stage=policy validation (#12)  exit=1
policy: TRANSPORT — the repo's label set was never read; HUMAN_LABELS was not validated

That is idss #2052's rail working as designed: policy_validate rode out 5 attempts over ~30s (POLICY_LABELS_GET_RETRIES=5, backoff 2 → 2+4+8+16) on the one live labels GET, exhausted them, and reported rc 3 / TRANSPORT — not invalid-policy. No worker was spawned; the tick was lost, not misattributed to swarm-policy.sh. So the outage window here was >30s, longer than the sub-second instant failures in the 2026-10-10 comment.

Correlation: the host, not the forge

task leg started (UTC) result
261491 bens-mac-04 03:45:58 failure (TRANSPORT)
261489 matou-workstation 03:45:56 success
261493 elitebook-03 03:47:01 success

Both siblings went green against the same Forgejo in the same two minutes. The healer's own probes from this host at 03:46:54Z both failed with curl exit 6 (could not resolve host) — api-timing.txt api_curl_exit=6 in 1.2ms, and the job-log fetch too (hence the empty runs.json/job-log.txt in the bundle). By 03:50–03:56Z from the same shell: git.matou.nz → 143.198.134.168, /api/v1/version 200 in 1.1s, and the exact call that failed — /repos/Matou/dev-factory/labels?limit=100 — 200 in 1.05s.

The 2026-10-10 suggestion has been APPLIED, and the flap still recurs

wlp3s0 now carries its own resolver, so public names are no longer single-homed on the mesh:

Link 2 (wlp3s0)  Current Scopes: DNS   DNS Servers: 1.1.1.1 1.0.0.1
Link 8 (wt0)     Current Scopes: DNS   DNS Servers: 100.98.33.81
                 DNS Domain: netbird.selfhosted ~98.100.in-addr.arpa
$ resolvectl query git.matou.nz
git.matou.nz: 143.198.134.168   -- link: wlp3s0
$ netbird status
Management: Connected   Relays: 3/3 Available   Nameservers: 0/0 Available   Peers 9/19

So the mesh-resolver mechanism is no longer the remaining single point — resolution now goes out wlp3s0. What is left is the physical link itself: this is a laptop on wifi, and wlp3s0 carries the only public resolver, so a wifi re-association (or any window where no scope carries DNS) still makes the forge unresolvable for tens of seconds. NetBird still advertises Nameservers: 0/0 Available.

What a human should do (updated)

  1. Confirm whether the 03:45–03:47Z window was a wifi drop on bens-mac-04 (journalctl -u wpa_supplicant -u NetworkManager -u systemd-resolved --since '2026-10-30 03:40' — the healer runs as swarm, not in adm/systemd-journal, so it cannot read this; runner-journal.txt came back empty for the same reason).
  2. If so, the fix is link-level, not resolver-level: wired uplink for this host, or accept the flap and let the lost tick be re-fired by cron (the TRANSPORT rails now make each one cheap and correctly attributed).
  3. Consider whether a host whose uplink flaps should keep winning runs-on: swarm work — that is the open half tracked in #316 / #305.

(No repair attempted: resolver and link are host config, forbidden to the healer. The harness behaved correctly end to end — the fault was named TRANSPORT, the policy was not blamed, and no worker was spawned.)

**Recurrence 2026-10-30 03:45Z** — hook-mode heal on `bens-mac-04` itself (signature `56c0be7e8028`, run 25318, evidence `/tmp/matou-heal-Matou-dev-factory.XHFNXE`). Same host fault as this issue; no new ticket. ## New surface: the flap now reds the POLICY gate, not git-setup This leg got further than the previous recurrences — past `git-setup.sh` — and died at `policy validation (#12)`: ``` host=bens-mac-04 stage=policy validation (#12) exit=1 policy: TRANSPORT — the repo's label set was never read; HUMAN_LABELS was not validated ``` That is idss #2052's rail working as designed: `policy_validate` rode out **5 attempts over ~30s** (`POLICY_LABELS_GET_RETRIES=5`, backoff 2 → 2+4+8+16) on the one live labels GET, exhausted them, and reported rc 3 / TRANSPORT — **not** `invalid-policy`. No worker was spawned; the tick was lost, not misattributed to `swarm-policy.sh`. So the outage window here was **>30s**, longer than the sub-second instant failures in the 2026-10-10 comment. ## Correlation: the host, not the forge | task | leg | started (UTC) | result | |---|---|---|---| | 261491 | **bens-mac-04** | 03:45:58 | **failure** (TRANSPORT) | | 261489 | matou-workstation | 03:45:56 | success | | 261493 | elitebook-03 | 03:47:01 | success | Both siblings went green against the same Forgejo in the same two minutes. The healer's own probes from this host at 03:46:54Z both failed with **curl exit 6 (could not resolve host)** — `api-timing.txt` `api_curl_exit=6` in 1.2ms, and the job-log fetch too (hence the empty `runs.json`/`job-log.txt` in the bundle). By 03:50–03:56Z from the same shell: `git.matou.nz` → 143.198.134.168, `/api/v1/version` 200 in 1.1s, and the exact call that failed — `/repos/Matou/dev-factory/labels?limit=100` — **200 in 1.05s**. ## The 2026-10-10 suggestion has been APPLIED, and the flap still recurs `wlp3s0` now carries its own resolver, so public names are no longer single-homed on the mesh: ``` Link 2 (wlp3s0) Current Scopes: DNS DNS Servers: 1.1.1.1 1.0.0.1 Link 8 (wt0) Current Scopes: DNS DNS Servers: 100.98.33.81 DNS Domain: netbird.selfhosted ~98.100.in-addr.arpa $ resolvectl query git.matou.nz git.matou.nz: 143.198.134.168 -- link: wlp3s0 $ netbird status Management: Connected Relays: 3/3 Available Nameservers: 0/0 Available Peers 9/19 ``` So the mesh-resolver mechanism is no longer the remaining single point — resolution now goes out `wlp3s0`. What is left is the **physical link itself**: this is a laptop on wifi, and `wlp3s0` carries the only public resolver, so a wifi re-association (or any window where no scope carries DNS) still makes the forge unresolvable for tens of seconds. NetBird still advertises `Nameservers: 0/0 Available`. ## What a human should do (updated) 1. Confirm whether the 03:45–03:47Z window was a **wifi** drop on `bens-mac-04` (`journalctl -u wpa_supplicant -u NetworkManager -u systemd-resolved --since '2026-10-30 03:40'` — the healer runs as `swarm`, not in `adm`/`systemd-journal`, so it cannot read this; `runner-journal.txt` came back empty for the same reason). 2. If so, the fix is link-level, not resolver-level: wired uplink for this host, or accept the flap and let the lost tick be re-fired by cron (the TRANSPORT rails now make each one cheap and correctly attributed). 3. Consider whether a host whose uplink flaps should keep winning `runs-on: swarm` work — that is the open half tracked in #316 / #305. *(No repair attempted: resolver and link are host config, forbidden to the healer. The harness behaved correctly end to end — the fault was named TRANSPORT, the policy was not blamed, and no worker was spawned.)*
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/dev-factory#191
No description provided.