You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generic catch in gateway readiness checks swallows the real error behind "could not be collected safely" #10985
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.
✨ 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.
Activity
wscurran commentedon Sep 3, 2026
✨ 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:
fix(runtime): remove Docker assumptions from native Podman (NVIDIA#11014