OpenHands/agent-canvas

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

Closed

#899 aberto em 28 de mai. de 2026

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (26 forks)github user discovery
buggood first issue

Métricas do repositório

Stars
 (43 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Operating System

macOS

Installation Method

npm (npx @openhands/agent-canvas or npm install -g @openhands/agent-canvas)

Agent Canvas Version

1.0.0-alpha.7

Bug Description

Server says it started successfully even though it failed

Steps to Reproduce

  • start something on port 8000
  • run agent-canvas

Actual Behavior

Reports success

Expected Behavior

Either looks for a better port, or just fails

Relevant Logs

18:29:58 [ingress] Starting on port 8000...
18:29:58 [ingress] file:///Users/rbren/.npm-global/lib/node_modules/@openhands/agent-canvas/scripts/ingress.mjs:403
18:29:58 [ingress] throw err;
18:29:58 [ingress] ^
18:29:58 [ingress] Error: listen EADDRINUSE: address already in use :::8000
18:29:58 [ingress] at Server.setupListenHandle [as _listen2] (node:net:1912:16)
18:29:58 [ingress] at listenInCluster (node:net:1969:12)
18:29:58 [ingress] at Server.listen (node:net:2074:7)
18:29:58 [ingress] at startIngress (file:///Users/rbren/.npm-global/lib/node_modules/@openhands/agent-canvas/scripts/ingress.mjs:350:10)
18:29:58 [ingress] at file:///Users/rbren/.npm-global/lib/node_modules/@openhands/agent-canvas/scripts/ingress.mjs:393:1
18:29:58 [ingress] at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
18:29:58 [ingress] at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
18:29:58 [ingress] at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
18:29:58 [ingress] Emitted 'error' event on Server instance at:
18:29:58 [ingress] at emitErrorNT (node:net:1948:8)
18:29:58 [ingress] at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
18:29:58 [ingress] code: 'EADDRINUSE',
18:29:58 [ingress] errno: -48,
18:29:58 [ingress] syscall: 'listen',
18:29:58 [ingress] address: '::',
18:29:58 [ingress] port: 8000
18:29:58 [ingress] }
18:29:58 [ingress] Node.js v22.12.0
18:29:58 [ingress] Exited with code 7

╔══════════════════════════════════════════════════════════════╗
║  Agent Canvas + Automation Stack                            ║
╠══════════════════════════════════════════════════════════════╣
║                                                              ║
║  Main UI:      http://localhost:8000/              ║
║  API Docs:     http://localhost:8000/api/automation/docs║
║                                                              ║
╚══════════════════════════════════════════════════════════════╝

Screenshots

No response

Additional Context

No response

Guia do colaborador