NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Linux][Install] nemoclaw onboard exits 0 when Docker is not running — should fail with clear error

Open zNeill opened this issue 6 months ago • 2 comments

Description

Description

When Docker is stopped before running nemoclaw onboard, the onboard process exits with code 0 (success) instead of failing with a clear Docker-not-reachable error. The preflight assessHost() detects dockerReachable: false and planHostRemediation() generates a "Start Docker" action, but the onboard flow does not enforce blocking remediation as a hard failure.
Environment
Device:        GitLab CI runner (nemoclaw-ubuntu22-runner)
OS:            Ubuntu 22.04
Architecture:  x86_64
Node.js:       v22.22.2
npm:           10.9.7
Docker:        Docker CE (stopped)
OpenShell CLI: 0.0.36
NemoClaw:      v0.0.35
OpenClaw:      N/A (onboard not completed)
Steps to Reproduce
1. sudo systemctl stop docker
2. nemoclaw onboard (non-interactive mode)
3. echo $?
Expected Result
onboard exits with non-zero code and displays a clear error:
"Docker is not running. Start Docker and retry: sudo systemctl start docker"
Actual Result
onboard exits with code 0 (success). No clear Docker-not-running error.
Users get false success, then hit confusing failures when sandbox operations fail later.
Logs
CI pipeline #50387798, job 311954696 (test_by_category: [install])
Test case: T5910673 — onboard fails cleanly with a Docker-not-reachable message
AssertionError: Onboard should exit non-zero when Docker is down: expected +0 not to be +0

Bug Details

Field Value
Priority Unprioritized
Action Dev - Open - To fix
Disposition Open issue
Module Machine Learning - NemoClaw
Keyword NemoClaw, NemoClaw_Automation, NEMOCLAW_GH_SYNC_APPROVAL, NemoClaw_Install

[NVB#6150499]

zNeill avatar May 06 '26 12:05 zNeill

Stale-issue verification — automated

Reported on: v0.0.35 Verified on: v0.0.38 (current latest) Verification mode: runtime reproduction on Brev n2d-highmem-2 (16 GB CPU, x86_64). sudo systemctl stop docker → nemoclaw onboard --fresh --yes-i-accept-third-party-software (non-interactive, NIM provider). Captured exit code + output.

Empirical evidence

=== Step 3: Stop Docker ===
inactive

=== Step 4: Run onboard with Docker stopped ===
[onboard EXIT CODE]: 1

[1/8] Preflight checks
  ──────────────────────────────────────────────────
  Docker is not reachable. Please fix Docker and try again.

  Suggested fix:
  - Start Docker: Docker is installed but NemoClaw could not talk to the Docker daemon.
    sudo systemctl start docker
    nemoclaw onboard

Exit code 1, clear error message + remediation suggestion — exactly matches your expected result.

Source check

src/lib/onboard.ts line 3608 (v0.0.38, also present at v0.0.35 line 2942):

if (!host.dockerReachable) {
  console.error("  Docker is not reachable. Please fix Docker and try again.");
  printRemediationActions(planHostRemediation(host));
  process.exit(1);
}

The hard-fail path was already present at the version you filed against. Your CI may have had something specific that bypassed it — Docker's docker.socket can re-activate the daemon between systemctl stop docker and docker info, leaving dockerInfoOutput non-empty and dockerReachable true. (We saw the "Stopping docker.service, but it can still be activated by: docker.socket" warning on our test box too, but our docker info still returned empty.)

Verdict

Confidence: 75 / 100. Labelling fixed-on-latest.

+50 latest clean + 25 commits-touched (src/lib/onboard.ts modified v0.0.35→v0.0.38) = 75.

@zNeill — please confirm nemoclaw onboard exits non-zero on v0.0.38 in your GitLab CI runner. If you still see exit 0, the difference is likely in how your environment handles docker.socket after systemctl stop docker.service — please share the exact preflight output on a fresh v0.0.38 run.

prekshivyas avatar May 11 '26 23:05 prekshivyas

Closing as fixed-on-latest (label already applied by the QA team; assigned to cv + prekshivyas).

The preflight blocking-remediation hard-failure path was added in the v0.0.39+ install flow. Onboarding now exits non-zero with the "Docker is not running" message when docker info fails at preflight. Re-open if you can repro on main.

cjagwani avatar May 14 '26 06:05 cjagwani