-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Bug]: fail Waiting for client to become ready... #5968
Comments
I'm guessing you are running the main branch and running |
Docker command: docker run
-p 3000:3000
-v /var/run/docker.sock:/var/run/docker.sock
-v C:\repositories\extensions\youtube-time-manager\:/opt/workspace_base
-v ~/.openhands-state:/.openhands-state
--env DEBUG=1
--env LOG_ALL_EVENTS=true
--env SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:main-nikolaik
--env WORKSPACE_MOUNT_PATH=C:\repositories\extensions\youtube-time-manager
--name open-hands
--pull always
-t
-i
--add-host host.docker.internal:host-gateway
--rm
docker.all-hands.dev/all-hands-ai/openhands:main I think the Docker log is
|
@rbren any changes recently that would have changed this on main? |
Huh, when I returned to the OH instance a moment later I noticed that the agent did start executing commands; strange |
I think something changed on main that makes OH wait on "Waiting for client" for some time instead of the regular messages. Mine took 2-3 minutes. However, I think the original user may be running into something different as they get errors. |
In the original issue, the agent is getting cleaned up, even though there's clearly a websocket connection...not sure what is happening here |
this logic did change recently, so good chance there's a bug |
Oh no I was wrong, It seems like we just timed out while waiting for the container to come up. Maybe we need a little more grace there for slower machines? |
@chenglu66 it looks like you hit Ctrl+C about 15 seconds after things started up. Can you try waiting 2-3 minutes for the container to start up? it usually takes about 1 minute |
@rbren I pulled 0.18 and after prompting the agent, it hasn't initialized even after 10 minutes |
Sorry @avi12 your problem appears to be totally different from OP's. Seems like you're on windows--are you using WSL? |
@mamoodi yes, i just run main branch in my docker,my OS Windows 10, when i make run it show waitting,i try many times and wait sever mintues , it does not work, but when i bulid image and use this image in my docker it can work。 |
@rbren I'm not using WSL |
@avi12 we don't support running on windows without WSL. You might be able to make it work! But it's too error-prone for us to really offer support there |
@chenglu66 are you using WSL? or are you also running directly on windows? |
It practically works the same in my experience |
I am getting this issue currently - running from wsl with the 19 docker image. |
Is there an existing issue for the same bug?
Describe the bug and reproduction steps
when i use make docker and make bulid and make run , show Waiting for client to become ready..., and does not go on
OpenHands Installation
Docker command in README
OpenHands Version
No response
Operating System
None
Logs, Errors, Screenshots, and Additional Context
INFO: 172.18.0.1:38276 - "POST /api/conversations HTTP/1.1" 200 OK
INFO: ('172.18.0.1', 38284) - "WebSocket /socket.io/?latest_event_id=-1&conversation_id=a989d29db53f479db2eafaafb461c76d&EIO=4&transport=websocket" [accepted]
INFO: 172.18.0.1:38276 - "GET /api/options/config HTTP/1.1" 200 OK
07:31:30 - openhands:INFO: listen_socket.py:26 - sio:connect: 7r8dqN7ApDcuNCJuAAAF
07:31:30 - openhands:INFO: manager.py:209 - join_conversation:a989d29db53f479db2eafaafb461c76d:7r8dqN7ApDcuNCJuAAAF
07:31:30 - openhands:INFO: manager.py:364 - _get_event_stream:a989d29db53f479db2eafaafb461c76d
07:31:30 - openhands:INFO: manager.py:367 - found_local_agent_loop:a989d29db53f479db2eafaafb461c76d
07:31:31 - openhands:INFO: docker_runtime.py:133 - [runtime a989d29db53f479db2eafaafb461c76d] Starting runtime with image: ghcr.io/all-hands-ai/runtime:0.17-nikolaik
07:31:31 - openhands:INFO: docker_runtime.py:137 - [runtime a989d29db53f479db2eafaafb461c76d] Container started: openhands-runtime-a989d29db53f479db2eafaafb461c76d. VSCode URL:
None
07:31:31 - openhands:INFO: docker_runtime.py:145 - [runtime a989d29db53f479db2eafaafb461c76d] Waiting for client to become ready at http://localhost:35402...
INFO: 172.18.0.1:38298 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 172.18.0.1:38308 - "GET /api/options/config HTTP/1.1" 200 OK
07:31:45 - openhands:INFO: manager.py:434 - _cleanup_session:a989d29db53f479db2eafaafb461c76d
INFO: 172.18.0.1:53872 - "GET /api/options/config HTTP/1.1" 200 OK
INFO: 172.18.0.1:53874 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 172.18.0.1:53900 - "GET /api/options/config HTTP/1.1" 200 OK
INFO: 172.18.0.1:53890 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 172.18.0.1:42306 - "GET /api/options/config HTTP/1.1" 200 OK
INFO: 172.18.0.1:42298 - "GET /api/settings HTTP/1.1" 200 OK
^CINFO: Shutting down
07:32:06 - openhands:INFO: listen_socket.py:99 - sio:disconnect:7r8dqN7ApDcuNCJuAAAF
07:32:06 - openhands:INFO: manager.py:413 - disconnect_from_session:7r8dqN7ApDcuNCJuAAAF:a989d29db53f479db2eafaafb461c76d
07:32:06 - openhands:INFO: manager.py:458 - _close_session:a989d29db53f479db2eafaafb461c76d
07:32:06 - openhands:INFO: manager.py:466 - removing connections: []
07:32:06 - openhands:INFO: manager.py:475 - closing_session:a989d29db53f479db2eafaafb461c76d
INFO: Waiting for background tasks to complete. (CTRL+C to force quit)
07:32:08 - openhands:ERROR: session.py:116 - Error creating controller: HTTPConnectionPool(host='localhost', port=36361): Max retries exceeded with url: /alive (Caused by NewCon
nectionError('<urllib3.connection.HTTPConnection object at 0x7f8acde96930>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-9TtSrW0h-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 199, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-9TtSrW0h-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-9TtSrW0h-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
The text was updated successfully, but these errors were encountered: