Repository navigation
Description
After a stop/start cycle on a Brev Ubuntu instance, the nemoclaw and openshell CLI environments enter an inconsistent state. Specifically, attempts to connect to an existing sandbox fail with a tcp connect error (Connection refused), indicating the background gateway/daemon did not survive the reboot.
A full nemoclaw onboard successfully recreates the environment and restores connectivity, suggesting the issue is rooted in service persistence and CLI command routing rather than a permanent configuration failure.
Additionally, the CLI incorrectly reports logs as an unrecognized subcommand, despite it being listed in the help documentation nemoclaw devrelbot logs --follow.
**Steps:
- start brev instance, install nemoclaw
- stop brev instance,
- start brev instance again.**
`ubuntu@brev-a8qqtwtmt:~$ nemoclaw list
Sandboxes:
devrelbot *
model: nvidia/nemotron-3-super-120b-a12b provider: nvidia-nim CPU policies: pypi, npm
- = default sandbox
ubuntu@brev-a8qqtwtmt:~$ nemoclaw devrelbot logs
error: unrecognized subcommand 'logs'
Usage: openshell sandbox [OPTIONS] [COMMAND]
For more information, try '--help'.
Command failed (exit 2): openshell sandbox logs devrelbot
ubuntu@brev-a8qqtwtmt:~$ nemoclaw devrelbot logs --follow
error: unrecognized subcommand 'logs'
Usage: openshell sandbox [OPTIONS] [COMMAND]
For more information, try '--help'.
Command failed (exit 2): openshell sandbox logs devrelbot --follow
ubuntu@brev-a8qqtwtmt:~$ nemoclaw start
[services] TELEGRAM_BOT_TOKEN not set — Telegram bridge will not start.
[services] Create a bot via @Botfather on Telegram and set the token.
[services] No sandbox in Ready state. Telegram bridge may not work until sandbox is running.
[services] cloudflared started (PID 9517)
[services] Waiting for tunnel URL...
┌─────────────────────────────────────────────────────┐
│ NemoClaw Services │
│ │
│ Public URL: https://shared-hughes-chuck-novelty.trycloudflare.com│
│ Telegram: not started (no token) │
│ │
│ Run 'openshell term' to monitor egress approvals │
└─────────────────────────────────────────────────────┘
ubuntu@brev-a8qqtwtmt:~$ nemoclaw devrelbot connect
Error: × transport error
├─▶ tcp connect error
├─▶ tcp connect error
╰─▶ Connection refused (os error 111)
Command failed (exit 1): openshell sandbox connect devrelbot
ubuntu@brev-a8qqtwtmt:$$ nemoclaw devrelbot status
ubuntu@brev-a8qqtwtmt:
Sandbox: devrelbot
Model: nvidia/nemotron-3-super-120b-a12b
Provider: nvidia-nim
GPU: no
Policies: pypi, npm
NIM: not running
ubuntu@brev-a8qqtwtmt:$$
ubuntu@brev-a8qqtwtmt:
ubuntu@brev-a8qqtwtmt:$$
ubuntu@brev-a8qqtwtmt:
ubuntu@brev-a8qqtwtmt:$$
ubuntu@brev-a8qqtwtmt:
ubuntu@brev-a8qqtwtmt:~$ nemoclaw devrelbot policy-list
Policy presets for sandbox 'devrelbot':
○ discord — Discord API, gateway, and CDN access
○ docker — Docker Hub and NVIDIA container registry access
○ huggingface — Hugging Face Hub, LFS, and Inference API access
○ jira — Jira and Atlassian Cloud access
● npm — npm and Yarn registry access
○ outlook — Microsoft Outlook and Graph API access
● pypi — Python Package Index (PyPI) access
○ slack — Slack API and webhooks access
○ telegram — Telegram Bot API access
ubuntu@brev-a8qqtwtmt:~$ openshell sandbox list
Error: × transport error
├─▶ tcp connect error
├─▶ tcp connect error
╰─▶ Connection refused (os error 111)
ubuntu@brev-a8qqtwtmt:$ ^C$ ^C
ubuntu@brev-a8qqtwtmt:
ubuntu@brev-a8qqtwtmt:~$ nemoclaw onboard
NemoClaw Onboarding
[1/7] Preflight checks
──────────────────────────────────────────────────
✓ Docker is running
✓ openshell CLI: openshell 0.0.7
✓ cgroup configuration OK
ⓘ No GPU detected — will use cloud inference
[2/7] Starting OpenShell gateway
──────────────────────────────────────────────────
✓ Checking Docker
✓ Downloading gateway
✓ Initializing environment
✓ Starting gateway
✓ Gateway ready
Name: nemoclaw
Endpoint: https://127.0.0.1:8080
✓ Active gateway set to 'nemoclaw'
✓ Gateway is healthy
[3/7] Creating sandbox
──────────────────────────────────────────────────
Sandbox name [my-assistant]: devrelbot
Sandbox 'devrelbot' already exists. Recreate? [y/N]: y
Creating sandbox 'devrelbot' (this takes a few minutes on first run)...
Building image openshell/sandbox-from:1773738194 from /tmp/nemoclaw-build-9SYs12/Dockerfile
Context: /tmp/nemoclaw-build-9SYs12
Gateway: nemoclaw
Building image openshell/sandbox-from:1773738194 from /tmp/nemoclaw-build-9SYs12/Dockerfile
Step 1/22 : FROM node:22-slim
---> 4f77a690f2f8
Step 2/22 : ENV DEBIAN_FRONTEND=noninteractive
---> Using cache
---> bdad1dfa5386
Step 3/22 : RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip python3-venv curl git ca-certificates iproute2 && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 622cbec4ea4f
Step 4/22 : RUN groupadd -r sandbox && useradd -r -g sandbox -d /sandbox -s /bin/bash sandbox && mkdir -p /sandbox/.openclaw /sandbox/.nemoclaw && chown -R sandbox:sandbox /sandbox
---> Using cache
---> a6a26baa593c
Step 5/22 : RUN npm install -g [email protected]
---> Using cache
---> 0b80579be64f
Step 6/22 : RUN pip3 install --break-system-packages pyyaml
---> Using cache
---> f9359c52d647
Step 7/22 : COPY nemoclaw/dist/ /opt/nemoclaw/dist/
---> Using cache
---> f8251cbd5137
Step 8/22 : COPY nemoclaw/openclaw.plugin.json /opt/nemoclaw/
---> Using cache
---> ac56a385eb9f
Step 9/22 : COPY nemoclaw/package.json /opt/nemoclaw/
---> Using cache
---> ae659b19bb4d
Step 10/22 : COPY nemoclaw-blueprint/ /opt/nemoclaw-blueprint/
---> Using cache
---> 220fa4874496
Step 11/22 : WORKDIR /opt/nemoclaw
---> Using cache
---> 1262c1246027
Step 12/22 : RUN npm install --omit=dev
---> Using cache
---> 1d18060b446a
Step 13/22 : RUN mkdir -p /sandbox/.nemoclaw/blueprints/0.1.0 && cp -r /opt/nemoclaw-blueprint/* /sandbox/.nemoclaw/blueprints/0.1.0/
---> Using cache
---> f22023882453
Step 14/22 : COPY scripts/nemoclaw-start.sh /usr/local/bin/nemoclaw-start
---> Using cache
---> 8a165355f648
Step 15/22 : RUN chmod +x /usr/local/bin/nemoclaw-start
---> Using cache
---> b28abb8c5589
Step 16/22 : WORKDIR /sandbox
---> Using cache
---> 4cf26d4e4046
Step 17/22 : USER sandbox
---> Using cache
---> 3da24ae42159
Step 18/22 : RUN mkdir -p /sandbox/.openclaw/agents/main/agent && chmod 700 /sandbox/.openclaw
---> Using cache
---> ad5d9b7f1e35
Step 19/22 : RUN python3 -c "import json, os; config = { 'agents': {'defaults': {'model': {'primary': 'nvidia/nemotron-3-super-120b-a12b'}}}, 'models': {'mode': 'merge', 'providers': {'nvidia': { 'baseUrl': 'https://inference.local/v1', 'apiKey': 'openshell-managed', 'api': 'openai-completions', 'models': [{'id': 'nemotron-3-super-120b-a12b', 'name': 'NVIDIA Nemotron 3 Super 120B', 'reasoning': False, 'input': ['text'], 'cost': {'input': 0, 'output': 0, 'cacheRead': 0, 'cacheWrite': 0}, 'contextWindow': 131072, 'maxTokens': 4096}] }}} }; path = os.path.expanduser('~/.openclaw/openclaw.json'); json.dump(config, open(path, 'w'), indent=2); os.chmod(path, 0o600)"
---> Using cache
---> 65f36d7f09ef
Step 20/22 : RUN openclaw doctor --fix > /dev/null 2>&1 || true && openclaw plugins install /opt/nemoclaw > /dev/null 2>&1 || true
---> Using cache
---> a4f3fb333ce2
Step 21/22 : ENTRYPOINT ["/bin/bash"]
---> Using cache
---> 23efce2cd390
Step 22/22 : CMD []
---> Using cache
---> e70458a5dd2a
Successfully built e70458a5dd2a
Successfully tagged openshell/sandbox-from:1773738194
Built image openshell/sandbox-from:1773738194
Pushing image openshell/sandbox-from:1773738194 into gateway "nemoclaw"
[progress] Exported 1159 MiB
[progress] Uploaded to gateway
Image openshell/sandbox-from:1773738194 is available in the gateway.
✓ Image openshell/sandbox-from:1773738194 is available in the gateway.
Created sandbox: devrelbot
[0.0s] Requesting compute...
[0.1s] Sandbox allocated
[0.9s] Image pulled
Setting up NemoClaw...
[gateway] openclaw gateway launched (pid 96)
[gateway] auto-pair watcher launched (pid 97)
[gateway] Local UI: http://127.0.0.1:18789/
[gateway] Remote UI: http://127.0.0.1:18789/
✓ Forwarding port 18789 to sandbox devrelbot in the background
Access at: http://127.0.0.1:18789/
Stop with: openshell forward stop 18789 devrelbot
✓ Sandbox 'devrelbot' created
[4/7] Configuring inference (NIM)
──────────────────────────────────────────────────
Using NVIDIA Cloud API with model: nvidia/nemotron-3-super-120b-a12b
[5/7] Setting up inference provider
──────────────────────────────────────────────────
✓ Created provider nvidia-nim
Gateway inference configured:
Route: inference.local
Provider: nvidia-nim
Model: nvidia/nemotron-3-super-120b-a12b
Version: 1
✓ Inference route set: nvidia-nim / nvidia/nemotron-3-super-120b-a12b
[6/7] Setting up OpenClaw inside sandbox
──────────────────────────────────────────────────
✓ OpenClaw gateway launched inside sandbox
[7/7] Policy presets
──────────────────────────────────────────────────
Available policy presets:
○ discord — Discord API, gateway, and CDN access
○ docker — Docker Hub and NVIDIA container registry access
○ huggingface — Hugging Face Hub, LFS, and Inference API access
○ jira — Jira and Atlassian Cloud access
○ npm — npm and Yarn registry access (suggested)
○ outlook — Microsoft Outlook and Graph API access
○ pypi — Python Package Index (PyPI) access (suggested)
○ slack — Slack API and webhooks access
○ telegram — Telegram Bot API access
Apply suggested presets (pypi, npm)? [Y/n/list]: list
Enter preset names (comma-separated): jira
✓ Policy version 2 submitted (hash: d6ed064fd62f)
✓ Policy version 2 loaded (active version: 2)
Applied preset: jira
✓ Policies applied
──────────────────────────────────────────────────
Sandbox devrelbot (Landlock + seccomp + netns)
Model nvidia/nemotron-3-super-120b-a12b (NVIDIA Cloud API)
NIM not running
──────────────────────────────────────────────────
Run: nemoclaw devrelbot connect
Status: nemoclaw devrelbot status
Logs: nemoclaw devrelbot logs --follow
──────────────────────────────────────────────────
ubuntu@brev-a8qqtwtmt:~$ nemoclaw devrelbot policy-list
Policy presets for sandbox 'devrelbot':
○ discord — Discord API, gateway, and CDN access
○ docker — Docker Hub and NVIDIA container registry access
○ huggingface — Hugging Face Hub, LFS, and Inference API access
● jira — Jira and Atlassian Cloud access
○ npm — npm and Yarn registry access
○ outlook — Microsoft Outlook and Graph API access
○ pypi — Python Package Index (PyPI) access
○ slack — Slack API and webhooks access
○ telegram — Telegram Bot API access
ubuntu@brev-a8qqtwtmt:$ nemoclaw devrelbot connect$
sandbox@devrelbot:
`
Activity
syseeker commentedon Mar 17, 2026
hmm... sandbox is supposed to be killed when brev is stopped... is that right? Hence the above happened...hmm. I'd like to resurrect my sandbox everytime brev is started...
wscurran commentedon Apr 15, 2026
Thanks for the detailed report, @syseeker. This is fixed in two releases:
nemoclaw connectautomatically recovers the OpenClaw process if the gateway didn't come back up cleanly.Please upgrade and let us know if you still see transport errors after a stop/start cycle.