Skip to content

[Bug]: Cannot attach to runtime container error #393

Closed as not planned
Closed as not planned
@iSevenDays

Description

@iSevenDays

Is there an existing issue for the same bug? (If one exists, thumbs up or comment on the issue instead).

  • I have checked the existing issues.

Describe the bug and reproduction steps

I cannot use kevin due to connection issues between main container and runtime container.

OpenHands Installation

Docker command in README

OpenHands Version

3347c80

Model Name

devstral-2505

Operating System

Linux

Logs, Errors, Screenshots, and Additional Context

kevin-runtime-persisted-root-_mnt_projects_swift_example
kevin-runtime-git-wrapper:latest
56
%
vor 7 Minuten
  "exit_code": "0",
  "username": "root",
  "hostname": "harbor",
  "working_dir": "/workspace",
  "py_interpreter_path": "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python"
}
###PS1END###
09:50:09 - openhands:DEBUG: bash.py:473 - COMBINED OUTPUT: alias git="git --no-pager"
09:50:09 - openhands:DEBUG: action_execution_server.py:374 - Init command outputs (exit code: 0): 
09:50:09 - openhands:DEBUG: action_execution_server.py:378 - Bash init commands completed
09:50:09 - openhands:DEBUG: action_execution_server.py:305 - Runtime client initialized.
09:50:09 - openhands:INFO: action_execution_server.py:677 - ActionExecutor initialized.
09:50:09 - openhands:INFO: action_execution_server.py:680 - Initializing MCP Router...
09:50:09 - openhands:INFO: action_execution_server.py:705 - Mounted MCP Router SSE app at root path with allowed origins: ['*']
09:50:09 - openhands:DEBUG: action_execution_server.py:711 - Main app routes:
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /update_mcp_server
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /download_files
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /execute_action
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /list_files
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /vscode/connection_token
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /openapi.json
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /alive
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /upload_file
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /docs
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /redoc
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /docs/oauth2-redirect
09:50:09 - openhands:DEBUG: action_execution_server.py:713 -   /server_info
09:50:09 - openhands:DEBUG: action_execution_server.py:714 - MCP SSE server app routes:
09:50:09 - openhands:DEBUG: action_execution_server.py:716 -   /messages
09:50:09 - openhands:DEBUG: action_execution_server.py:716 -   /sse
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:63712 (Press CTRL+C to quit)
INFO:     192.168.0.23:50670 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:50670 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:45062 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:45062 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:51020 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:51020 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:49606 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:49606 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:45180 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:45180 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:37006 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:46872 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:46872 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:43168 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:43168 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:39118 - "GET /alive HTTP/1.1" 200 OK
[Errno 2] No such file or directory: '.openhands/setup.sh'
INFO:     192.168.0.23:39118 - "POST /execute_action HTTP/1.1" 200 OK
[Errno 2] No such file or directory: '.openhands/pre-commit.sh'
INFO:     192.168.0.23:39118 - "POST /execute_action HTTP/1.1" 200 OK
[Errno 2] No such file or directory: '/workspace/.openhands_instructions'
INFO:     192.168.0.23:39118 - "POST /execute_action HTTP/1.1" 200 OK
INFO:     192.168.0.23:39118 - "POST /list_files HTTP/1.1" 200 OK
09:56:04 - openhands:DEBUG: action_execution_server.py:917 - Downloading files
INFO:     192.168.0.23:39118 - "GET /download_files?path=%2Fworkspace%2F.openhands%2Fmicroagents HTTP/1.1" 200 OK
09:56:04 - openhands:INFO: action_execution_server.py:837 - Updating MCP server to: [
  {
    "name": "fetch",
    "command": "uvx",
    "args": [
      "mcp-server-fetch"
    ],
    "env": {}
  }
].
Previous profile: {
  "default": []
}
INFO:mcpm.router.router:Connected to server fetch with capabilities: experimental={} logging=None prompts=PromptsCapability(listChanged=False) resources=None tools=ToolsCapability(listChanged=False)
INFO:mcpm.router.router:Server fetch added successfully
09:56:07 - openhands:INFO: action_execution_server.py:853 - MCP router updated successfully with unique servers: [STDIOServerConfig(name='fetch', command='uvx', args=['mcp-server-fetch'], env={})]
INFO:     192.168.0.23:39118 - "POST /update_mcp_server HTTP/1.1" 200 OK
INFO:     192.168.0.23:39118 - "GET /alive HTTP/1.1" 200 OK
INFO:     192.168.0.23:39118 - "GET /vscode/connection_token HTTP/1.1" 200 OK
INFO:     192.168.0.23:57362 - "GET /sse HTTP/1.1" 200 OK
INFO:     192.168.0.23:57372 - "POST /messages/?session_id=95bcfefba1bf41e4a8d2156a1fff0c0a HTTP/1.1" 202 Accepted
INFO:     192.168.0.23:57372 - "POST /messages/?session_id=95bcfefba1bf41e4a8d2156a1fff0c0a HTTP/1.1" 202 Accepted
INFO:     192.168.0.23:57372 - "POST /messages/?session_id=95bcfefba1bf41e4a8d2156a1fff0c0a HTTP/1.1" 202 Accepted
09:56:16 - openhands:ERROR: action_execution_server.py:748 - Unhandled exception occurred:
Traceback (most recent call last):
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/base.py", line 181, in __call__
    raise app_exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 460, in handle
    await self.app(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 74, in app
    await response(scope, receive, send)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/openhands/code/openhands/runtime/action_execution_server.py", line 1047, in <module>
    run(app, host='0.0.0.0', port=args.port)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/uvicorn/main.py", line 580, in run
    server.run()
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/uvicorn/server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/openhands/micromamba/envs/openhands/lib/python3.12/asyncio/runners.py", line 195, in run
    return runner.run(main)
  File "/openhands/micromamba/envs/openhands/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "/openhands/micromamba/envs/openhands/lib/python3.12/asyncio/base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "/openhands/micromamba/envs/openhands/lib/python3.12/asyncio/base_events.py", line 645, in run_forever
    self._run_once()
  File "/openhands/micromamba/envs/openhands/lib/python3.12/asyncio/base_events.py", line 1999, in _run_once
    handle._run()
  File "/openhands/micromamba/envs/openhands/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/errors.py", line 177, in __call__
    response = await self.handler(request, exc)
  File "/openhands/code/openhands/runtime/action_execution_server.py", line 748, in global_exception_handler
    logger.exception('Unhandled exception occurred:')
  File "/openhands/micromamba/envs/openhands/lib/python3.12/logging/__init__.py", line 1574, in exception
    self.error(msg, *args, exc_info=exc_info, **kwargs)
  File "/openhands/micromamba/envs/openhands/lib/python3.12/logging/__init__.py", line 1568, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/openhands/micromamba/envs/openhands/lib/python3.12/logging/__init__.py", line 1684, in _log
    self.handle(record)
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/base.py", line 181, in __call__
    raise app_exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 460, in handle
    await self.app(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/openhands/poetry/openhands-ai-5O4_aCHf-py3.12/lib/python3.12/site-packages/starlette/routing.py", line 74, in app
    await response(scope, receive, send)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
09:56:30 - openhands:DEBUG: shutdown_listener.py:26 - shutdown_signal:15
INFO:     Shutting down
INFO:     Waiting for application shutdown.
09:56:30 - openhands:INFO: action_execution_server.py:721 - Shutting down MCP Router...
INFO:mcpm.router.router:all alive client sessions have been shut down
09:56:30 - openhands:INFO: action_execution_server.py:725 - MCP Router shutdown successfully.
09:56:30 - openhands:INFO: action_execution_server.py:731 - Closing ActionExecutor...
09:56:30 - openhands:DEBUG: browser_env.py:125 - SHUTDOWN recv, shutting down browser env...
09:56:32 - openhands:INFO: action_execution_server.py:735 - ActionExecutor closed successfully.
09:56:32 - openhands:INFO: action_execution_server.py:740 - Shutdown complete.
INFO:     Application shutdown complete.
INFO:     Finished server process [9]
Interrupted system call ; error code 4

the log from open hands container (kevin) shows it can't connect to runtime

...
09:59:09 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:09 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:10 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:10 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:15 - openhands:ERROR: agent_session.py:374 - Runtime initialization failed: Container kevin-runtime-persisted-root-_mnt_projects_swift_example has exited.
Traceback (most recent call last):
  File "/app/openhands/server/session/agent_session.py", line 372, in _create_runtime
    await self.runtime.connect()
  File "/app/openhands/runtime/impl/docker/docker_runtime.py", line 222, 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 <lambda>
    coro = loop.run_in_executor(None, lambda: fn(*args, **kwargs))
                                              ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 338, in wrapped_f
    return copy(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 477, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 378, in iter
    result = action(retry_state)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 400, 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 480, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/impl/docker/docker_runtime.py", line 480, in wait_until_alive
    raise AgentRuntimeDisconnectedError(
openhands.core.exceptions.AgentRuntimeDisconnectedError: Container kevin-runtime-persisted-root-_mnt_projects_swift_example has exited.
09:59:15 - openhands:DEBUG: microagent.py:194 - Loading agents from /app/microagents
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/default-tools.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent default-tools from /app/microagents/default-tools.md. Type: <class 'openhands.microagent.microagent.RepoMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/security.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent security from /app/microagents/security.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/kubernetes.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent kubernetes from /app/microagents/kubernetes.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/gitlab.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent gitlab from /app/microagents/gitlab.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/swift-linux.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent swift-linux from /app/microagents/swift-linux.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/npm.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent npm from /app/microagents/npm.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/flarglebargle.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent flarglebargle from /app/microagents/flarglebargle.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/agent_memory.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent agent_memory from /app/microagents/agent_memory.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/github.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent github from /app/microagents/github.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/docker.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent docker from /app/microagents/docker.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/add_agent.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent add_agent from /app/microagents/add_agent.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/pdflatex.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent pdflatex from /app/microagents/pdflatex.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/ssh.md...
09:59:15 - openhands:DEBUG: microagent.py:207 - Loaded agent ssh from /app/microagents/ssh.md. Type: <class 'openhands.microagent.microagent.KnowledgeMicroagent'>
09:59:15 - openhands:DEBUG: microagent.py:197 - Checking file /app/microagents/README.md...
09:59:15 - openhands:ERROR: standalone_conversation_manager.py:103 - Error connecting to conversation 2fa414e6a3444ee396d2d6f9c3b2253f: Container kevin-runtime-persisted-root-_mnt_projects_swift_example has exited.
Traceback (most recent call last):
  File "/app/openhands/server/conversation_manager/standalone_conversation_manager.py", line 101, in attach_to_conversation
    await c.connect()
  File "/app/openhands/server/session/conversation.py", line 50, in connect
    await self.runtime.connect()
  File "/app/openhands/runtime/impl/docker/docker_runtime.py", line 222, 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 <lambda>
    coro = loop.run_in_executor(None, lambda: fn(*args, **kwargs))
                                              ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 338, in wrapped_f
    return copy(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 477, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 378, in iter
    result = action(retry_state)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 400, 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 480, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/impl/docker/docker_runtime.py", line 480, in wait_until_alive
    raise AgentRuntimeDisconnectedError(
openhands.core.exceptions.AgentRuntimeDisconnectedError: Container kevin-runtime-persisted-root-_mnt_projects_swift_example has exited.
09:59:15 - openhands:INFO: base.py:709 - Selected repo: None, loading microagents from /workspace/.openhands/microagents (inside runtime)
09:59:15 - openhands:DEBUG: action_execution_client.py:126 - Sending request: POST http://host.docker.internal:63712/execute_action {'json': {'action': {'message': 'Reading file: /workspace/.openhands_instructions', 'action': <ActionType.READ: 'read'>, 'args': {'path': '/workspace/.openhands_instructions', 'start': 0, 'end': -1, 'thought': '', 'impl_source': <FileReadSource.DEFAULT: 'default'>, 'view_range': None}, 'timeout': 120.0}}}
INFO:     192.168.0.5:62105 - "GET /api/conversations/2fa414e6a3444ee396d2d6f9c3b2253f/git/changes HTTP/1.1" 404 Not Found
09:59:15 - openhands:INFO: session.py:362 - Agent status error
09:59:15 - openhands:INFO: agent_session.py:198 - Agent session start
09:59:15 - openhands:ERROR: session.py:235 - Error creating agent_session: [Errno 111] Connection refused
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 101, in handle_request
    raise exc
  File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request
    stream = self._connect(request)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 124, in _connect
    stream = self._network_backend.connect_tcp(**kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp
    with map_exceptions(exc_map):
  File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
    self.gen.throw(value)
  File "/app/.venv/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/openhands/server/session/session.py", line 201, in initialize_agent
    await self.agent_session.start(
  File "/app/openhands/server/session/agent_session.py", line 149, in start
    self.memory = await self._create_memory(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/server/session/agent_session.py", line 470, in _create_memory
    microagents: list[BaseMicroagent] = 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/runtime/base.py", line 716, in get_microagents_from_selected_repo
    obs = self.read(
          ^^^^^^^^^^
  File "/app/openhands/runtime/impl/action_execution/action_execution_client.py", line 343, in read
    return self.send_action_for_execution(action)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/impl/action_execution/action_execution_client.py", line 319, in send_action_for_execution
    response = self._send_action_server_request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 338, in wrapped_f
    return copy(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 477, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 378, in iter
    result = action(retry_state)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 400, 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 480, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/impl/action_execution/action_execution_client.py", line 127, 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 338, in wrapped_f
    return copy(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 477, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 378, in iter
    result = action(retry_state)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 400, 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 480, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/runtime/utils/request.py", line 44, in send_request
    response = session.request(method, url, timeout=timeout, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/openhands/utils/http_session.py", line 33, in request
    return CLIENT.request(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/httpx/_client.py", line 825, in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/httpx/_client.py", line 914, in send
    response = self._send_handling_auth(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/httpx/_client.py", line 942, in _send_handling_auth
    response = self._send_handling_redirects(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
    response = self._send_single_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1014, in _send_single_request
    response = transport.handle_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 249, in handle_request
    with map_httpcore_exceptions():
  File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
    self.gen.throw(value)
  File "/app/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 111] Connection refused
09:59:16 - openhands:DEBUG: docker_runtime.py:465 - attached to container: kevin-runtime-persisted-root-_mnt_projects_swift_example 63712 http://host.docker.internal:63712
09:59:16 - openhands:INFO: docker_runtime.py:202 - Using existing Docker container: kevin-runtime-persisted-root-_mnt_projects_swift_example
09:59:16 - openhands:DEBUG: docker_runtime.py:465 - attached to container: kevin-runtime-persisted-root-_mnt_projects_swift_example 63712 http://host.docker.internal:63712
09:59:16 - openhands:INFO: docker_runtime.py:493 - Container status: running
09:59:16 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:16 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:18 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:18 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:20 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:20 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:22 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:22 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:24 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:24 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:26 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:26 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:28 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:28 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:30 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:30 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:32 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:32 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:34 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:34 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:36 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:36 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:38 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:38 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:40 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:40 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:42 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:42 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:44 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:44 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:46 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:46 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:48 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:48 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:50 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:50 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:52 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:52 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:54 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
09:59:54 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
09:59:54 - openhands:DEBUG: docker_runtime.py:230 - Container initialized with plugins: ['vscode']. VSCode URL: None
09:59:54 - openhands:INFO: standalone_conversation_manager.py:110 - Conversation 2fa414e6a3444ee396d2d6f9c3b2253f connected in 63.90706515312195 seconds
09:59:54 - openhands:INFO: standalone_conversation_manager.py:82 - Reusing active conversation 2fa414e6a3444ee396d2d6f9c3b2253f
09:59:54 - openhands:DEBUG: conversation.py:44 - Runtime type: <class 'openhands.runtime.impl.docker.docker_runtime.DockerRuntime'>
09:59:54 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/vscode/connection_token {'timeout': 10}
09:59:54 - openhands:DEBUG: conversation.py:45 - Runtime VSCode URL: http://localhost:42357/?tkn=18479154-c43f-4fe6-ba61-fd2a9f2779f3&folder=/workspace
09:59:54 - openhands:DEBUG: conversation.py:85 - Runtime type: <class 'openhands.runtime.impl.docker.docker_runtime.DockerRuntime'>
09:59:54 - openhands:DEBUG: conversation.py:86 - Runtime hosts: {}
INFO:     192.168.0.5:62107 - "GET /api/conversations/2fa414e6a3444ee396d2d6f9c3b2253f/vscode-url HTTP/1.1" 200 OK
INFO:     192.168.0.5:62106 - "GET /api/conversations/2fa414e6a3444ee396d2d6f9c3b2253f/web-hosts HTTP/1.1" 200 OK
10:00:03 - openhands:INFO: standalone_conversation_manager.py:91 - Reusing detached conversation 2fa414e6a3444ee396d2d6f9c3b2253f
10:00:03 - openhands:DEBUG: conversation.py:85 - Runtime type: <class 'openhands.runtime.impl.docker.docker_runtime.DockerRuntime'>
10:00:03 - openhands:DEBUG: conversation.py:86 - Runtime hosts: {}
INFO:     192.168.0.5:62108 - "GET /api/conversations/2fa414e6a3444ee396d2d6f9c3b2253f/web-hosts HTTP/1.1" 200 OK
10:00:03 - openhands:INFO: standalone_conversation_manager.py:91 - Reusing detached conversation 2fa414e6a3444ee396d2d6f9c3b2253f
10:00:03 - openhands:INFO: standalone_conversation_manager.py:82 - Reusing active conversation 2fa414e6a3444ee396d2d6f9c3b2253f
10:00:03 - openhands:INFO: files.py:251 - Getting git changes in /workspace
10:00:03 - openhands:DEBUG: action_execution_client.py:126 - Sending request: POST http://host.docker.internal:63712/execute_action {'json': {'action': {'message': 'Running command: git rev-parse --is-inside-work-tree', 'action': <ActionType.RUN: 'run'>, 'args': {'command': 'git rev-parse --is-inside-work-tree', 'is_input': False, 'thought': '', 'blocking': False, 'is_static': True, 'cwd': '/workspace', 'hidden': False, 'confirmation_state': <ActionConfirmationStatus.CONFIRMED: 'confirmed'>}, 'timeout': 120.0}}}
10:00:03 - openhands:DEBUG: conversation.py:44 - Runtime type: <class 'openhands.runtime.impl.docker.docker_runtime.DockerRuntime'>
10:00:03 - openhands:DEBUG: conversation.py:45 - Runtime VSCode URL: http://localhost:42357/?tkn=18479154-c43f-4fe6-ba61-fd2a9f2779f3&folder=/workspace
INFO:     192.168.0.5:62108 - "GET /api/conversations/2fa414e6a3444ee396d2d6f9c3b2253f/vscode-url HTTP/1.1" 200 OK
10:00:04 - openhands:DEBUG: action_execution_client.py:126 - Sending request: POST http://host.docker.internal:63712/execute_action {'json': {'action': {'message': 'Running command: git rev-parse --abbrev-ref HEAD', 'action': <ActionType.RUN: 'run'>, 'args': {'command': 'git rev-parse --abbrev-ref HEAD', 'is_input': False, 'thought': '', 'blocking': False, 'is_static': True, 'cwd': '/workspace', 'hidden': False, 'confirmation_state': <ActionConfirmationStatus.CONFIRMED: 'confirmed'>}, 'timeout': 120.0}}}
10:00:04 - openhands:DEBUG: action_execution_client.py:126 - Sending request: POST http://host.docker.internal:63712/execute_action {'json': {'action': {'message': 'Running command: git remote show origin | grep "HEAD branch"', 'action': <ActionType.RUN: 'run'>, 'args': {'command': 'git remote show origin | grep "HEAD branch"', 'is_input': False, 'thought': '', 'blocking': False, 'is_static': True, 'cwd': '/workspace', 'hidden': False, 'confirmation_state': <ActionConfirmationStatus.CONFIRMED: 'confirmed'>}, 'timeout': 120.0}}}
10:00:05 - openhands:DEBUG: action_execution_client.py:126 - Sending request: POST http://host.docker.internal:63712/execute_action {'json': {'action': {'message': 'Running command: git rev-parse --verify origin/main', 'action': <ActionType.RUN: 'run'>, 'args': {'command': 'git rev-parse --verify origin/main', 'is_input': False, 'thought': '', 'blocking': False, 'is_static': True, 'cwd': '/workspace', 'hidden': False, 'confirmation_state': <ActionConfirmationStatus.CONFIRMED: 'confirmed'>}, 'timeout': 120.0}}}
10:00:06 - openhands:DEBUG: action_execution_client.py:126 - Sending request: POST http://host.docker.internal:63712/execute_action {'json': {'action': {'message': 'Running command: git diff --name-status origin/main', 'action': <ActionType.RUN: 'run'>, 'args': {'command': 'git diff --name-status origin/main', 'is_input': False, 'thought': '', 'blocking': False, 'is_static': True, 'cwd': '/workspace', 'hidden': False, 'confirmation_state': <ActionConfirmationStatus.CONFIRMED: 'confirmed'>}, 'timeout': 120.0}}}
10:00:07 - openhands:DEBUG: action_execution_client.py:126 - Sending request: POST http://host.docker.internal:63712/execute_action {'json': {'action': {'message': 'Running command: git ls-files --others --exclude-standard', 'action': <ActionType.RUN: 'run'>, 'args': {'command': 'git ls-files --others --exclude-standard', 'is_input': False, 'thought': '', 'blocking': False, 'is_static': True, 'cwd': '/workspace', 'hidden': False, 'confirmation_state': <ActionConfirmationStatus.CONFIRMED: 'confirmed'>}, 'timeout': 120.0}}}
INFO:     192.168.0.5:62109 - "GET /api/conversations/2fa414e6a3444ee396d2d6f9c3b2253f/git/changes HTTP/1.1" 200 OK
10:00:38 - openhands:DEBUG: docker_runtime.py:465 - attached to container: kevin-runtime-persisted-root-_mnt_projects_swift_example 63712 http://host.docker.internal:63712
10:00:38 - openhands:INFO: docker_runtime.py:202 - Using existing Docker container: kevin-runtime-persisted-root-_mnt_projects_swift_example
10:00:38 - openhands:DEBUG: docker_runtime.py:465 - attached to container: kevin-runtime-persisted-root-_mnt_projects_swift_example 63712 http://host.docker.internal:63712
10:00:38 - openhands:INFO: docker_runtime.py:493 - Container status: running
10:00:38 - openhands:INFO: action_execution_client.py:130 - Checking if runtime is alive
10:00:38 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/alive {'timeout': 5}
10:00:38 - openhands:DEBUG: docker_runtime.py:230 - Container initialized with plugins: ['vscode']. VSCode URL: None
10:00:38 - openhands:INFO: standalone_conversation_manager.py:110 - Conversation 2fa414e6a3444ee396d2d6f9c3b2253f connected in 0.0682518482208252 seconds
10:00:38 - openhands:INFO: standalone_conversation_manager.py:82 - Reusing active conversation 2fa414e6a3444ee396d2d6f9c3b2253f
10:00:38 - openhands:DEBUG: conversation.py:85 - Runtime type: <class 'openhands.runtime.impl.docker.docker_runtime.DockerRuntime'>
10:00:38 - openhands:DEBUG: conversation.py:86 - Runtime hosts: {}
10:00:38 - openhands:DEBUG: conversation.py:44 - Runtime type: <class 'openhands.runtime.impl.docker.docker_runtime.DockerRuntime'>
10:00:38 - openhands:DEBUG: action_execution_client.py:126 - Sending request: GET http://host.docker.internal:63712/vscode/connection_token {'timeout': 10}
10:00:38 - openhands:DEBUG: conversation.py:45 - Runtime VSCode URL: http://localhost:42357/?tkn=18479154-c43f-4fe6-ba61-fd2a9f2779f3&folder=/workspace
INFO:     192.168.0.5:62112 - "GET /api/conversations/2fa414e6a3444ee396d2d6f9c3b2253f/web-hosts HTTP/1.1" 200 OK
INFO:     192.168.0.5:62113 - "GET /api/conversations/2fa414e6a3444ee396d2d6f9c3b2253f/vscode-url HTTP/1.1" 200 OK
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions