Skip to content

sandbox create fails with "h2 protocol error: frame with invalid size" #389

@henry-1981

Description

@henry-1981

Environment

  • OpenShell CLI version: 0.0.6
  • Gateway container: ghcr.io/nvidia/openshell/cluster:0.0.6
  • Host OS: Ubuntu 24.04 LTS
  • Docker version: 29.3.0

Description

When attempting to create a sandbox using openshell sandbox create, the command fails with an HTTP/2 protocol error. The gateway container is running and healthy, but the CLI cannot communicate with it via gRPC.

Steps to Reproduce

  1. Install OpenShell CLI 0.0.6:

    curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh
  2. Start gateway:

    openshell gateway start --name test
  3. Verify gateway container is running:

    docker ps | grep openshell
    # Output: openshell-cluster-test running on port 8080
  4. Register gateway:

    openshell gateway add --name test http://localhost:8080
  5. Attempt to create sandbox:

    openshell sandbox create --name test-sandbox

Expected Behavior

Sandbox should be created successfully.

Actual Behavior

Command fails with the following error:

Error:   × status: Unknown, message: "h2 protocol error: http2 error", details: [],
  │ metadata: MetadataMap { headers: {} }
  ├─▶ transport error
  ├─▶ http2 error
  ╰─▶ connection error detected: frame with invalid size

Additional Context

  • The gateway container logs show Kubernetes cluster (k3s) is running successfully
  • curl http://localhost:8080 responds with "Received HTTP/0.9 when not allowed" (expected for gRPC endpoint)
  • Gateway health check shows as healthy
  • The CLI and gateway are the same version (0.0.6)

This appears to be a gRPC communication issue between the CLI and the gateway cluster, possibly related to HTTP/2 frame size negotiation.

Workaround

None found yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions