OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

(host='host.docker.internal', port=35373

Open shenyaocan opened this issue 9 months ago • 2 comments

07:45:05 - openhands:ERROR: session.py:149 - Error creating agent_session: HTTPConnectionPool(host='host.docker.internal', port=35373): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7a56e88c3500>: Failed to establish a new connection: [Errno 111] Connection refused')) Traceback (most recent call last):

shenyaocan avatar Mar 31 '25 07:03 shenyaocan

Hello. Could you provide a little bit more information on how you run into this error?

  • Are you running OpenHands locally?
  • What OS are you running?
  • What version are you running?
  • How are you running it?
  • Do you see this error as soon as you send in the first prompt?

mamoodi avatar Mar 31 '25 14:03 mamoodi

06:31:06 - openhands:INFO: docker_runtime.py:140 - [runtime 49c984843f124878987ad0d1eb340cad] Starting runtime with image: docker.all-hands.dev/all-hands-ai/runtime:0.30-nikolaik 06:31:07 - openhands:INFO: docker_runtime.py:144 - [runtime 49c984843f124878987ad0d1eb340cad] Container started: openhands-runtime-49c984843f124878987ad0d1eb340cad. VSCode URL: None 06:31:07 - openhands:INFO: docker_runtime.py:155 - [runtime 49c984843f124878987ad0d1eb340cad] Waiting for client to become ready at http://host.docker.internal:33859... 06:31:29 - openhands:INFO: agent_session.py:175 - Agent session start 06:31:29 - openhands:ERROR: session.py:163 - Error creating agent_session: RetryError[<Future at 0x7fe3c65ecbc0 state=finished raised RemoteProtocolError>] Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/app/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 103, in handle_request return self._connection.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/http11.py", line 136, in handle_request raise exc File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/http11.py", line 106, in handle_request ) = self._receive_response_headers(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/http11.py", line 177, in _receive_response_headers event = self._receive_event(timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/http11.py", line 231, in _receive_event raise RemoteProtocolError(msg) httpcore.RemoteProtocolError: Server disconnected without sending a response.

Startup command: docker run -it --rm -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.30-nikolaik -e LOG_ALL_EVENTS=true -v /var/run/docker.sock:/var/run/docker.sock -v ~/.openhands-state:/.openhands-state -p 3000:3000 --add-host host.docker.internal:host-gateway --name openhands-app docker.all-hands.dev/all-hands-ai/openhands:0.30

The server is an internal network and cannot access the internet. The current model is deployed through vllm.

White-Friday avatar Apr 01 '25 06:04 White-Friday

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar May 02 '25 02:05 github-actions[bot]

This issue was closed because it has been stalled for over 30 days with no activity.

github-actions[bot] avatar May 09 '25 02:05 github-actions[bot]