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]: requests.exceptions.ConnectionError: #73

Open
kevin-support-bot bot opened this issue Oct 24, 2024 · 6 comments
Open

[Bug]: requests.exceptions.ConnectionError: #73

kevin-support-bot bot opened this issue Oct 24, 2024 · 6 comments

Comments

@kevin-support-bot
Copy link

All-Hands-AI#4539 Issue


@faizanjaved5 Could you provide the docker container logs?

@faizanjaved5
Copy link

 Starting OpenHands...
Running OpenHands as root
INFO:     Started server process [10]
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:41866 - "GET / HTTP/1.1" 200 OK
INFO:     172.17.0.1:41866 - "GET /assets/root-cPaEpirG.css HTTP/1.1" 200 OK
INFO:     172.17.0.1:41880 - "GET /assets/manifest-22a1c86e.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41892 - "GET /assets/entry.client-CCinTn7k.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41906 - "GET /assets/jsx-runtime-zhgTtAea.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41910 - "GET /assets/components-ZVX3qFit.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41916 - "GET /assets/react-redux-DzUTqGNF.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41892 - "GET /assets/socket-DXXsARn_.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41866 - "GET /assets/index-Bv3ft2Ye.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41906 - "GET /assets/store-DX3vzXW_.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41916 - "GET /assets/get-valid-fallback-host-DQslrtgB.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41892 - "GET /assets/router-uhWJlF1-.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41880 - "GET /assets/i18nInstance-DCxlOlkw.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41906 - "GET /assets/codeSlice-CzZ65Kfc.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41910 - "GET /assets/index-BgBamcox.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41916 - "GET /assets/root-BNMtx1em.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41866 - "GET /locales/en-US/translation.json HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:41880 - "GET /locales/en/translation.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:41880 - "GET /assets/_oh-EnGWv70N.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41866 - "GET /assets/route-DlriTqeJ.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41916 - "GET /favicon.ico HTTP/1.1" 200 OK
INFO:     172.17.0.1:41910 - "GET /assets/chunk-S52A3BK5-Btl5G0WF.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41892 - "GET /assets/utils-2W_yQVif.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41916 - "GET /assets/open-hands-CCfsDdfP.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41880 - "GET /assets/modal-backdrop-DSnARrZE.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41906 - "GET /assets/context-menu-list-item-Bq4dHo2M.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41866 - "GET /assets/responses-DnsOquJf.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41910 - "GET /assets/settings-Df4RaXEB.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41906 - "GET /assets/connect-to-github-modal-CDjZRSFy.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:41892 - "GET /config.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:41880 - "GET /api/options/agents HTTP/1.1" 200 OK
INFO:     172.17.0.1:41892 - "GET /api/options/models HTTP/1.1" 200 OK
INFO:     172.17.0.1:41906 - "GET /api/options/security-analyzers HTTP/1.1" 200 OK
INFO:     172.17.0.1:34546 - "GET /assets/settings-DWxzqZ8T.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:38566 - "GET /assets/_oh.app-D-w-gvI_.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38574 - "GET /assets/route-xsVt92iV.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38582 - "GET /config.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:38582 - "GET /assets/declaration-DdUOQw3g.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38566 - "GET /assets/_oh.app-RvmnuX6d.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38590 - "GET /assets/useScrollToBottom-DATD-f7b.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38606 - "GET /assets/index-wBZoZNP4.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38612 - "GET /assets/index-CMml25xW.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38574 - "GET /assets/clear-session-Bbh6tTiy.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38582 - "GET /assets/index-C4MRHScb.js HTTP/1.1" 200 OK
INFO:     172.17.0.1:38590 - "GET /assets/Terminal-CGrrDQr5.css HTTP/1.1" 200 OK
INFO:     172.17.0.1:38566 - "GET /assets/Terminal-Bmvu4ycZ.js HTTP/1.1" 200 OK
INFO:     ('172.17.0.1', 38624) - "WebSocket /ws" [accepted]
INFO:     connection open
INFO:     172.17.0.1:38582 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 06:19:11,705 - INFO - Initializing runtime `eventstream` now...
2024-10-24 06:19:16,009 - INFO - Preparing to start container...
2024-10-24 06:19:27,686 - INFO - Container started. Server url: http://host.docker.internal:34639
2024-10-24 06:19:27,687 - INFO - It is not recommended to cache draft editor LLM prompts as it may incur high costs for the same prompt. Automatically setting caching_prompt=false.
2024-10-24 06:19:27,687 - INFO - [Draft edit functionality] enabled with LLM: LLM(model=openai/gpt-4o)
2024-10-24 06:19:27,688 - INFO - Waiting for client to become ready...
2024-10-24 06:21:28,517 - INFO -
-----------------------------------Container logs:-----------------------------------
    |2024-10-24 06:21:14,538 - INFO - Runtime client initialized.
    |2024-10-24 06:21:14,539 - INFO - Starting action execution API on port 34639
    |INFO:     Started server process [8]
    |INFO:     Waiting for application startup.
    |2024-10-24 06:21:15,278 - INFO - Client working directory: /workspace
    |2024-10-24 06:21:17,123 - INFO - Starting browser env...
--------------------------------------------------------------------------------
2024-10-24 06:21:28,554 - ERROR - Runtime initialization failed: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Traceback (most recent call last):
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
    response = conn.getresponse()
               ^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
    httplib_response = super().getresponse()
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
    response.begin()
  File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/.venv/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/util/retry.py", line 474, in increment
    raise reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise
    raise value.with_traceback(tb)
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
    response = conn.getresponse()
               ^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
    httplib_response = super().getresponse()
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
    response.begin()
  File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/openhands/server/session/agent_session.py", line 182, in _create_runtime
    self.runtime = runtime_cls(
                   ^^^^^^^^^^^^
  File "/app/openhands/runtime/client/runtime.py", line 215, in __init__
    self._wait_until_alive()
  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 418, in exc_check
    raise retry_exc.reraise()
          ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 185, in reraise
    raise self.last_attempt.result()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/client/runtime.py", line 377, in _wait_until_alive
    response = send_request_with_retry(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/utils/request.py", line 85, in send_request_with_retry
    return _send_request_with_retry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  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 <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/utils/request.py", line 81, in _send_request_with_retry
    response = session.request(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/requests/adapters.py", line 682, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
ERROR:asyncio:Future exception was never retrieved
future: <Future finished exception=ConnectionError(ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))>
Traceback (most recent call last):
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
    response = conn.getresponse()
               ^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
    httplib_response = super().getresponse()
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
    response.begin()
  File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/.venv/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/util/retry.py", line 474, in increment
    raise reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise
    raise value.with_traceback(tb)
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
    response = conn.getresponse()
               ^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
    httplib_response = super().getresponse()
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
    response.begin()
  File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/server/session/agent_session.py", line 89, in _start_thread
    asyncio.run(self._start(*args), debug=True)
  File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/app/openhands/server/session/agent_session.py", line 106, in _start
    await call_sync_from_async(
  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 <lambda>
    coro = loop.run_in_executor(None, lambda: fn(*args, **kwargs))
                                              ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/server/session/agent_session.py", line 182, in _create_runtime
    self.runtime = runtime_cls(
                   ^^^^^^^^^^^^
  File "/app/openhands/runtime/client/runtime.py", line 215, in __init__
    self._wait_until_alive()
  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 418, in exc_check
    raise retry_exc.reraise()
          ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 185, in reraise
    raise self.last_attempt.result()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/client/runtime.py", line 377, in _wait_until_alive
    response = send_request_with_retry(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/utils/request.py", line 85, in send_request_with_retry
    return _send_request_with_retry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  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 <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/utils/request.py", line 81, in _send_request_with_retry
    response = session.request(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/requests/adapters.py", line 682, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

@SmartManoj
Copy link
Owner

SmartManoj commented Oct 24, 2024

Could you provide the logs from the container in the Docker Desktop?

@faizanjaved5
Copy link

@SmartManoj i have shared it above sharing it again here

2024-10-24 11:14:01  Starting OpenHands...
2024-10-24 11:14:01 Running OpenHands as root
2024-10-24 11:18:01 INFO:     Started server process [10]
2024-10-24 11:18:01 INFO:     Waiting for application startup.
2024-10-24 11:18:01 INFO:     Application startup complete.
2024-10-24 11:18:01 INFO:     Uvicorn running on http://0.0.0.0:3000 (Press CTRL+C to quit)
2024-10-24 11:18:15 INFO:     172.17.0.1:41866 - "GET / HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41866 - "GET /assets/root-cPaEpirG.css HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41880 - "GET /assets/manifest-22a1c86e.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41892 - "GET /assets/entry.client-CCinTn7k.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41906 - "GET /assets/jsx-runtime-zhgTtAea.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41910 - "GET /assets/components-ZVX3qFit.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41916 - "GET /assets/react-redux-DzUTqGNF.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41892 - "GET /assets/socket-DXXsARn_.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41866 - "GET /assets/index-Bv3ft2Ye.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41906 - "GET /assets/store-DX3vzXW_.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41916 - "GET /assets/get-valid-fallback-host-DQslrtgB.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41892 - "GET /assets/router-uhWJlF1-.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41880 - "GET /assets/i18nInstance-DCxlOlkw.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41906 - "GET /assets/codeSlice-CzZ65Kfc.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41910 - "GET /assets/index-BgBamcox.js HTTP/1.1" 200 OK
2024-10-24 11:18:15 INFO:     172.17.0.1:41916 - "GET /assets/root-BNMtx1em.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41866 - "GET /locales/en-US/translation.json HTTP/1.1" 404 Not Found
2024-10-24 11:18:16 INFO:     172.17.0.1:41880 - "GET /locales/en/translation.json HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41880 - "GET /assets/_oh-EnGWv70N.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41866 - "GET /assets/route-DlriTqeJ.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41916 - "GET /favicon.ico HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41910 - "GET /assets/chunk-S52A3BK5-Btl5G0WF.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41892 - "GET /assets/utils-2W_yQVif.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41916 - "GET /assets/open-hands-CCfsDdfP.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41880 - "GET /assets/modal-backdrop-DSnARrZE.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41906 - "GET /assets/context-menu-list-item-Bq4dHo2M.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41866 - "GET /assets/responses-DnsOquJf.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41910 - "GET /assets/settings-Df4RaXEB.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41906 - "GET /assets/connect-to-github-modal-CDjZRSFy.js HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41892 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41880 - "GET /api/options/agents HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41892 - "GET /api/options/models HTTP/1.1" 200 OK
2024-10-24 11:18:16 INFO:     172.17.0.1:41906 - "GET /api/options/security-analyzers HTTP/1.1" 200 OK
2024-10-24 11:19:06 INFO:     172.17.0.1:34546 - "GET /assets/settings-DWxzqZ8T.js HTTP/1.1" 200 OK
2024-10-24 11:19:06 INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 11:19:06 INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 11:19:06 INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 11:19:06 INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 11:19:06 INFO:     172.17.0.1:34546 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38566 - "GET /assets/_oh.app-D-w-gvI_.js HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38574 - "GET /assets/route-xsVt92iV.js HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38582 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38582 - "GET /assets/declaration-DdUOQw3g.js HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38566 - "GET /assets/_oh.app-RvmnuX6d.js HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38590 - "GET /assets/useScrollToBottom-DATD-f7b.js HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38606 - "GET /assets/index-wBZoZNP4.js HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38612 - "GET /assets/index-CMml25xW.js HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38574 - "GET /assets/clear-session-Bbh6tTiy.js HTTP/1.1" 200 OK
2024-10-24 11:19:10 INFO:     172.17.0.1:38582 - "GET /assets/index-C4MRHScb.js HTTP/1.1" 200 OK
2024-10-24 11:19:11 INFO:     172.17.0.1:38590 - "GET /assets/Terminal-CGrrDQr5.css HTTP/1.1" 200 OK
2024-10-24 11:19:11 INFO:     172.17.0.1:38566 - "GET /assets/Terminal-Bmvu4ycZ.js HTTP/1.1" 200 OK
2024-10-24 11:19:11 INFO:     ('172.17.0.1', 38624) - "WebSocket /ws" [accepted]
2024-10-24 11:19:11 INFO:     connection open
2024-10-24 11:19:11 INFO:     172.17.0.1:38582 - "GET /config.json HTTP/1.1" 200 OK
2024-10-24 11:19:11 2024-10-24 06:19:11,705 - INFO - Initializing runtime `eventstream` now...
2024-10-24 11:19:16 2024-10-24 06:19:16,009 - INFO - Preparing to start container...
2024-10-24 11:19:27 2024-10-24 06:19:27,686 - INFO - Container started. Server url: http://host.docker.internal:34639
2024-10-24 11:19:27 2024-10-24 06:19:27,687 - INFO - It is not recommended to cache draft editor LLM prompts as it may incur high costs for the same prompt. Automatically setting caching_prompt=false.
2024-10-24 11:19:27 2024-10-24 06:19:27,687 - INFO - [Draft edit functionality] enabled with LLM: LLM(model=openai/gpt-4o)
2024-10-24 11:19:27 2024-10-24 06:19:27,688 - INFO - Waiting for client to become ready...
2024-10-24 11:21:28 2024-10-24 06:21:28,517 - INFO - 
2024-10-24 11:21:28 -----------------------------------Container logs:-----------------------------------
2024-10-24 11:21:28     |2024-10-24 06:21:14,538 - INFO - Runtime client initialized.
2024-10-24 11:21:28     |2024-10-24 06:21:14,539 - INFO - Starting action execution API on port 34639
2024-10-24 11:21:28     |INFO:     Started server process [8]
2024-10-24 11:21:28     |INFO:     Waiting for application startup.
2024-10-24 11:21:28     |2024-10-24 06:21:15,278 - INFO - Client working directory: /workspace
2024-10-24 11:21:28     |2024-10-24 06:21:17,123 - INFO - Starting browser env...
2024-10-24 11:21:28 --------------------------------------------------------------------------------
2024-10-24 11:21:29 2024-10-24 06:21:28,554 - ERROR - Runtime initialization failed: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-10-24 11:21:29 Traceback (most recent call last):
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
2024-10-24 11:21:29     response = self._make_request(
2024-10-24 11:21:29                ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
2024-10-24 11:21:29     response = conn.getresponse()
2024-10-24 11:21:29                ^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
2024-10-24 11:21:29     httplib_response = super().getresponse()
2024-10-24 11:21:29                        ^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
2024-10-24 11:21:29     response.begin()
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
2024-10-24 11:21:29     version, status, reason = self._read_status()
2024-10-24 11:21:29                               ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
2024-10-24 11:21:29     raise RemoteDisconnected("Remote end closed connection without"
2024-10-24 11:21:29 http.client.RemoteDisconnected: Remote end closed connection without response
2024-10-24 11:21:29 
2024-10-24 11:21:29 During handling of the above exception, another exception occurred:
2024-10-24 11:21:29 
2024-10-24 11:21:29 Traceback (most recent call last):
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
2024-10-24 11:21:29     resp = conn.urlopen(
2024-10-24 11:21:29            ^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
2024-10-24 11:21:29     retries = retries.increment(
2024-10-24 11:21:29               ^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/util/retry.py", line 474, in increment
2024-10-24 11:21:29     raise reraise(type(error), error, _stacktrace)
2024-10-24 11:21:29           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise
2024-10-24 11:21:29     raise value.with_traceback(tb)
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
2024-10-24 11:21:29     response = self._make_request(
2024-10-24 11:21:29                ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
2024-10-24 11:21:29     response = conn.getresponse()
2024-10-24 11:21:29                ^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
2024-10-24 11:21:29     httplib_response = super().getresponse()
2024-10-24 11:21:29                        ^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
2024-10-24 11:21:29     response.begin()
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
2024-10-24 11:21:29     version, status, reason = self._read_status()
2024-10-24 11:21:29                               ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
2024-10-24 11:21:29     raise RemoteDisconnected("Remote end closed connection without"
2024-10-24 11:21:29 urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-10-24 11:21:29 
2024-10-24 11:21:29 During handling of the above exception, another exception occurred:
2024-10-24 11:21:29 
2024-10-24 11:21:29 Traceback (most recent call last):
2024-10-24 11:21:29   File "/app/openhands/server/session/agent_session.py", line 182, in _create_runtime
2024-10-24 11:21:29     self.runtime = runtime_cls(
2024-10-24 11:21:29                    ^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/openhands/runtime/client/runtime.py", line 215, in __init__
2024-10-24 11:21:29     self._wait_until_alive()
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 336, in wrapped_f
2024-10-24 11:21:29     return copy(f, *args, **kw)
2024-10-24 11:21:29            ^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 475, in __call__
2024-10-24 11:21:29     do = self.iter(retry_state=retry_state)
2024-10-24 11:21:29          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 376, in iter
2024-10-24 11:21:29     result = action(retry_state)
2024-10-24 11:21:29              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 418, in exc_check
2024-10-24 11:21:29     raise retry_exc.reraise()
2024-10-24 11:21:29           ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 185, in reraise
2024-10-24 11:21:29     raise self.last_attempt.result()
2024-10-24 11:21:29           ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
2024-10-24 11:21:29     return self.__get_result()
2024-10-24 11:21:29            ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
2024-10-24 11:21:29     raise self._exception
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
2024-10-24 11:21:29     result = fn(*args, **kwargs)
2024-10-24 11:21:29              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/openhands/runtime/client/runtime.py", line 377, in _wait_until_alive
2024-10-24 11:21:29     response = send_request_with_retry(
2024-10-24 11:21:29                ^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/openhands/runtime/utils/request.py", line 85, in send_request_with_retry
2024-10-24 11:21:29     return _send_request_with_retry()
2024-10-24 11:21:29            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 336, in wrapped_f
2024-10-24 11:21:29     return copy(f, *args, **kw)
2024-10-24 11:21:29            ^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 475, in __call__
2024-10-24 11:21:29     do = self.iter(retry_state=retry_state)
2024-10-24 11:21:29          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 376, in iter
2024-10-24 11:21:29     result = action(retry_state)
2024-10-24 11:21:29              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda>
2024-10-24 11:21:29     self._add_action_func(lambda rs: rs.outcome.result())
2024-10-24 11:21:29                                      ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
2024-10-24 11:21:29     return self.__get_result()
2024-10-24 11:21:29            ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
2024-10-24 11:21:29     raise self._exception
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
2024-10-24 11:21:29     result = fn(*args, **kwargs)
2024-10-24 11:21:29              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/openhands/runtime/utils/request.py", line 81, in _send_request_with_retry
2024-10-24 11:21:29     response = session.request(method, url, **kwargs)
2024-10-24 11:21:29                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
2024-10-24 11:21:29     resp = self.send(prep, **send_kwargs)
2024-10-24 11:21:29            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
2024-10-24 11:21:29     r = adapter.send(request, **kwargs)
2024-10-24 11:21:29         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:29   File "/app/.venv/lib/python3.12/site-packages/requests/adapters.py", line 682, in send
2024-10-24 11:21:29     raise ConnectionError(err, request=request)
2024-10-24 11:21:29 requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-10-24 11:21:30 ERROR:asyncio:Future exception was never retrieved
2024-10-24 11:21:30 future: <Future finished exception=ConnectionError(ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))>
2024-10-24 11:21:30 Traceback (most recent call last):
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
2024-10-24 11:21:30     response = self._make_request(
2024-10-24 11:21:30                ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
2024-10-24 11:21:30     response = conn.getresponse()
2024-10-24 11:21:30                ^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
2024-10-24 11:21:30     httplib_response = super().getresponse()
2024-10-24 11:21:30                        ^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
2024-10-24 11:21:30     response.begin()
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
2024-10-24 11:21:30     version, status, reason = self._read_status()
2024-10-24 11:21:30                               ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
2024-10-24 11:21:30     raise RemoteDisconnected("Remote end closed connection without"
2024-10-24 11:21:30 http.client.RemoteDisconnected: Remote end closed connection without response
2024-10-24 11:21:30 
2024-10-24 11:21:30 During handling of the above exception, another exception occurred:
2024-10-24 11:21:30 
2024-10-24 11:21:30 Traceback (most recent call last):
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
2024-10-24 11:21:30     resp = conn.urlopen(
2024-10-24 11:21:30            ^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
2024-10-24 11:21:30     retries = retries.increment(
2024-10-24 11:21:30               ^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/util/retry.py", line 474, in increment
2024-10-24 11:21:30     raise reraise(type(error), error, _stacktrace)
2024-10-24 11:21:30           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise
2024-10-24 11:21:30     raise value.with_traceback(tb)
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
2024-10-24 11:21:30     response = self._make_request(
2024-10-24 11:21:30                ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
2024-10-24 11:21:30     response = conn.getresponse()
2024-10-24 11:21:30                ^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 507, in getresponse
2024-10-24 11:21:30     httplib_response = super().getresponse()
2024-10-24 11:21:30                        ^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
2024-10-24 11:21:30     response.begin()
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
2024-10-24 11:21:30     version, status, reason = self._read_status()
2024-10-24 11:21:30                               ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
2024-10-24 11:21:30     raise RemoteDisconnected("Remote end closed connection without"
2024-10-24 11:21:30 urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-10-24 11:21:30 
2024-10-24 11:21:30 During handling of the above exception, another exception occurred:
2024-10-24 11:21:30 
2024-10-24 11:21:30 Traceback (most recent call last):
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
2024-10-24 11:21:30     result = self.fn(*self.args, **self.kwargs)
2024-10-24 11:21:30              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/openhands/server/session/agent_session.py", line 89, in _start_thread
2024-10-24 11:21:30     asyncio.run(self._start(*args), debug=True)
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
2024-10-24 11:21:30     return runner.run(main)
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
2024-10-24 11:21:30     return self._loop.run_until_complete(task)
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
2024-10-24 11:21:30     return future.result()
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/openhands/server/session/agent_session.py", line 106, in _start
2024-10-24 11:21:30     await call_sync_from_async(
2024-10-24 11:21:30   File "/app/openhands/utils/async_utils.py", line 18, in call_sync_from_async
2024-10-24 11:21:30     result = await coro
2024-10-24 11:21:30              ^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
2024-10-24 11:21:30     result = self.fn(*self.args, **self.kwargs)
2024-10-24 11:21:30              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/openhands/utils/async_utils.py", line 17, in <lambda>
2024-10-24 11:21:30     coro = loop.run_in_executor(None, lambda: fn(*args, **kwargs))
2024-10-24 11:21:30                                               ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/openhands/server/session/agent_session.py", line 182, in _create_runtime
2024-10-24 11:21:30     self.runtime = runtime_cls(
2024-10-24 11:21:30                    ^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/openhands/runtime/client/runtime.py", line 215, in __init__
2024-10-24 11:21:30     self._wait_until_alive()
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 336, in wrapped_f
2024-10-24 11:21:30     return copy(f, *args, **kw)
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 475, in __call__
2024-10-24 11:21:30     do = self.iter(retry_state=retry_state)
2024-10-24 11:21:30          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 376, in iter
2024-10-24 11:21:30     result = action(retry_state)
2024-10-24 11:21:30              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 418, in exc_check
2024-10-24 11:21:30     raise retry_exc.reraise()
2024-10-24 11:21:30           ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 185, in reraise
2024-10-24 11:21:30     raise self.last_attempt.result()
2024-10-24 11:21:30           ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
2024-10-24 11:21:30     return self.__get_result()
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
2024-10-24 11:21:30     raise self._exception
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
2024-10-24 11:21:30     result = fn(*args, **kwargs)
2024-10-24 11:21:30              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/openhands/runtime/client/runtime.py", line 377, in _wait_until_alive
2024-10-24 11:21:30     response = send_request_with_retry(
2024-10-24 11:21:30                ^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/openhands/runtime/utils/request.py", line 85, in send_request_with_retry
2024-10-24 11:21:30     return _send_request_with_retry()
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 336, in wrapped_f
2024-10-24 11:21:30     return copy(f, *args, **kw)
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 475, in __call__
2024-10-24 11:21:30     do = self.iter(retry_state=retry_state)
2024-10-24 11:21:30          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 376, in iter
2024-10-24 11:21:30     result = action(retry_state)
2024-10-24 11:21:30              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda>
2024-10-24 11:21:30     self._add_action_func(lambda rs: rs.outcome.result())
2024-10-24 11:21:30                                      ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
2024-10-24 11:21:30     return self.__get_result()
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
2024-10-24 11:21:30     raise self._exception
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
2024-10-24 11:21:30     result = fn(*args, **kwargs)
2024-10-24 11:21:30              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/openhands/runtime/utils/request.py", line 81, in _send_request_with_retry
2024-10-24 11:21:30     response = session.request(method, url, **kwargs)
2024-10-24 11:21:30                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
2024-10-24 11:21:30     resp = self.send(prep, **send_kwargs)
2024-10-24 11:21:30            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
2024-10-24 11:21:30     r = adapter.send(request, **kwargs)
2024-10-24 11:21:30         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:21:30   File "/app/.venv/lib/python3.12/site-packages/requests/adapters.py", line 682, in send
2024-10-24 11:21:30     raise ConnectionError(err, request=request)
2024-10-24 11:21:30 requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

@faizanjaved5
Copy link

and these are the logs of the runtime container

2024-10-24 11:21:14 2024-10-24 06:21:14,538 - INFO - Runtime client initialized.
2024-10-24 11:21:14 2024-10-24 06:21:14,539 - INFO - Starting action execution API on port 34639
2024-10-24 11:21:15 INFO:     Started server process [8]
2024-10-24 11:21:15 INFO:     Waiting for application startup.
2024-10-24 11:21:15 2024-10-24 06:21:15,278 - INFO - Client working directory: /workspace
2024-10-24 11:21:17 2024-10-24 06:21:17,123 - INFO - Starting browser env...
2024-10-24 11:22:14 2024-10-24 06:22:14,956 - INFO - Browser env started.
2024-10-24 11:22:14 2024-10-24 06:22:14,958 - INFO - SHUTDOWN recv, shutting down browser env...
2024-10-24 11:22:17 2024-10-24 06:22:17,151 - INFO - Starting browser env...
2024-10-24 11:22:17 2024-10-24 06:22:17,152 - ERROR - Failed to start browser process: handle is closed
2024-10-24 11:22:17 ERROR:    Traceback (most recent call last):
2024-10-24 11:22:17   File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 693, in lifespan
2024-10-24 11:22:17     async with self.lifespan_context(app) as maybe_state:
2024-10-24 11:22:17                ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/contextlib.py", line 210, in __aenter__
2024-10-24 11:22:17     return await anext(self.gen)
2024-10-24 11:22:17            ^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/code/openhands/runtime/client/client.py", line 637, in lifespan
2024-10-24 11:22:17     client = RuntimeClient(
2024-10-24 11:22:17              ^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/code/openhands/runtime/client/client.py", line 103, in __init__
2024-10-24 11:22:17     self.browser = BrowserEnv(browsergym_eval_env)
2024-10-24 11:22:17                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/code/openhands/runtime/browser/browser_env.py", line 40, in __init__
2024-10-24 11:22:17     self.init_browser()
2024-10-24 11:22:17   File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/tenacity/__init__.py", line 336, in wrapped_f
2024-10-24 11:22:17     return copy(f, *args, **kw)
2024-10-24 11:22:17            ^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/tenacity/__init__.py", line 475, in __call__
2024-10-24 11:22:17     do = self.iter(retry_state=retry_state)
2024-10-24 11:22:17          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/tenacity/__init__.py", line 376, in iter
2024-10-24 11:22:17     result = action(retry_state)
2024-10-24 11:22:17              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda>
2024-10-24 11:22:17     self._add_action_func(lambda rs: rs.outcome.result())
2024-10-24 11:22:17                                      ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/concurrent/futures/_base.py", line 449, in result
2024-10-24 11:22:17     return self.__get_result()
2024-10-24 11:22:17            ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
2024-10-24 11:22:17     raise self._exception
2024-10-24 11:22:17   File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__
2024-10-24 11:22:17     result = fn(*args, **kwargs)
2024-10-24 11:22:17              ^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/code/openhands/runtime/browser/browser_env.py", line 63, in init_browser
2024-10-24 11:22:17     self.process.start()
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/process.py", line 121, in start
2024-10-24 11:22:17     self._popen = self._Popen(self)
2024-10-24 11:22:17                   ^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/context.py", line 224, in _Popen
2024-10-24 11:22:17     return _default_context.get_context().Process._Popen(process_obj)
2024-10-24 11:22:17            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/context.py", line 289, in _Popen
2024-10-24 11:22:17     return Popen(process_obj)
2024-10-24 11:22:17            ^^^^^^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/popen_spawn_posix.py", line 32, in __init__
2024-10-24 11:22:17     super().__init__(process_obj)
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/popen_fork.py", line 19, in __init__
2024-10-24 11:22:17     self._launch(process_obj)
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/popen_spawn_posix.py", line 47, in _launch
2024-10-24 11:22:17     reduction.dump(process_obj, fp)
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/reduction.py", line 60, in dump
2024-10-24 11:22:17     ForkingPickler(file, protocol).dump(obj)
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/connection.py", line 1173, in reduce_connection
2024-10-24 11:22:17     df = reduction.DupFd(conn.fileno())
2024-10-24 11:22:17                          ^^^^^^^^^^^^^
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/connection.py", line 171, in fileno
2024-10-24 11:22:17     self._check_closed()
2024-10-24 11:22:17   File "/openhands/micromamba/envs/openhands/lib/python3.12/multiprocessing/connection.py", line 137, in _check_closed
2024-10-24 11:22:17     raise OSError("handle is closed")
2024-10-24 11:22:17 OSError: handle is closed
2024-10-24 11:22:17 
2024-10-24 11:22:17 ERROR:    Application startup failed. Exiting.

@SmartManoj
Copy link
Owner

2024-10-24 11:22:17 2024-10-24 06:22:17,152 - ERROR - Failed to start browser process: handle is closed

This is the problem.

Could you run again to check if it is a transient error?

@faizanjaved5
Copy link

ok i ran the container with openai gpt4o and it worked,
then i tried to change the model with openai gpt4o to local llm (llama 3.1) then it started giving same error
I doubled check to changing the model back to open ai gpt 4o and it gave same error
then i stopped the container restarted it with gpt 4o but it is crashing again

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