[Bug]: Error creating agent_session
Is there an existing issue for the same bug?
- [x] I have checked the existing issues.
Describe the bug and reproduction steps
Openai o3-mini gives an agent_session creation error when creating a new project. I get this error on Windows 11.
OpenHands Installation
Docker command in README
OpenHands Version
No response
Operating System
WSL on Windows
Logs, Errors, Screenshots, and Additional Context
16:23:49 - openhands:INFO: manage_conversations.py:151 - Initializing new conversation 16:23:49 - openhands:INFO: manage_conversations.py:59 - Creating conversation 16:23:49 - openhands:INFO: manage_conversations.py:63 - Loading settings 16:23:49 - openhands:INFO: manage_conversations.py:66 - Settings loaded 16:23:49 - openhands:INFO: manage_conversations.py:90 - Loading conversation store 16:23:49 - openhands:INFO: manage_conversations.py:92 - Conversation store loaded 16:23:49 - openhands:INFO: manage_conversations.py:98 - New conversation ID: 40f4d9b9b06142709ea62ae538c2696c 16:23:49 - openhands:INFO: manage_conversations.py:105 - Saving metadata for conversation 40f4d9b9b06142709ea62ae538c2696c 16:23:49 - openhands:INFO: manage_conversations.py:117 - Starting agent loop for conversation 40f4d9b9b06142709ea62ae538c2696c 16:23:49 - openhands:INFO: standalone_conversation_manager.py:258 - maybe_start_agent_loop:40f4d9b9b06142709ea62ae538c2696c 16:23:49 - openhands:INFO: standalone_conversation_manager.py:261 - start_agent_loop:40f4d9b9b06142709ea62ae538c2696c 16:23:49 - openhands:INFO: standalone_conversation_manager.py:315 - _get_event_stream:40f4d9b9b06142709ea62ae538c2696c 16:23:49 - openhands:INFO: standalone_conversation_manager.py:318 - found_local_agent_loop:40f4d9b9b06142709ea62ae538c2696c 16:23:49 - openhands:INFO: manage_conversations.py:139 - Finished initializing conversation 40f4d9b9b06142709ea62ae538c2696c 16:23:49 - openhands:INFO: session.py:134 - Enabling default condenser: type='llm' llm_config=LLMConfig(model='openai/o3-mini-2025-01-31', api_key=''(''), base_url=None, api_version=None, aws_access_key_id='', aws_secret_access_key='****', aws_region_name=None, openrouter_site_url='https://docs.all-hands.dev/', openrouter_app_name='OpenHands', num_retries=4, retry_multiplier=2, retry_min_wait=5, retry_max_wait=30, timeout=None, max_message_chars=30000, temperature=0.0, top_p=1.0, custom_llm_provider=None, max_input_tokens=200000, max_output_tokens=100000, input_cost_per_token=None, output_cost_per_token=None, ollama_base_url=None, drop_params=True, modify_params=True, disable_vision=None, caching_prompt=True, log_completions=False, log_completions_folder='/app/logs/completions', custom_tokenizer=None, native_tool_calling=None, reasoning_effort='high', seed=None) keep_first=3 max_size=40 INFO: 172.17.0.1:42654 - "POST /api/conversations HTTP/1.1" 200 OK INFO: ('172.17.0.1', 42670) - "WebSocket /socket.io/?latest_event_id=-1&conversation_id=40f4d9b9b06142709ea62ae538c2696c&EIO=4&transport=websocket" [accepted] INFO: 172.17.0.1:42654 - "GET /api/conversations/40f4d9b9b06142709ea62ae538c2696c HTTP/1.1" 200 OK 16:23:50 - openhands:INFO: listen_socket.py:32 - sio:connect: 4PFC87IYwYp6f4LbAAAB 16:23:50 - openhands:INFO: standalone_conversation_manager.py:119 - join_conversation:40f4d9b9b06142709ea62ae538c2696c:4PFC87IYwYp6f4LbAAAB 16:23:50 - openhands:INFO: standalone_conversation_manager.py:258 - maybe_start_agent_loop:40f4d9b9b06142709ea62ae538c2696c 16:23:50 - openhands:INFO: standalone_conversation_manager.py:315 - _get_event_stream:40f4d9b9b06142709ea62ae538c2696c 16:23:50 - openhands:INFO: standalone_conversation_manager.py:318 - found_local_agent_loop:40f4d9b9b06142709ea62ae538c2696c 16:23:50 - openhands:INFO: listen_socket.py:57 - Connected to conversation 40f4d9b9b06142709ea62ae538c2696c with connection_id 4PFC87IYwYp6f4LbAAAB. Replaying event stream... 16:23:50 - openhands:INFO: listen_socket.py:65 - oh_event: AgentStateChangedObservation 16:23:50 - openhands:INFO: listen_socket.py:77 - Finished replaying event stream for conversation 40f4d9b9b06142709ea62ae538c2696c 16:23:51 - openhands:INFO: docker_runtime.py:140 - [runtime 40f4d9b9b06142709ea62ae538c2696c] Starting runtime with image: docker.all-hands.dev/all-hands-ai/runtime:0.30-nikolaik 16:23:51 - openhands:INFO: docker_runtime.py:144 - [runtime 40f4d9b9b06142709ea62ae538c2696c] Container started: openhands-runtime-40f4d9b9b06142709ea62ae538c2696c. VSCode URL: None 16:23:51 - openhands:INFO: docker_runtime.py:155 - [runtime 40f4d9b9b06142709ea62ae538c2696c] Waiting for client to become ready at http://host.docker.internal:30924... 16:24:13 - openhands:INFO: agent_session.py:175 - Agent session start 16:24:13 - openhands:ERROR: session.py:163 - Error creating agent_session: RetryError[<Future at 0x7f5ec2cbe450 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.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 478, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/app/openhands/runtime/impl/action_execution/action_execution_client.py", line 123, in check_if_alive
response = self._send_action_server_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/openhands/runtime/impl/action_execution/action_execution_client.py", line 115, in _send_action_server_request
return send_request(self.session, method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 336, in wrapped_f
return copy(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 475, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 376, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 398, in
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/openhands/server/session/session.py", line 148, in initialize_agent
await self.agent_session.start(
File "/app/openhands/server/session/agent_session.py", line 117, in start
runtime_connected = await self._create_runtime(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/openhands/server/session/agent_session.py", line 316, in _create_runtime
await self.runtime.connect()
File "/app/openhands/runtime/impl/docker/docker_runtime.py", line 158, in connect
await call_sync_from_async(self._wait_until_alive)
File "/app/openhands/utils/async_utils.py", line 18, in call_sync_from_async
result = await coro
^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/openhands/utils/async_utils.py", line 17, in
I've faced this issue sometimes as well; could you delete all your docker containers and see if that helps?
I've faced this issue sometimes as well; could you delete all your docker containers and see if that helps?
I have tried this before but I keep getting the same problem every time
I am also having this issue. I tried clearing all containers and still having the issue. It seems to have started at 0.30 version. I tried 0.30.1 and 0.30 and had the same problem. I just switched to 0.29 and it's working.
@amirshawn thanks for stating that which is tied to https://github.com/All-Hands-AI/OpenHands/issues/7618 and https://github.com/All-Hands-AI/OpenHands/issues/7609
My own logs
0.30.1-nikolaik: Pulling from all-hands-ai/runtime Digest: sha256:324ae76897ab2db950868f9736cf29c05b49106f329e377153de447d5c727679 Status: Image is up to date for docker.all-hands.dev/all-hands-ai/runtime:0.30.1-nikolaik docker.all-hands.dev/all-hands-ai/runtime:0.30.1-nikolaik 0.30.1: Pulling from all-hands-ai/openhands Digest: sha256:0cc12c121a1d9a6dfcad032ee8d011149f7e0eb1700087c0e43bb1a6e07970f9 Status: Image is up to date for docker.all-hands.dev/all-hands-ai/openhands:0.30.1 Starting OpenHands... Running OpenHands as root 01:26:35 - openhands:INFO: server_config.py:44 - Using config class None INFO: Started server process [11] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:3000 (Press CTRL+C to quit) INFO: 172.17.0.1:56448 - "GET / HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/manifest-28fa3805.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/entry.client-baS2dHkW.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/chunk-K6CSEXPM-oxKRe8gl.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/open-hands-axios-DJ8v_vUO.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/root-DoDjf41K.css HTTP/1.1" 200 OK INFO: 172.17.0.1:56476 - "GET /assets/react-redux-C2e_S6_C.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /assets/auth-context-BQNER9Ml.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56482 - "GET /assets/index-BH-AKPIL.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/store-uxFJjS-M.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56492 - "GET /assets/infiniteQueryBehavior-DR0-8w2l.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56482 - "GET /assets/preload-helper-D7HrI6pR.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56476 - "GET /assets/custom-toast-handlers-cDS5rgTq.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56492 - "GET /assets/retrieve-axios-error-message-DzCYxLiS.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/use-config-zTOhXhTq.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/i18nInstance-DBIXdvxg.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /assets/initial-query-slice-8lBoyk1A.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56476 - "GET /assets/open-hands-DbzIlbOv.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56482 - "GET /assets/browser-slice-BIYQQhqe.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/agent-state-u5yf9HVO.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56492 - "GET /assets/index-DC282svN.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/root-D7rPf6kQ.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /assets/with-props-DamRiGtk.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /locales/en/translation.json HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /assets/route-CmvVo_6X.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/route-C-Iatb5-.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56492 - "GET /api/options/config HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/github-logo-bsQcyAbu.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56476 - "GET /assets/use-update-conversation-Bp4NFt9E.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56482 - "GET /assets/loading-spinner-TdLK6Z4v.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /assets/index-hnTXU6Fs.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56492 - "GET /assets/declaration-BpHGJFbe.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/utils-CxYO92y6.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/settings-B3x7XLZI.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /assets/handle-capture-consent-C6LCHAAJ.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56482 - "GET /assets/brand-button-BPdBrWWT.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/settings-input-CrDfKQWc.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56476 - "GET /assets/use-settings-DQBXwXuF.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56492 - "GET /assets/chunk-DNIGSRME-Cauy_YnL.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/use-balance-KRR-nHMC.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56482 - "GET /assets/chunk-KCYYJJH4-BzfkA0Ij.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /assets/iconBase-Bbn4WkD5.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/chunk-Z3BOY3TE-C0kpkBJ9.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56476 - "GET /assets/upload-image-input-CY1GOjNW.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/arrow-send-PCt0yLI3.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56492 - "GET /assets/objectWithoutPropertiesLoose-Cv5OCJ0e.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /api/settings HTTP/1.1" 200 OK 01:26:58 - openhands:INFO: manage_conversations.py:151 - Initializing new conversation 01:26:58 - openhands:INFO: manage_conversations.py:59 - Creating conversation 01:26:58 - openhands:INFO: manage_conversations.py:63 - Loading settings 01:26:58 - openhands:INFO: manage_conversations.py:66 - Settings loaded 01:26:58 - openhands:INFO: manage_conversations.py:90 - Loading conversation store 01:26:58 - openhands:INFO: manage_conversations.py:92 - Conversation store loaded 01:26:58 - openhands:INFO: manage_conversations.py:98 - New conversation ID: 0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: manage_conversations.py:105 - Saving metadata for conversation 0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: manage_conversations.py:117 - Starting agent loop for conversation 0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: standalone_conversation_manager.py:258 - maybe_start_agent_loop:0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: standalone_conversation_manager.py:261 - start_agent_loop:0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: standalone_conversation_manager.py:315 - _get_event_stream:0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: standalone_conversation_manager.py:318 - found_local_agent_loop:0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: manage_conversations.py:139 - Finished initializing conversation 0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: session.py:134 - Enabling default condenser: type='llm' llm_config=LLMConfig(model='openrouter/deepseek/deepseek-chat', api_key='******'('**********'), base_url='', api_version=None, aws_access_key_id='******', aws_secret_access_key='******', aws_region_name=None, openrouter_site_url='https://docs.all-hands.dev/', openrouter_app_name='OpenHands', num_retries=4, retry_multiplier=2, retry_min_wait=5, retry_max_wait=30, timeout=None, max_message_chars=30000, temperature=0.0, top_p=1.0, custom_llm_provider=None, max_input_tokens=65536, max_output_tokens=8192, input_cost_per_token=None, output_cost_per_token=None, ollama_base_url=None, drop_params=True, modify_params=True, disable_vision=None, caching_prompt=True, log_completions=False, log_completions_folder='/app/logs/completions', custom_tokenizer=None, native_tool_calling=None, reasoning_effort='high', seed=None) keep_first=3 max_size=40 INFO: 172.17.0.1:56464 - "POST /api/conversations HTTP/1.1" 200 OK INFO: 172.17.0.1:56476 - "GET /assets/route-B0kM-DmP.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/route-Bix9IxRk.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56482 - "GET /assets/route-DzXtx4NH.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/index-Doh2iZ8q.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/toast-CXKXdruF.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56492 - "GET /assets/highlight-KMYiX_gp.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56476 - "GET /assets/conversation-context-DRXil9PV.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /assets/scroll-to-bottom-button-C3TMj-bP.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56448 - "GET /assets/use-active-host-BqrL9WSQ.js HTTP/1.1" 200 OK INFO: 172.17.0.1:56464 - "GET /assets/terminal-CSXrohYj.js HTTP/1.1" 200 OK INFO: ('172.17.0.1', 51036) - "WebSocket /socket.io/?latest_event_id=-1&conversation_id=0cce2c3d27404dcf9740b5a6b174103d&EIO=4&transport=websocket" [accepted] 01:26:58 - openhands:INFO: listen_socket.py:32 - sio:connect: FIOnDvGB2JrDy1_BAAAB INFO: 172.17.0.1:56448 - "GET /assets/terminal-CFbL2ovg.css HTTP/1.1" 200 OK INFO: 172.17.0.1:56466 - "GET /api/conversations/0cce2c3d27404dcf9740b5a6b174103d HTTP/1.1" 200 OK 01:26:58 - openhands:INFO: standalone_conversation_manager.py:119 - join_conversation:0cce2c3d27404dcf9740b5a6b174103d:FIOnDvGB2JrDy1_BAAAB 01:26:58 - openhands:INFO: standalone_conversation_manager.py:258 - maybe_start_agent_loop:0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: standalone_conversation_manager.py:315 - _get_event_stream:0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: standalone_conversation_manager.py:318 - found_local_agent_loop:0cce2c3d27404dcf9740b5a6b174103d 01:26:58 - openhands:INFO: listen_socket.py:57 - Connected to conversation 0cce2c3d27404dcf9740b5a6b174103d with connection_id FIOnDvGB2JrDy1_BAAAB. Replaying event stream... 01:26:58 - openhands:INFO: listen_socket.py:65 - oh_event: AgentStateChangedObservation 01:26:58 - openhands:INFO: listen_socket.py:77 - Finished replaying event stream for conversation 0cce2c3d27404dcf9740b5a6b174103d 01:26:59 - openhands:INFO: docker_runtime.py:140 - [runtime 0cce2c3d27404dcf9740b5a6b174103d] Starting runtime with image: docker.all-hands.dev/all-hands-ai/runtime:0.30.1-nikolaik 01:27:00 - openhands:INFO: docker_runtime.py:144 - [runtime 0cce2c3d27404dcf9740b5a6b174103d] Container started: openhands-runtime-0cce2c3d27404dcf9740b5a6b174103d. VSCode URL: None 01:27:00 - openhands:INFO: docker_runtime.py:155 - [runtime 0cce2c3d27404dcf9740b5a6b174103d] Waiting for client to become ready at http://host.docker.internal:39779... 01:27:22 - openhands:INFO: agent_session.py:175 - Agent session start 01:27:22 - openhands:ERROR: session.py:163 - Error creating agent_session: RetryError[The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 478, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/app/openhands/runtime/impl/action_execution/action_execution_client.py", line 123, in check_if_alive
response = self._send_action_server_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/openhands/runtime/impl/action_execution/action_execution_client.py", line 115, in _send_action_server_request
return send_request(self.session, method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 336, in wrapped_f
return copy(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 475, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 376, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/tenacity/init.py", line 398, in
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/openhands/server/session/session.py", line 148, in initialize_agent
await self.agent_session.start(
File "/app/openhands/server/session/agent_session.py", line 117, in start
runtime_connected = await self._create_runtime(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/openhands/server/session/agent_session.py", line 316, in _create_runtime
await self.runtime.connect()
File "/app/openhands/runtime/impl/docker/docker_runtime.py", line 158, in connect
await call_sync_from_async(self._wait_until_alive)
File "/app/openhands/utils/async_utils.py", line 18, in call_sync_from_async
result = await coro
^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/openhands/utils/async_utils.py", line 17, in
I have tried with 0.30, .29 still getting same error. Is this bug still exits?
Yep, getting this. Ubuntu 24.10 in my case, OpenHands 0.33
Also, this issue is the same thing https://github.com/All-Hands-AI/OpenHands/issues/6645
Is this happening with a specific LLM?
I am trying to build on windows machine without WSL, TMUX and Docker on local machine. It has not reached till llm yet.
@chandrabhankushwaha Running on Windows requires WSL currently.
If you want, take a look at this PR which is working to make it run without WSL:
- https://github.com/All-Hands-AI/OpenHands/pull/7410
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.
I still have this... even with latest..., evenwith wsl (now trying around wsl)
The suggestion of: @enyst works: https://github.com/All-Hands-AI/OpenHands/pull/7410
Set docker up around this: docker run -it --rm -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock --add-host host.docker.internal:host-gateway -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:535c6c3-nikolaik --name openhands-app-535c6c3 docker.all-hands.dev/all-hands-ai/openhands:535c6c3
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.
@rjboer I wonder why that works tho cus that relies on some cutting edge version?
I am also facing the same issue. I DID recently switch WSL2 from 'mirrored' network mode to 'NAT' mode if that makes any difference.
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.
This issue was automatically closed due to 50 days of inactivity. We do this to help keep the issues somewhat manageable and focus on active issues.