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

[Bug]: Error while running Open Hands using Docker #157

Open
kevin-support-bot bot opened this issue Dec 30, 2024 · 2 comments
Open

[Bug]: Error while running Open Hands using Docker #157

kevin-support-bot bot opened this issue Dec 30, 2024 · 2 comments

Comments

@kevin-support-bot
Copy link

All-Hands-AI#5912 Issue


@aditya-choudhary599 Could you comment this line and check?

@aditya-choudhary599
Copy link

Now getting the following error :

(base) aditya-prashant-choudhary@aditya:~/Documents/IVC Ventures/Learnings/OpenHands$ make run
Running the app...
Starting backend server...
Waiting for the backend to start...
19:46:50 - openhands:INFO: openhands_config.py:45 - Using config class None
INFO: Started server process [9604]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:3000 (Press CTRL+C to quit)
Connection to localhost (127.0.0.1) 3000 port [tcp/*] succeeded!
Backend started successfully.
Starting frontend...

[email protected] dev
npm run make-i18n && cross-env VITE_MOCK_API=false react-router dev --port 3001 --host 127.0.0.1

[email protected] make-i18n
node scripts/make-i18n-translations.cjs

➜ Local: http://127.0.0.1:3001/
➜ press h + enter to show help
INFO: 127.0.0.1:42652 - "GET /api/options/config HTTP/1.1" 200 OK
INFO: 127.0.0.1:42660 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 127.0.0.1:42672 - "GET /api/options/config HTTP/1.1" 200 OK
19:47:49 - openhands:INFO: manager.py:346 - maybe_start_agent_loop:1c429b91f4e54d6c9e0758a51c7b9bd2
19:47:49 - openhands:INFO: manager.py:349 - start_agent_loop:1c429b91f4e54d6c9e0758a51c7b9bd2
19:47:49 - openhands:INFO: manager.py:363 - _get_event_stream:1c429b91f4e54d6c9e0758a51c7b9bd2
19:47:49 - openhands:INFO: manager.py:366 - found_local_agent_loop:1c429b91f4e54d6c9e0758a51c7b9bd2
INFO: 127.0.0.1:58160 - "POST /api/conversations HTTP/1.1" 200 OK
19:47:53 - openhands:INFO: eventstream_runtime.py:182 - [runtime 1c429b91f4e54d6c9e0758a51c7b9bd2] Starting runtime with image: ghcr.io/all-hands-ai/runtime:0.17-nikolaik
INFO: 127.0.0.1:36016 - "GET /api/options/config HTTP/1.1" 200 OK
INFO: ('127.0.0.1', 36018) - "WebSocket /socket.io/?latest_event_id=-1&conversation_id=1c429b91f4e54d6c9e0758a51c7b9bd2&EIO=4&transport=websocket" [accepted]
7:47:55 PM [vite] ws proxy socket error:
Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:216:20)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
INFO: ('127.0.0.1', 36024) - "WebSocket /socket.io/?latest_event_id=-1&conversation_id=1c429b91f4e54d6c9e0758a51c7b9bd2&EIO=4&transport=websocket" [accepted]
19:47:55 - openhands:INFO: listen_socket.py:28 - sio:connect: KZxCQ6Z1Y65njNVdAAAC
19:48:08 - openhands:INFO: eventstream_runtime.py:186 - [runtime 1c429b91f4e54d6c9e0758a51c7b9bd2] Container started: openhands-runtime-1c429b91f4e54d6c9e0758a51c7b9bd2. VSCode URL: None
19:48:08 - openhands:INFO: eventstream_runtime.py:194 - [runtime 1c429b91f4e54d6c9e0758a51c7b9bd2] Waiting for client to become ready at http://localhost:36087...
ERROR:asyncio:Future exception was never retrieved
future: <Future finished exception=ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')))>
Traceback (most recent call last):
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
httplib_response = super().getresponse()
^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/http/client.py", line 1428, in getresponse
response.begin()
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/http/client.py", line 292, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/socket.py", line 720, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 474, in increment
raise reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise
raise value.with_traceback(tb)
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
httplib_response = super().getresponse()
^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/http/client.py", line 1428, in getresponse
response.begin()
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/http/client.py", line 292, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/socket.py", line 720, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/Documents/IVC Ventures/Learnings/OpenHands/openhands/server/session/agent_session.py", line 103, in _start_thread
asyncio.run(self._start(*args), debug=True)
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/Documents/IVC Ventures/Learnings/OpenHands/openhands/server/session/agent_session.py", line 125, in _start
await self._create_runtime(
File "/home/aditya-prashant-choudhary/Documents/IVC Ventures/Learnings/OpenHands/openhands/server/session/agent_session.py", line 230, in _create_runtime
await self.runtime.connect()
File "/home/aditya-prashant-choudhary/Documents/IVC Ventures/Learnings/OpenHands/openhands/runtime/impl/eventstream/eventstream_runtime.py", line 197, in connect
await call_sync_from_async(self._wait_until_alive)
File "/home/aditya-prashant-choudhary/Documents/IVC Ventures/Learnings/OpenHands/openhands/utils/async_utils.py", line 18, in call_sync_from_async
result = await coro
^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/Documents/IVC Ventures/Learnings/OpenHands/openhands/utils/async_utils.py", line 17, in
coro = loop.run_in_executor(None, lambda: fn(*args, **kwargs))
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/tenacity/init.py", line 336, in wrapped_f
return copy(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/tenacity/init.py", line 475, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/tenacity/init.py", line 376, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/tenacity/init.py", line 418, in exc_check
raise retry_exc.reraise()
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/tenacity/init.py", line 185, in reraise
raise self.last_attempt.result()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/miniforge3/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/tenacity/init.py", line 478, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/Documents/IVC Ventures/Learnings/OpenHands/openhands/runtime/impl/eventstream/eventstream_runtime.py", line 380, in _wait_until_alive
with send_request(
^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/Documents/IVC Ventures/Learnings/OpenHands/openhands/runtime/utils/request.py", line 28, in send_request
response = session.request(method, url, timeout=timeout, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya-prashant-choudhary/.cache/pypoetry/virtualenvs/openhands-ai-pAJriUFt-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 682, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

@SmartManoj
Copy link
Owner

SmartManoj commented Dec 30, 2024

19:48:08 - openhands:INFO: eventstream_runtime.py:194 - [runtime 1c429b91f4e54d6c9e0758a51c7b9bd2] Waiting for client to become ready at http://localhost:36087...

Here http://localhost:36087 is not accessible.

Is there any error in the docker sandbox container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants