Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shenyaocan opened this issue Mar 31, 2025 · 2 comments
Open

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

shenyaocan opened this issue Mar 31, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@shenyaocan
Copy link

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):

@mamoodi mamoodi added the bug Something isn't working label Mar 31, 2025
@mamoodi
Copy link
Collaborator

mamoodi commented Mar 31, 2025

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?

@White-Friday
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants