Skip to content

openshell sandbox forward list still pointing to 18789 for additional sandbox #2007

Closed

Description

@rishabh19sachan

Description

When creating a new sandbox using nemoclaw onboard with a custom NEMOCLAW_DASHBOARD_PORT, two forwards are created instead of one.

One forward correctly uses the custom port, but an additional unexpected forward is still created on the default port 18789.

Expected behavior is that only the user-defined dashboard port should be forwarded.

Actual Result
lenovo@demo1:~/rishabh$ openshell forward list

SANDBOX BIND PORT PID STATUS
ai 127.0.0.1 18789 3155162 running
ai 0.0.0.0 19003 3148937 running

SANDBOX BIND PORT PID STATUS
ai 0.0.0.0 19003 running

Reproduction Steps

1 Ensure NemoClaw is installed and operational.
2 Create a sandbox using a custom dashboard port:
NEMOCLAW_NON_INTERACTIVE=1
NEMOCLAW_PROVIDER=ollama
NEMOCLAW_MODEL=nemotron-3-nano:4b
NEMOCLAW_SANDBOX_NAME=ai
NEMOCLAW_DASHBOARD_PORT=19003
nemoclaw onboard
3 Run:
openshell forward list
4 Observe two forwards:
default port 18789
custom port 19003

Environment

  • NemoClaw Version: nemoclaw v0.0.18
  • OS: Ubuntu
  • Host: Lenovo ThinkStation P8
  • GPU: NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition
  • Driver Version: 580.65.06
  • CUDA Version: 13.0

Debug Output

[debug] Collecting diagnostics for sandbox 'airlock'...
[debug] Quick mode: true


═══ System ═══

Fri Apr 17 10:28:09 AM UTC 2026
Linux demo1 6.8.0-107-generic #107~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Mar 18 23:40:43 UTC  x86_64 x86_64 x86_64 GNU/Linux
 10:28:09 up 8 days,  5:06,  1 user,  load average: 0.20, 0.43, 0.58
               total        used        free      shared  buff/cache   available
Mem:          515118        9684      455489         296       49944      500781
Swap:           8191           0        8191

═══ Processes ═══

    PID    PPID CMD                         %MEM %CPU
2852689 2852403 k3s server                   0.1  5.3
2852726 2852689 containerd                   0.0  1.8
3154546 3154537 openclaw-gateway             0.0  1.0
3138918       1 /home/lenovo/.local/bin/ope  0.0  0.7
3145936 3145916 openclaw-gateway             0.0  0.7
3110845 3110804 openclaw-gateway             0.0  0.5
3102198 3102178 openclaw-gateway             0.0  0.4
2855757 2855519 /metrics-server --cert-dir=  0.0  0.3
2868573 2868553 openclaw-gateway             0.0  0.3
2945726 2945706 openclaw-gateway             0.0  0.3
3094547 2848777 /usr/local/bin/ollama runne  0.2  0.3
2855201 2854863 /coredns -conf /etc/coredns  0.0  0.2
2954193 2954184 openclaw-gateway             0.0  0.2
   1259       1 /usr/bin/containerd          0.0  0.1
   1417       1 /usr/bin/dockerd -H fd:// -  0.0  0.1
2848777       1 /usr/local/bin/ollama serve  0.0  0.1
2857905 2857826 openshell-server --port 808  0.0  0.1
2860757       1 /home/lenovo/.local/bin/ope  0.0  0.1
3145356 3145187 /opt/openshell/bin/openshel  0.0  0.1
      1       0 /sbin/init                   0.0  0.0
      2       0 [kthreadd]                   0.0  0.0
      3       2 [pool_workqueue_release]     0.0  0.0
      4       2 [kworker/R-rcu_g]            0.0  0.0
      5       2 [kworker/R-rcu_p]            0.0  0.0
      6       2 [kworker/R-slub_]            0.0  0.0
      7       2 [kworker/R-netns]            0.0  0.0
     10       2 [kworker/0:0H-events_highpr  0.0  0.0
     11       2 [kworker/u96:0-ext4-rsv-con  0.0  0.0
     12       2 [kworker/R-mm_pe]            0.0  0.0

═══ GPU ═══

Fri Apr 17 10:28:09 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.65.06              Driver Version: 580.65.06      CUDA Version: 13.0     |

Logs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

  1. added a commit that references this issue on Apr 19, 2026
    8d55eb7
  2. added
    platform: ubuntu
    and removed on Apr 20, 2026
  3. added a commit that references this issue on Apr 29, 2026
    356cf78
  4. prekshivyas commented on May 7, 2026

    @prekshivyas
    Collaborator

    Stale-issue verification — automated

    Reported on: v0.0.18
    Verified on: v0.0.35
    Verification mode: runtime reproduction on Brev n2d-highmem-2 (16 GB), Ollama with nemotron-3-nano:4b matching the reporter's environment. Reproducer extracted verbatim from the issue body.
    Outcome: not reproducible on latest — port 18789 does not exist on the v0.0.35 system at any layer after nemoclaw onboard NEMOCLAW_DASHBOARD_PORT=19003.

    Latest (v0.0.35) — verification table

    # Check "Buggy" would show What we observed
    1 openshell forward list Two rows: 18789 + 19003 (the issue's "Actual Result") One row: ai 127.0.0.1 19003 82483 running
    2 sudo ss -tlnp host listeners LISTEN on :18789 only 127.0.0.1:19003
    3 sudo iptables -t nat -L DNAT/REDIRECT on 18789 empty
    4 docker ps port mappings container → :18789 only gateway 0.0.0.0:8080->30051/tcp
    5 ps -ef | grep ssh.*-L tunnel -L ...:18789:... one tunnel only: -L 127.0.0.1:19003:127.0.0.1:19003

    Port 18789 is not bound, NAT-redirected, container-mapped, tunneled, or registered anywhere. Reproducer's expected behavior ("only the user-defined dashboard port should be forwarded") matches exactly.

    Baseline (v0.0.18)

    We could not re-trigger the original two-forward output ourselves: the v0.0.18 sandbox build dies at the .openclaw-data/workspace/media symlink step (a layer that #2227 removed entirely; the v0.0.18 Dockerfile no longer survives a modern Docker setup). The reporter's openshell forward list snippet in the issue body is therefore the only evidence of the original symptom.

    Likely fix

    PR #2411 ("feat(onboard): auto-allocate dashboard port for multi-sandbox", merged 2026-04-28, shipped v0.0.29) reworked dashboard-port allocation in src/lib/onboard.ts — single deterministic port per sandbox, explicit NEMOCLAW_DASHBOARD_PORT precedence. The PR's stated scope is the multi-sandbox conflict case (#2174), so attribution for this exact symptom is plausible but not unambiguously stated. The runtime evidence above carries the verdict, not the PR attribution.

    Verdict

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

    +50 latest clean across five layers; +25 commits-touched-area; +25 PR-mention. Capped at 84 because the baseline-validation gate didn't run (Dockerfile rot, not the bug under test).

    @rishabh19sachan — please confirm the symptom is gone on a recent build and reopen with a fresh reproducer if you observe otherwise.

  5. added
    fixed-on-latest
    on May 7, 2026
  6. self-assigned this
    on May 7, 2026
  7. jyaunches commented on May 8, 2026

    @jyaunches
    Contributor

    Closing as fixed on latest.

    This was included in the Brev/NV QA issue audit after the launch of the prebuilt brevdev/nemoclaw-image flow. The issue is already labelled fixed-on-latest, and the latest verification shows the reported behavior is no longer reproducible / now matches the expected behavior. No further action is needed for the current Brev launchable path.

  8. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

fixed-on-latestplatform: ubuntu

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions