Wsl Ubuntu error: Agent server started but is not accepting connections

Open
#1,929 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
typescript
Domain
cli

Research direction

Start by reproducing agentcore dev from WSL Ubuntu on Windows, using the reported CLI version 0.26.0 and checking the startup behavior across repeated launches. No source file or test is named; done means the dev server accepts connections on the first attempt and the relevant logs are populated when startup fails.

Written by the indexing model from the issue text.

Description

bug
Description

Hello,

I am trying to run agentcore dev in a wsl Ubuntu on Windows and 8/10 times I get the following error:

Image

The only way to avoid this and actually run the dev UI properly is to keep stopping and starting agentcore dev again until it starts working.

Steps to Reproduce
  1. run wsl -d Ubuntu
  2. run agentcore dev
  3. Wait until you get the error
  4. Keep relauching the dev server until the server starts normally
Expected Behavior

I expect the dev server to start on the first try

Actual Behavior

The server only starts after relauching it and getting the error a number of times, and the number is always different, which suggest it's a random one.

CLI Version

0.26.0

Operating System

Windows

Additional Context

The cli is run is Ubuntu wsl. The log files are not populated when the error occurs.

Dominant language
TypeScript
Stars
339
Forks
129
Avg merge
19h 21m
Merged PRs (30d)
125

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/agentcore-cli

All issues in aws/agentcore-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.