Skip to main content

Debug Manager

Manage Debug settings, check cloud connectivity, and create bounded diagnostic support bundles.

nimbus debug <command>
CommandDescription
listShow current Debug settings
export <path>Export Debug settings to a JSON file
import <path>Import Debug settings from a JSON file
networkCheck the configured backend/proxy route, TLS trust, and HTTP/2
download-bundle <path>Create a Debug support bundle ZIP, with local offline collection when Agent is stopped
upload-bundle [--path <path>]Create a Debug support bundle ZIP and upload it to the configured cloud storage

Network connectivity​

# Ask the running Agent to check its effective connection settings
nimbus debug network --timeout 15

# Also try a supported read-only RPC using an existing authenticated backend session
nimbus debug network --backend-rpc

# Check locally when Agent is stopped, using the robot's installation configuration
sudo nimbus debug network --offline --config /etc/nimbus/nimbus.json --timeout 15

# Export the redacted report as protobuf JSON
sudo nimbus debug network --offline --json > /tmp/nimbus-network.json

--timeout sets the total run budget from 1 to 60 seconds; the default is 30 and zero also selects 30. --backend-rpc does not log in, reconnect, or renew credentials. It is skipped if a suitable authenticated session is unavailable; it is always skipped in offline mode.

Normal execution uses the selected Agent endpoint and the same CLI authentication as other Debug commands. --offline explicitly checks the CLI machine using local configuration without Agent, Sidecar, or a database. --config selects its nimbus.json and is accepted only with --offline; the default is /etc/nimbus/nimbus.json. Run on the robot and use sudo only when necessary to read the selected file. A connection error or authorization rejection never switches to offline mode. Older Agents report that the command is unsupported; upgrade Agent or explicitly select offline mode using a CLI version that includes this command.

The report separates proxy and backend observations, DNS/TCP access, proxy authentication, server certificate trust, HTTP/2 negotiation, and the optional backend RPC. It shows certificate issuer and expiry where observable. Skipped means a check was not performed; Inconclusive means the available evidence could not decide its result. Failed or inconclusive checks return exit code 1; exit code 0 means the performed checks passed. A skipped backend RPC does not prove successful Nimbus authorization. A working HTTP/1.1 request or HTTP 200 response does not establish gRPC connectivity: the backend connection must negotiate HTTP/2.

The same check is available on the Agent's /debug/network page. Agent retains only its latest report in process memory for display and support-bundle export; restarting Agent clears it. Offline CLI results are printed independently and do not update the running Agent's report. Ordinary bundle export includes available retained evidence without starting a new network check.

For corporate proxy and CA installation instructions, see Corporate network setup.

Support bundles​

Support-bundle selection options:

  • --from <time>: UTC lower bound in ISO-8601 or a relative value like "1 hour ago". Empty uses the agent default window.
  • --to <time>: UTC upper bound in ISO-8601, now, or a relative value like "5 minutes ago". Empty uses now.
  • --domains <ids>: comma-separated domain ids. Empty includes all support-bundle domains.
  • --limit <n>: structured diagnostic rows per domain. Zero uses the agent default.
  • --service-log-line-limit <n>: raw service-log lines. Zero uses the agent default.
  • --max-mb <n>: maximum bundle size in MB. Zero uses the agent default.

Supported support-bundle domains:

  • agent-structured-logs
  • agent-service-log
  • frontend-telemetry
  • memory-diagnostics
  • sidecar-diagnostics
  • agent-lifecycle
  • agent-db-health
  • video-diagnostics
  • resources-storage-diagnostics
  • stream-upload-diagnostics
  • metric-upload-diagnostics
  • network-diagnostics
  • installer-logs
  • tasks

If the local Agent connection is refused, download-bundle collects retained evidence on the CLI machine without starting Agent or Sidecar. It includes readable installation logs, the Agent service journal, Sidecar/updater evidence, and partial host lifecycle information. Runtime-only domains are marked unavailable in manifest.json. Private journals and installer logs may require running the command with sudo.

Offline export keeps the same selection options and reports the applied limits; its service-journal cap is lower than the full Agent export. Authentication errors, export failures, remote target failures, and ambiguous timeouts do not trigger local collection. upload-bundle requires Agent and cloud access.

With Sidecar running, open http://127.0.0.1:19995/debug in a browser on the robot and use Download offline support bundle. The form supports UTC window, domain, and size/line selection and uses the same offline exporter as CLI. Sidecar diagnostics listen on loopback only.

Installation results describe local installation and cloud status reporting separately. A successful installation result does not establish that Agent stayed running or completed cloud login; the same bundle carries the service journal for that diagnosis. Limited installer output retains the beginning and newest tail, including final result markers when the budget permits.

tasks exports run summaries and retained execution details for runs overlapping the requested window, including navigation observations and script stdout/stderr. Detailed observations are filtered to that window. The Agent scans at most the newest 200 run summaries and retains at most 2 MiB of task payload, also subject to the selected row limit and remaining bundle/domain budget. The export marks omitted details and incomplete source coverage explicitly; older runs can lack execution details.

Autocomplete and inline help are driven by the DebugManagerService command registration and the support-bundle request parsers. Domain ids are free-form option values, so keep the documented domain list aligned with DebugSupportBundleService when adding new bundle domains.

Examples

# Show current Debug settings
nimbus debug list

# Export/import Debug settings
nimbus debug export /tmp/debug-settings.json
nimbus debug import /tmp/debug-settings.json

# Download a bundle with all domains using agent defaults
nimbus debug download-bundle /tmp/nimbus-debug-bundle.zip

# Collect available evidence after local Agent startup fails; no service restart is needed
sudo nimbus debug download-bundle /tmp/nimbus-startup-failure.zip

# Download a bundle for the last hour
nimbus debug download-bundle /tmp/nimbus-debug-last-hour.zip --from "1 hour ago"

# Download task execution evidence for the last hour
nimbus debug download-bundle /tmp/nimbus-task-debug.zip --from "1 hour ago" --domains tasks

# Download only frontend telemetry for a specific UTC window
nimbus debug download-bundle /tmp/frontend-debug.zip \
--from 2026-06-16T08:00:00Z \
--to 2026-06-16T09:00:00Z \
--domains frontend-telemetry

# Download the largest bundle currently allowed for the default diagnostics window.
# Retention, enabled diagnostics, per-domain byte caps, row caps, and the hard bundle cap still apply.
nimbus debug download-bundle /tmp/nimbus-debug-bundle-max.zip \
--limit 20000 \
--service-log-line-limit 50000 \
--max-mb 256

# Download the largest bundle currently allowed for a known UTC incident window.
nimbus debug download-bundle /tmp/nimbus-debug-bundle-window.zip \
--from 2026-06-21T13:00:00Z \
--to 2026-06-21T14:00:00Z \
--limit 20000 \
--service-log-line-limit 50000 \
--max-mb 256

# Upload a temporary bundle to cloud and remove the temporary local file
nimbus debug upload-bundle

# Upload and retain a local copy at the requested path
nimbus debug upload-bundle --path /tmp/nimbus-debug-bundle.zip --max-mb 64