Skip to content

host-mount reports "does not exist" for a directory that exists but is unreachable #9786

Closed

Description

@udsy19

Description

--host-mount validation reports host directory does not exist for every lstat/stat failure, because both failure paths in src/lib/state/registry/host-mount.ts use a bare catch {} that discards the error. A host directory that exists but sits under an unreadable ancestor is therefore reported as missing, and the operator is sent to look for a path that is already there instead of fixing the permission.

Two other functions in the same file, normalizePersistedSandboxHostMounts and verifyReadOnlyHostMountSources, already forward the underlying error, so the diagnostic is available and only this path drops it.

Reproduction Steps

  1. mkdir -p /tmp/hm/locked/share and chmod 000 /tmp/hm/locked.
  2. Run an onboard with --host-mount /tmp/hm/locked/share:/sandbox/host-share.
  3. It fails with host directory does not exist: /tmp/hm/locked/share, although chmod 755 /tmp/hm/locked shows the directory and its contents.

Driving parseReadOnlyHostMount against real temp directories gives a byte-identical detail for the permission-denied case and for a genuinely missing directory, and error.cause is undefined in both.

Environment

  • OS: macOS 26.5.1 (Darwin 25.5.0)
  • Node.js: v26.7.0
  • NemoClaw: v0.0.112

Activity

  1. added a commit that references this issue on Aug 21, 2026
    bf90e8c
  2. added
    area: observability
    area: sandbox
    on Nov 3, 2026
  3. added theissue type on Nov 3, 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: observabilityarea: sandbox

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions