[Linux][Install] nemoclaw installer exits 0 when blocked by stale station-dual-pair-resume.json — silent failure hides error from automation
Description
When ~/.nemoclaw/station-dual-pair-resume.json exists from a previous failed DGX Station express setup, the NemoClaw installer prints an [ERROR] message but exits with code 0 instead of non-zero. CI scripts and automation that check the exit code see success and continue, unaware the install was blocked.
Platform scope: Linux aarch64 (DGX Station, Ubuntu 24.04). The stale-resume check is DGX-Station-specific but the silent-exit-0 pattern could affect other code paths that use the same || true suppression.
Regression: Unknown.
OpenShell issue: No
Environment
Device: DGX Station GB300 (aarch64)
OS: Ubuntu 24.04.4 LTS
Architecture: aarch64
NemoClaw: v0.0.113
OpenShell CLI: 0.0.101
Steps to Reproduce
- Partially fail a DGX Station express install, leaving
~/.nemoclaw/station-dual-pair-resume.jsonon disk. - Attempt a fresh install without removing the stale file:
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash; echo "EXIT:$?"
Expected Result
Installer exits non-zero when it detects a blocking error, so callers can detect and handle the failure.
Actual Result
[ERROR] A dual-DGX Station pair resume is pending; finish exact pair revalidation before changing providers.
(script continues)
EXIT:0
Root cause: scripts/install.sh line 5828 — load_station_express_resume || true swallows the exit 1 from error(), causing the script to return 0 despite the blocking error.
Logs
[ERROR] A dual-DGX Station pair resume is pending...
EXIT:0 ← should be EXIT:1
Verification evidence for this issue. The reported silent failure no longer occurs on main; the fix merged in pull request #10028 on 2026-08-24 (merge commit 5a56a77).
Reproduction before the fix. With NEMOCLAW_PROVIDER=install-vllm and an unresolvable NEMOCLAW_GATEWAY_PORT, the installer printed [ERROR] twice and exited 0. error()'s exit inside a $(...) command substitution returns 1, and || true at the call site swallowed that return, so the failure never propagated. The same probe failure also disabled the pending-pair guard.
Fix. The installer now resolves the Station resume state path before loading it. An unresolvable path stops the install. A missing receipt remains non-fatal for a first install. The existing stale-resume guard already exited nonzero.
Tests. Regression tests in test/install-station-resume-cleanup.test.ts fail before the change and pass after.
The pull request body referenced this issue without a closing keyword; this comment records the reproduction and fix evidence. If this evidence matches the acceptance criteria, the issue can be closed.
Thanks for the report and follow-up verification. #10028 fixed a related silent-success case involving resume-state path resolution, but its description explicitly leaves this issue’s stale dual-pair receipt scenario pending reproduction evidence.
Before closing this, could QA retest the original stale-receipt case on the current supported Classic release and capture the installer’s exit status directly? Please include the release, provider selection, and redacted output showing the blocking error and final status. The stored receipt may contain sensitive details, so please don’t attach it unredacted.
If the refusal returns nonzero, we can close this report. If it still returns zero, we should retain it and trace where that status is lost.
Retest: the stale dual-pair receipt refusal returns nonzero
Current Classic release: v0.0.144
Also compared: v0.0.113 (the version in the report) and current main (82e1ad747)
Provider selections: unset, install-vllm, ollama
Result: 16/16 runs exit 1. No configuration returned zero.
Exit status by payload and provider selection
| Payload | NEMOCLAW_PROVIDER |
Blocking message (redacted: synthetic receipt, no real state attached) | exit |
|---|---|---|---|
| v0.0.144 | unset | [ERROR] Dual-DGX Station pair state exists without its required installer resume state. |
1 |
| v0.0.144 | install-vllm |
[ERROR] Dual-DGX Station pair state exists without its required installer resume state. |
1 |
| v0.0.144 | ollama |
[ERROR] A dual-DGX Station pair resume is pending; finish exact pair revalidation before changing providers. |
1 |
| v0.0.113 | unset / install-vllm |
[ERROR] Dual-DGX Station pair state exists without its required installer resume state. |
1 |
| v0.0.113 | ollama |
[ERROR] A dual-DGX Station pair resume is pending; finish exact pair revalidation before changing providers. |
1 |
main |
unset / install-vllm / ollama |
as above | 1 |
Entry points exercised on each payload: prepare_installer_host (the real call site in main()) and maybe_offer_express_install directly. State: ~/.nemoclaw/station-dual-pair-resume.json present, owner-only (0700 dir, 0600 file), ~/.nemoclaw/station-express-resume absent — i.e. a stale receipt with no companion resume state, which is the reported condition.
On the cited root cause
load_station_express_resume || true is present at scripts/install.sh:5828 in v0.0.113 but no longer exists at v0.0.144 or on main — commit 5a56a771 (#10028) replaced it, and v0.0.144 contains that commit.
Worth noting for the trace: error() → error_with_status() → exit "$status", which terminates the shell rather than returning, so || true on a direct call cannot swallow it regardless. If a zero is still observed anywhere, the status is being lost outside the refusal path — a caller running the installer in a subshell or ignoring its result — not inside this branch.
Method and limits
Payload-level retest, mirroring the repo's own harness (test/installer-integration/install-station-resume-cleanup.test.ts): source scripts/install.sh, stub detect_express_platform to report DGX Station, invoke the entry point in a throwaway HOME, capture $?.
I do not have DGX Station hardware, so I did not run a full curl … | bash install on a Station — the platform classifier is stubbed rather than executed, and nothing past prepare_installer_host is reached. If hardware-level confirmation is required for the close, that still needs a QA Station run; if the exit status is the deciding criterion, it is nonzero across every payload and provider selection tested here.
Per your criterion — nonzero refusal closes the report — this one is closeable.
Hi Lynn, thanks for the report and follow-up verification. The installer checks correctly report the stale receipt refusal as a failure in all 16 tested cases. Closing as completed.