Skip to content

nemoclaw onboard fails with port 8080/18789 conflicts after prior run, even on “fresh” DGX Spark – poor UX around gateway / ssh‑proxy lifecycle #397

Closed

Description

@sayalinvidia

On a DGX Spark, running nemoclaw onboard a second time (or after a previous sandbox/gateway session) often fails due to port conflicts on 8080 and/or 18789, even though the user believes they have “exited the sandbox” and are starting fresh.

The core problem: OpenShell gateway and ssh‑proxy processes started by NemoClaw/OpenShell continue running on the Spark host, holding ports 8080 and 18789, but the CLI UX does not clearly relate these processes to the previous NemoClaw session or offer an easy cleanup path.

This leads to a confusing developer experience where users must manually inspect ports and kill processes on a supposedly “fresh” machine.

Image

Activity

  1. brianwtaylor commented on Mar 19, 2026

    @brianwtaylor
    Contributor

    i see what's going on..
    Workaround:

    openshell gateway destroy -g nemoclaw
    openshell forward stop 18789
    nemoclaw onboard

  2. brianwtaylor commented on Mar 19, 2026

    @brianwtaylor
    Contributor

    thought how to account for this with some other onboarding fixes. i added a check to determine whether or not there is a stale gateway and does that cleanup before the port preflight check.

  3. added a commit that references this issue on Mar 19, 2026
    3dafa3a
  4. sayalinvidia commented on Mar 19, 2026

    @sayalinvidia
    ContributorAuthor

    Does not look like this issue has been fixed entirely! Recommend adding a clean-up script: #399

    Image
  5. kjw3 commented on Mar 19, 2026

    @kjw3
    Contributor

    Follow-up from reviewing PR #399:

    I compared the proposed helper-script approach against current main, and I do not think the right next step is a separate cleanup script. main already appears to contain the product-level direction of fix for this issue in bin/lib/onboard.js, including stale-session cleanup before port checks and additional forward cleanup in the onboarding lifecycle.

    That means a script like nemoclaw_clean.sh is probably the wrong layer for solving what remains here. It is broad, requires sudo, and can kill unrelated listeners on ports 8080 and 18789.

    My current read is:

    If helpful, the next step would be to capture a fresh repro on current main and identify exactly which process or lifecycle path still leaks through.

  6. added a commit that references this issue on Mar 24, 2026
    5ee23f7
  7. added a commit that references this issue on Mar 24, 2026
    2013690
  8. added a commit that references this issue on Sep 9, 2026
    c488ddb
  9. added
    area: networking
    area: onboarding
    on Nov 13, 2026
  10. added theissue type on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: networkingarea: onboarding

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions