Skip to content

Fix port 8000 startup error#966

Open
NicoAgHerrera wants to merge 2 commits into
OpenHands:mainfrom
NicoAgHerrera:fix-port-8000-startup-error
Open

Fix port 8000 startup error#966
NicoAgHerrera wants to merge 2 commits into
OpenHands:mainfrom
NicoAgHerrera:fix-port-8000-startup-error

Conversation

@NicoAgHerrera
Copy link
Copy Markdown

  • A human has tested these changes.

Why

When port 8000 is already in use, the ingress process fails, but the dev launcher can still report that the Agent Canvas stack started successfully. This is confusing because the main UI is served through the ingress port.

Summary

  • Handle EADDRINUSE in scripts/ingress.mjs with a clear error message.
  • Start ingress before the heavier backend/frontend services in the automation dev stack.
  • Fail fast when the ingress port is unavailable instead of printing the success banner.

Issue Number

Fixes #899

How to Test

  1. Start a process on port 8000:

    python -m http.server 8000
  2. In another terminal, run:

    npm run dev
  3. Confirm the command fails fast with a clear ingress port error.

  4. Confirm it fails before starting agent-server, automation, or vite.

  5. Confirm it does not print the Main UI: http://localhost:8000/ success banner.

I also tested the normal ingress startup path:

node scripts/ingress.mjs --port 8000 --default http://localhost:3001

with port 8000 free, and confirmed ingress starts normally.

Video/Screenshots

Not included; this is a CLI startup/error-handling fix.

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Notes

Ingress is started first so port conflicts fail before spawning heavier backend/frontend services. ingress.mjs only binds the listening port and configures proxy routes, so it does not require target backends to be ready at startup.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

@NicoAgHerrera is attempting to deploy a commit to the openhands Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Command erroneously reports success when port 8000 is in use

1 participant