Skip to content

Generic catch in gateway readiness checks swallows the real error behind "could not be collected safely" #10985

Closed

Description

@politerealism

Summary

src/lib/readiness/gateway.ts wraps observeManagedGateway() (and a similar externally-supervised attachment probe) in a bare try { ... } catch { return { ..., failure: "...could not be collected safely" } }. Any underlying exception — a missing binary, a permission error, an actual bug — collapses to the same generic, unhelpful message, with no indication of what command or error actually failed.

This made a real bug (filed separately as #10984) very hard to diagnose: onboarding reported three failed capabilities with a one-line summary that gave no signal it was actually a docker: command not found failure underneath. Finding the cause required reading source, not anything onboarding itself surfaced.

Suggestion

Preserve at least the caught error's message (or a redacted form of it) as evidence attached to the finding, instead of discarding it. This doesn't need to expose raw stack traces to end users — even the failing command name or error code (e.g. ENOENT) would have made this diagnosable without reading source.

Where

src/lib/readiness/gateway.ts — the try/catch around observeManagedGateway(owner), and the similar attachment-probe catch above it.

Related

Surfaced while investigating #10891/#10900 and the bug reported in #10984.

Activity

  1. added
    area: observability
    area: onboarding
    on Sep 3, 2026
  2. added theissue type on Sep 3, 2026
  3. wscurran commented on Sep 3, 2026

    @wscurran
    Contributor

    ✨ Thanks for the report. The generic catch in gateway readiness checks makes debugging harder by hiding the root cause. This is a clear observability and onboarding diagnostics issue.


    Related open PRs:


    Related open issues:

  4. added a commit that references this issue on Sep 9, 2026
    018ace1
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: observabilityarea: onboarding

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions