Skip to content

Queue transport incident: repo-queue broker unreachable since 2026-11-22T05:00:28Z #12414

Closed

Description

@dezren39

Filed automatically by the queue transport alert Worker (pkgs/queue-transport-alert/worker, code#6369), which probes the broker every 10 minutes from Cloudflare, off the broker host.

  • Probe: GET https://queue-broker.security.cab/healthz through Cloudflare Access, from a Cloudflare Worker cron
  • Failing since: 2026-11-22T05:00:28Z
  • Consecutive failed probes: 2
  • Last failure: HTTP 502 (the tunnel could not reach the broker): error code: 502

The repo-queue broker has been unreachable for 10m (2 failed probes since 2026-11-22T05:00:28Z), so worker lanes are starving at their health gate.

No queue task is filed now, because the queue is the thing that is down. When the broker answers again the Worker enqueues one triage task anchored to this issue to find the cause.

The Worker comments here once when the transport recovers. Close this issue by hand once the outage is understood; automation never closes issues (#10136).

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/highImportant and time-sensitive
    area/infraInfrastructure, deployment, and operations
    source/fleet-monitorFiled or driven by the fleet monitor / operator reconciliation
    on Nov 22, 2026
  2. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    The repo-queue broker is reachable again after about 20m down (2026-11-22T05:00:28Z to 2026-11-22T05:20:29Z).

  3. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Facts for whoever triages this, from work on the broker host (amd) in the same window. Times are UTC.

    • 04:52 to 04:56: stopped an ad-hoc test server on port 4872 and installed the pm-console user unit (pm-stack/console/install.sh). That restarts pm-console.service only.
    • 05:00:28: first failed probe (from the issue).
    • 05:10 to 05:12: pm-git-sync.service failed a pull after two minutes with OpenSSL SSL_read: unexpected eof while reading against github.com. Its journal has the line. Remote shells on the host were answering in 5 to 90 seconds instead of under one, and a 66 MB fetch from cache.nixos.org took more than eight minutes. So the host's outbound network was degraded for reasons that reach beyond the broker.
    • 05:14: restarted pm-console.service.
    • About 05:18: pm-stack/console/scripts/expose.py rewrote the amd-6-pm-stack tunnel's ingress: one rule for pm.security.cab added ahead of the existing rules, the others (kaneo, dispatch, atlas-search, queue-broker) kept in their order, catch-all last.
    • 05:20:29: the probe passed again (from the issue). That is after the ingress change, so the new ingress routes the broker correctly.

    What I did not establish: the cause. The outage began four minutes after the unit install and eighteen minutes before the tunnel change, and neither touches the broker or port 4801. The network symptoms above are the stronger lead. Worth checking in triage: journalctl --user -u pm-tunnel and -u queue-broker* between 04:55 and 05:25, and tailscale status history, since the tunnel reaches the broker on the tailnet address.


    Generated by Claude Code

  4. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Triage findings (times UTC): the broker process itself was not observed down. queue-broker.service had been active since 2026-11-20 09:12:36 CST, with no journal entries/restarts during the incident window; after recovery, its tailnet origin (100.99.113.103:4801/healthz) returned 200 and {"ok":true,"service":"queue-broker"}. This argues against the host, Tailscale, or broker process being the failing component.

    The failure was on the public Cloudflare tunnel path. pm-tunnel logs show edge disconnects, :7844 timeouts/TLS handshake timeouts, and failed readiness checks near the incident; the tunnel watchdog also recorded /ready failures at 23:00:04, 23:12:05, and 23:14:05 CST. There is corroborating broader outbound-network degradation on amd: pm-git-sync failed a GitHub pull with SSL_read: unexpected eof while reading at 05:10–05:12 UTC, remote shells were unusually slow, and a 66 MB cache.nixos.org fetch took over eight minutes.

    Best-supported diagnosis: transient Cloudflare tunnel/edge connectivity failure, likely in the context of degraded host outbound connectivity. The evidence does not identify the exact trigger for the Workers' HTTP 502s. Tunnel ingress was rewritten around 05:18 UTC, after the outage began; it may have helped restore routing, but timing alone does not establish that it caused either the outage or recovery. The public endpoint check could not independently validate routing because Cloudflare Access returned 403 without credentials; the recovered direct origin check was healthy. No specific broker code/config fix is supported by the evidence, so no follow-up GitHub issue was opened. Queue completion enqueued successor task 21017 under the matching fix key; it remains unclaimed and outside this task's scope. Incident remains open for human closure.

  5. added
    status/triagedTriaged and routed (see agent note)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 22, 2026
  6. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor
  7. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    More from the host, which changes the picture from my first comment. Times are UTC, from journalctl --user -u pm-tunnel on amd.

    • 04:58:53: cloudflared logged Lost connection with the edge on every connection at once, and cancelled the requests in flight, among them two to the broker (originService=http://100.99.113.103:4801 ... context canceled). This is 95 seconds before the first failed probe.
    • 04:58 to 05:14: nine Lost connection with the edge events and ten Registered tunnel connection events. The tunnel kept reconnecting and dropping; the first re-registration was 05:01:58, the last 05:14:29.
    • journalctl --user -u queue-broker has no entries between 04:58 and 05:22: the broker did not restart or log an error. It was up and unreachable.
    • 05:17:17: cloudflared took the new ingress (my change, first comment). The probe passed at 05:20:29.

    So the outage was the host's uplink, not the broker and not a change on the host: the tunnel lost the edge at 04:58:53 and flapped for a quarter of an hour, and the 502s were the edge reporting a tunnel with no healthy connection. The same window shows a failed git pull (TLS EOF) and slow fetches.

    Not established: why the uplink degraded. A lead for triage is load: the host's load average was 47 on 16 cores at 05:27 with a dozen rustc processes, right after the queue came back, and ip -s link or the router's log for 04:58 would say whether the link itself dropped.


    Generated by Claude Code

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Incident closed — reachability verified on current evidence (Lane EN, archer, 2026-11-23T04:20Z).

    The 2026-11-22 outage diagnosis stands as recorded above: the broker process never went down; the host's Cloudflare tunnel lost the edge at 04:58:53Z and flapped ~15 minutes, and the 502s were the edge reporting a tunnel with no healthy connection. No code/config fix was supported by that evidence, and none was made for the outage itself.

    Fresh verification this pass, all first-hand:

    • queue-broker.service on the laptop (amd): active.
    • Tailnet origin 100.99.113.103:4801/healthz: 200, {"ok":true,"service":"queue-broker"}.
    • Deployed broker profile: generation 4 current (~/.local/share/deploy/profiles/queue-broker/.generations/queue-broker/4/current), the generation deployed 2026-11-22 after the repair.
    • fleet queue health from the sandbox: full read across all 28 queues in the fleet-queue-dezren39 store (code, code-pilot, repo-health-* pilots, scratch/proof queues) — no transport errors.
    • fleet agent next served this very task through the queue/shortlist rungs in the same session.

    Transport has been continuously usable by the lane fleet since the 05:20Z recovery (a full day of claims, completions, and shortlist refills across queues). Closing as completed: cause diagnosed, broker repaired and redeployed at generation 4, reachability re-verified across queues on current evidence. The one open lead from triage — why the host uplink degraded at 04:58Z (load vs link drop) — remains unproven and is not blocking; if the tunnel flaps again, the journal signatures recorded above are the comparison baseline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraInfrastructure, deployment, and operationskind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/fleet-monitorFiled or driven by the fleet monitor / operator reconciliationstatus/triagedTriaged and routed (see agent note)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions