Skip to content

docs: Document WSL port-forwarding TCP drop fix for Next.js UI #90

Closed as not planned

Description

@GunaPalanivel

Problem

On WSL2, the kubectl port-forward command in kagent-feast-mcp/README.md Step 7 (line 170):

kubectl -n <YOUR_NAMESPACE> port-forward service/kagent-ui 8080:8080

randomly drops TCP connections when accessed from the Windows host browser, resulting in 504 Gateway Time-out errors and React chunk loading failures. This is because WSL2's default NAT bridging does not reliably forward traffic bound to 127.0.0.1 across the VM boundary.

Fix

The command needs --address=0.0.0.0 to bind to all interfaces:

# Before (README Step 7, line 170)
kubectl -n <YOUR_NAMESPACE> port-forward service/kagent-ui 8080:8080

# After
kubectl -n <YOUR_NAMESPACE> port-forward --address=0.0.0.0 service/kagent-ui 8080:8080

Additionally, add a note in the Prerequisites or Troubleshooting section:

### WSL2 users: port-forward drops connections

If the Kagent UI loads but becomes unresponsive or shows 504 errors,
add `--address=0.0.0.0` to the port-forward command. This is a known
WSL2 NAT bridging limitation.

File

  • kagent-feast-mcp/README.md:170 (Step 7) and Troubleshooting section

Context

Discovered during local Kagent PoC validation — #59 (comment)

Activity

  1. nameershah commented on Mar 15, 2026

    @nameershah

    Hi! I'm a GSoC 2026 applicant interested in the
    Agentic RAG project. I'd like to work on this
    documentation fix. Can I be assigned?

  2. chasecadet commented on Nov 20, 2026

    @chasecadet
    Contributor

    Thank you for reporting this!

    We are closing pre-restructure issues targeting the legacy server/, server-https/, manifests/, kagent-feast-mcp/, or in-process SentenceTransformer prototype code. In #207, #210, #233, #240, and #249, kubeflow/docs-agent migrated to dedicated TEI (text-embeddings-inference), FastMCP (docs-agent-mcp/mcp-server/), shared modular KFP pipelines (docs-agent-mcp/pipelines/), and Helm charts (docs-agent-mcp/charts/).

    If you still observe an equivalent issue on the current main stack, please feel free to open a new issue using the current issue templates.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions