OpenHands
OpenHands copied to clipboard
[Bug]: Setup in Win11 through WSL2 with Ubuntu 24.04 and Docker V26.1.1 build 4cf5afa
Is there an existing issue for the same bug?
- [X] I have checked the troubleshooting document at https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting
- [X] I have checked the existing issues.
Describe the bug
When I run the main Docker Run command I always get a usermod: group '1003' does not exist
I check to see if the group exists and it does and I am a member of the group.
I'm guessing this is related that on the openDevin UI I get this error "Error creating controller. Please check Docker is running"
- I check and docker is indeed running.
Current Version
ghcr.io/opendevin/opendevin:0.5
Installation and Configuration
export WORKSPACE_BASE=/home/josh/opendevin/workspace;
docker run \
--pull=always \
-e SANDBOX_USER_ID=$(id -u) \
-e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
-v $WORKSPACE_BASE:/opt/workspace_base \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 3000:3000 \
--add-host host.docker.internal:host-gateway \
ghcr.io/opendevin/opendevin:0.5
Model and Agent
No response
Reproduction Steps
- Open Ubuntu terminal and change directory to the opendevin root
- git clone the opendevin repo
- run the export workspace cmd
- run the Docker Run cmd
Logs, Errors, Screenshots, and Additional Context
`josh@CreationStation:~$ cd opendevin josh@CreationStation:~/opendevin$ cd OpenDevin josh@CreationStation:~/opendevin/OpenDevin$ export WORKSPACE_BASE=/home/josh/opendevin/workspace; josh@CreationStation:~/opendevin/OpenDevin$ docker run \
--pull=always \ -e SANDBOX_USER_ID=$(id -u) \ -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \ -v $WORKSPACE_BASE:/opt/workspace_base \ -v /var/run/docker.sock:/var/run/docker.sock \ -p 3000:3000 \ --add-host host.docker.internal:host-gateway \ ghcr.io/opendevin/opendevin:0.5
0.5: Pulling from opendevin/opendevin
Digest: sha256:322c5ddcc40f0ac3b6727f63dda9fab87fea3cc1e90a1359f7229529a2c89684
Status: Image is up to date for ghcr.io/opendevin/opendevin:0.5
Docker socket group id: 1003
usermod: group '1003' does not exist
INFO: Started server process [27]
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:48042 - "GET /index.html HTTP/1.1" 304 Not Modified
INFO: ('172.17.0.1', 48050) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiI2ZmY0ZjFkMC01NDIxLTQwYjctOTJiOS1mNDIxMzJlYzliMzEifQ.JG2dkbmSwPjHZdRtEs1KdyOpoIIyBxY7S3G5I987Y4A" [accepted]
INFO: connection open
Starting loop_recv for sid: 6ff4f1d0-5421-40b7-92b9-f42132ec9b31
INFO: 172.17.0.1:48042 - "GET /api/refresh-files HTTP/1.1" 200 OK
19:43:21 - opendevin:INFO: agent.py:125 - Creating agent CodeActAgent using LLM ollama/dolphin-mixtral
19:43:21 - opendevin:INFO: llm.py:78 - Initializing LLM with model: ollama/dolphin-mixtral
19:43:21 - opendevin:WARNING: llm.py:94 - Could not get model info for ollama/dolphin-mixtral
19:43:21 - opendevin:INFO: ssh_box.py:68 - SSHBox is running as opendevin user with USER_ID=1000 in the sandbox
19:43:21 - opendevin:ERROR: ssh_box.py:75 - Error creating controller. Please check Docker is running and visit https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting for more debugging information.
19:43:21 - opendevin:ERROR: agent.py:138 - Error creating controller: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 400, in request
self.endheaders()
File "/usr/local/lib/python3.12/http/client.py", line 1331, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.12/http/client.py", line 1091, in _send_output
self.send(msg)
File "/usr/local/lib/python3.12/http/client.py", line 1035, in send
self.connect()
File "/app/.venv/lib/python3.12/site-packages/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
PermissionError: [Errno 13] Permission denied
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 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, 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 793, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request conn.request( File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 400, in request self.endheaders() File "/usr/local/lib/python3.12/http/client.py", line 1331, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.12/http/client.py", line 1091, in _send_output self.send(msg) File "/usr/local/lib/python3.12/http/client.py", line 1035, in send self.connect() File "/app/.venv/lib/python3.12/site-packages/docker/transport/unixconn.py", line 27, in connect sock.connect(self.unix_socket) urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 213, in _retrieve_server_version return self.version(api_version=False)["ApiVersion"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/daemon.py", line 181, in version return self._result(self._get(url), json=True) ^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/utils/decorators.py", line 44, in inner return f(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 236, in _get return self.get(url, **self._set_request_timeout(kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 602, in get return self.request("GET", 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 501, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/opendevin/server/agent/agent.py", line 130, in create_controller
self.controller = AgentController(
^^^^^^^^^^^^^^^^
File "/app/opendevin/controller/agent_controller.py", line 82, in init
self.action_manager = ActionManager(self.id)
^^^^^^^^^^^^^^^^^^^^^^
File "/app/opendevin/controller/action_manager.py", line 39, in init
self.sandbox = DockerSSHBox(
^^^^^^^^^^^^^
File "/app/opendevin/runtime/docker/ssh_box.py", line 79, in init
raise ex
File "/app/opendevin/runtime/docker/ssh_box.py", line 73, in init
self.docker_client = docker.from_env()
^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docker/client.py", line 94, in from_env
return cls(
^^^^
File "/app/.venv/lib/python3.12/site-packages/docker/client.py", line 45, in init
self.api = APIClient(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 197, in init
self._version = self._retrieve_server_version()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 220, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
19:43:21 - opendevin:INFO: agent_controller.py:201 - Setting agent state from AgentState.LOADING to AgentState.INIT
INFO: 172.17.0.1:48042 - "GET /api/litellm-models HTTP/1.1" 200 OK
INFO: 172.17.0.1:48054 - "GET /api/messages/total HTTP/1.1" 200 OK
INFO: 172.17.0.1:48054 - "GET /api/agents HTTP/1.1" 200 OK
INFO: 172.17.0.1:48042 - "DELETE /api/messages HTTP/1.1" 200 OK
19:45:46 - opendevin:INFO: agent.py:125 - Creating agent DelegatorAgent using LLM ollama/llama3
19:45:46 - opendevin:INFO: llm.py:78 - Initializing LLM with model: ollama/llama3
19:45:46 - opendevin:WARNING: llm.py:94 - Could not get model info for ollama/llama3
19:45:46 - opendevin:WARNING: stream.py:30 - Subscriber subscribed multiple times: agent_controller
19:45:46 - opendevin:INFO: ssh_box.py:68 - SSHBox is running as opendevin user with USER_ID=1000 in the sandbox
19:45:46 - opendevin:ERROR: ssh_box.py:75 - Error creating controller. Please check Docker is running and visit https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting for more debugging information.
19:45:46 - opendevin:ERROR: agent.py:138 - Error creating controller: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 400, in request
self.endheaders()
File "/usr/local/lib/python3.12/http/client.py", line 1331, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.12/http/client.py", line 1091, in _send_output
self.send(msg)
File "/usr/local/lib/python3.12/http/client.py", line 1035, in send
self.connect()
File "/app/.venv/lib/python3.12/site-packages/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
PermissionError: [Errno 13] Permission denied
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 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, 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 793, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request conn.request( File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 400, in request self.endheaders() File "/usr/local/lib/python3.12/http/client.py", line 1331, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.12/http/client.py", line 1091, in _send_output self.send(msg) File "/usr/local/lib/python3.12/http/client.py", line 1035, in send self.connect() File "/app/.venv/lib/python3.12/site-packages/docker/transport/unixconn.py", line 27, in connect sock.connect(self.unix_socket) urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 213, in _retrieve_server_version return self.version(api_version=False)["ApiVersion"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/daemon.py", line 181, in version return self._result(self._get(url), json=True) ^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/utils/decorators.py", line 44, in inner return f(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 236, in _get return self.get(url, **self._set_request_timeout(kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 602, in get return self.request("GET", 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 501, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/app/opendevin/server/agent/agent.py", line 130, in create_controller self.controller = AgentController( ^^^^^^^^^^^^^^^^ File "/app/opendevin/controller/agent_controller.py", line 82, in init self.action_manager = ActionManager(self.id) ^^^^^^^^^^^^^^^^^^^^^^ File "/app/opendevin/controller/action_manager.py", line 39, in init self.sandbox = DockerSSHBox( ^^^^^^^^^^^^^ File "/app/opendevin/runtime/docker/ssh_box.py", line 79, in init raise ex File "/app/opendevin/runtime/docker/ssh_box.py", line 73, in init self.docker_client = docker.from_env() ^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/client.py", line 94, in from_env return cls( ^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/client.py", line 45, in init self.api = APIClient(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 197, in init self._version = self._retrieve_server_version() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 220, in _retrieve_server_version raise DockerException( docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied')) 19:45:46 - opendevin:INFO: agent_controller.py:201 - Setting agent state from AgentState.INIT to AgentState.INIT 19:45:54 - opendevin:ERROR: listen.py:135 - Error opening file : [Errno 21] Is a directory: '/opt/workspace_base' INFO: 172.17.0.1:50970 - "GET /api/select-file?file= HTTP/1.1" 500 Internal Server Error ^Z [1]+ Stopped docker run --pull=always -e SANDBOX_USER_ID=$(id -u) -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE -v $WORKSPACE_BASE:/opt/workspace_base -v /var/run/docker.sock:/var/run/docker.sock -p 3000:3000 --add-host host.docker.internal:host-gateway ghcr.io/opendevin/opendevin:0.5 josh@CreationStation:~/opendevin/OpenDevin$ docker --version Docker version 26.1.1, build 4cf5afa josh@CreationStation:~/opendevin/OpenDevin$ INFO: 172.17.0.1:40478 - "GET /api/tags HTTP/1.1" 404 Not Found`
permission error looks like, sudo docker run work?
#1658 should fix it. Waiting for merge.
I'm pretty sure it wasn't a sudo issue. Pretty sure I tried that but I've been mistaken before.
Yeah So I'm still having the same issue. And at the end where you see the 500 error. That's from me clicking on the workspace_base on the front end.
josh@CreationStation:~/opendevin/OpenDevin$ git pull remote: Enumerating objects: 1070, done. remote: Counting objects: 100% (1034/1034), done. remote: Compressing objects: 100% (512/512), done. remote: Total 1070 (delta 570), reused 910 (delta 521), pack-reused 36 Receiving objects: 100% (1070/1070), 2.68 MiB | 7.37 MiB/s, done. Resolving deltas: 100% (570/570), completed with 56 local objects. From https://github.com/OpenDevin/OpenDevin 242c4a0..446eaec main -> origin/main 1535fd4..1681311 bl-xw/swe-bench -> origin/bl-xw/swe-bench
- [new branch] rb/app-as-root -> origin/rb/app-as-root
- [new branch] rb/codeact-finish -> origin/rb/codeact-finish
- [new branch] rb/fix-e2b -> origin/rb/fix-e2b
- [new branch] rb/pr-agent -> origin/rb/pr-agent d250249..2255b79 rb/runner-stream -> origin/rb/runner-stream Updating 242c4a0..446eaec Fast-forward .github/ISSUE_TEMPLATE/bug_template.yml | 2 +- .github/workflows/run-unit-tests.yml | 41 +++- .gitignore | 2 + CodeOfConduct.md => CODE_OF_CONDUCT.md | 0 Makefile | 56 +++-- agenthub/README.md | 4 + agenthub/codeact_agent/codeact_agent.py | 52 +++- agenthub/codeact_agent/prompt.py | 3 +- agenthub/dummy_agent/agent.py | 5 + agenthub/micro/_instructions/actions/message.md | 2 + agenthub/micro/_instructions/actions/reject.md | 2 + agenthub/micro/_instructions/actions/think.md | 2 - agenthub/micro/coder/prompt.md | 2 +- agenthub/micro/commit_writer/agent.yaml | 1 - agenthub/micro/commit_writer/prompt.md | 5 +- agenthub/micro/math_agent/agent.yaml | 1 - agenthub/micro/postgres_agent/agent.yaml | 1 - agenthub/micro/postgres_agent/prompt.md | 2 +- agenthub/micro/repo_explorer/prompt.md | 2 +- agenthub/micro/study_repo_for_task/prompt.md | 2 +- agenthub/micro/typo_fixer_agent/prompt.md | 2 +- agenthub/micro/verifier/prompt.md | 2 +- agenthub/monologue_agent/agent.py | 7 +- agenthub/monologue_agent/utils/memory.py | 119 +++++----- agenthub/monologue_agent/utils/prompts.py | 11 +- agenthub/planner_agent/prompt.py | 2 +- docs/modules/usage/intro.mdx | 1 + evaluation/regression/run_tests.py | 2 +- frontend/src/components/Jupyter.tsx | 58 +++-- frontend/src/components/chat/ChatInput.test.tsx | 11 +- frontend/src/components/file-explorer/FileExplorer.test.tsx | 17 +- frontend/src/components/modals/settings/SettingsModal.test.tsx | 8 +- frontend/src/hooks/useScrollToBottom.ts | 30 +++ frontend/src/i18n/translation.json | 4 + frontend/src/services/planService.ts | 2 +- frontend/vitest.setup.ts | 9 + opendevin/controller/action_manager.py | 13 +- opendevin/controller/agent_controller.py | 13 +- opendevin/core/config.py | 458 +++++++++++++++++++++++++----------- opendevin/core/logger.py | 14 +- opendevin/core/main.py | 29 ++- opendevin/core/schema/action.py | 13 +- opendevin/core/schema/config.py | 1 + opendevin/core/utils/init.py | 3 + opendevin/core/utils/singleton.py | 28 +++ opendevin/events/action/init.py | 3 + opendevin/events/action/agent.py | 11 + opendevin/events/action/commands.py | 8 +- opendevin/events/action/files.py | 13 +- opendevin/events/action/github.py | 11 +- opendevin/llm/bedrock.py | 15 +- opendevin/llm/llm.py | 101 +++++--- opendevin/runtime/browser/browser_env.py | 14 +- opendevin/runtime/docker/exec_box.py | 85 ++++--- opendevin/runtime/docker/local_box.py | 22 +- opendevin/runtime/docker/ssh_box.py | 135 +++++++---- opendevin/runtime/e2b/sandbox.py | 8 +- opendevin/runtime/plugins/jupyter/execute_server | 4 +- opendevin/runtime/sandbox.py | 11 + opendevin/runtime/utils/singleton.py | 0 opendevin/server/agent/agent.py | 27 +-- opendevin/server/listen.py | 16 +- tests/integration/README.md | 45 +--- tests/integration/mock/CodeActAgent/test_write_simple_script/prompt_001.log | 3 +- tests/integration/mock/CodeActAgent/test_write_simple_script/prompt_002.log | 10 +- tests/integration/mock/CodeActAgent/test_write_simple_script/prompt_003.log | 248 ------------------- tests/integration/mock/CodeActAgent/test_write_simple_script/prompt_004.log | 256 -------------------- tests/integration/mock/CodeActAgent/test_write_simple_script/prompt_005.log | 270 --------------------- .../integration/mock/CodeActAgent/test_write_simple_script/response_001.log | 5 +- .../integration/mock/CodeActAgent/test_write_simple_script/response_002.log | 5 +- .../integration/mock/CodeActAgent/test_write_simple_script/response_003.log | 1 - .../integration/mock/CodeActAgent/test_write_simple_script/response_004.log | 4 - .../integration/mock/CodeActAgent/test_write_simple_script/response_005.log | 1 - .../integration/mock/PlannerAgent/test_write_simple_script/response_001.log | 8 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_002.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_003.log | 4 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_004.log | 6 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_005.log | 8 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_006.log | 8 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_007.log | 8 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_008.log | 8 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_009.log | 8 +- tests/integration/mock/SWEAgent/test_write_simple_script/prompt_010.log | 15 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_001.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_002.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_003.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_004.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_005.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_006.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_007.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_008.log | 2 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_009.log | 4 +- tests/integration/mock/SWEAgent/test_write_simple_script/response_010.log | 4 +- tests/integration/regenerate.sh | 47 +++- tests/integration/test_agent.py | 2 +- tests/test_fileops.py | 43 +++- tests/unit/test_action_github.py | 15 +- tests/unit/test_action_serialization.py | 6 + tests/unit/test_arg_parser.py | 9 +- tests/unit/test_config.py | 173 ++++++++++++++ tests/unit/test_sandbox.py | 76 +++--- 101 files changed, 1396 insertions(+), 1450 deletions(-) rename CodeOfConduct.md => CODE_OF_CONDUCT.md (100%) create mode 100644 agenthub/micro/_instructions/actions/message.md create mode 100644 agenthub/micro/_instructions/actions/reject.md delete mode 100644 agenthub/micro/_instructions/actions/think.md create mode 100644 frontend/src/hooks/useScrollToBottom.ts create mode 100644 opendevin/core/utils/init.py create mode 100644 opendevin/core/utils/singleton.py create mode 100644 opendevin/runtime/utils/singleton.py delete mode 100644 tests/integration/mock/CodeActAgent/test_write_simple_script/prompt_003.log delete mode 100644 tests/integration/mock/CodeActAgent/test_write_simple_script/prompt_004.log delete mode 100644 tests/integration/mock/CodeActAgent/test_write_simple_script/prompt_005.log delete mode 100644 tests/integration/mock/CodeActAgent/test_write_simple_script/response_003.log delete mode 100644 tests/integration/mock/CodeActAgent/test_write_simple_script/response_004.log delete mode 100644 tests/integration/mock/CodeActAgent/test_write_simple_script/response_005.log create mode 100644 tests/unit/test_config.py josh@CreationStation:~/opendevin/OpenDevin$ export WORKSPACE_BASE=/home/josh/opendevin/workspace josh@CreationStation:~/opendevin/OpenDevin$ docker run \
--pull=always \ -e SANDBOX_USER_ID=$(id -u) \ -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \ -v $WORKSPACE_BASE:/opt/workspace_base \ -v /var/run/docker.sock:/var/run/docker.sock \ -p 3000:3000 \ --add-host host.docker.internal:host-gateway \ ghcr.io/opendevin/opendevin:0.5
0.5: Pulling from opendevin/opendevin
Digest: sha256:322c5ddcc40f0ac3b6727f63dda9fab87fea3cc1e90a1359f7229529a2c89684
Status: Image is up to date for ghcr.io/opendevin/opendevin:0.5
Docker socket group id: 1003
usermod: group '1003' does not exist
INFO: Started server process [28]
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:53464 - "GET / HTTP/1.1" 307 Temporary Redirect
INFO: 172.17.0.1:53464 - "GET /index.html HTTP/1.1" 304 Not Modified
INFO: 172.17.0.1:53464 - "GET /assets/index-BNujsEV6.js HTTP/1.1" 304 Not Modified
INFO: 172.17.0.1:53466 - "GET /assets/index-DD3lkNKs.css HTTP/1.1" 200 OK
INFO: ('172.17.0.1', 53470) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiI2ZmY0ZjFkMC01NDIxLTQwYjctOTJiOS1mNDIxMzJlYzliMzEifQ.JG2dkbmSwPjHZdRtEs1KdyOpoIIyBxY7S3G5I987Y4A" [accepted]
INFO: connection open
Starting loop_recv for sid: 6ff4f1d0-5421-40b7-92b9-f42132ec9b31
INFO: 172.17.0.1:53466 - "GET /locales/en/translation.json HTTP/1.1" 304 Not Modified
INFO: 172.17.0.1:53466 - "GET /api/refresh-files HTTP/1.1" 200 OK
22:18:18 - opendevin:INFO: agent.py:125 - Creating agent DelegatorAgent using LLM ollama/llama3
22:18:18 - opendevin:INFO: llm.py:78 - Initializing LLM with model: ollama/llama3
22:18:18 - opendevin:WARNING: llm.py:94 - Could not get model info for ollama/llama3
22:18:18 - opendevin:INFO: ssh_box.py:68 - SSHBox is running as opendevin user with USER_ID=1000 in the sandbox
22:18:18 - opendevin:ERROR: ssh_box.py:75 - Error creating controller. Please check Docker is running and visit https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting for more debugging information.
22:18:18 - opendevin:ERROR: agent.py:138 - Error creating controller: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 400, in request
self.endheaders()
File "/usr/local/lib/python3.12/http/client.py", line 1331, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.12/http/client.py", line 1091, in _send_output
self.send(msg)
File "/usr/local/lib/python3.12/http/client.py", line 1035, in send
self.connect()
File "/app/.venv/lib/python3.12/site-packages/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
PermissionError: [Errno 13] Permission denied
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 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, 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 793, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request conn.request( File "/app/.venv/lib/python3.12/site-packages/urllib3/connection.py", line 400, in request self.endheaders() File "/usr/local/lib/python3.12/http/client.py", line 1331, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.12/http/client.py", line 1091, in _send_output self.send(msg) File "/usr/local/lib/python3.12/http/client.py", line 1035, in send self.connect() File "/app/.venv/lib/python3.12/site-packages/docker/transport/unixconn.py", line 27, in connect sock.connect(self.unix_socket) urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 213, in _retrieve_server_version return self.version(api_version=False)["ApiVersion"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/daemon.py", line 181, in version return self._result(self._get(url), json=True) ^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/utils/decorators.py", line 44, in inner return f(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 236, in _get return self.get(url, **self._set_request_timeout(kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/requests/sessions.py", line 602, in get return self.request("GET", 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 501, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/app/opendevin/server/agent/agent.py", line 130, in create_controller self.controller = AgentController( ^^^^^^^^^^^^^^^^ File "/app/opendevin/controller/agent_controller.py", line 82, in init self.action_manager = ActionManager(self.id) ^^^^^^^^^^^^^^^^^^^^^^ File "/app/opendevin/controller/action_manager.py", line 39, in init self.sandbox = DockerSSHBox( ^^^^^^^^^^^^^ File "/app/opendevin/runtime/docker/ssh_box.py", line 79, in init raise ex File "/app/opendevin/runtime/docker/ssh_box.py", line 73, in init self.docker_client = docker.from_env() ^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/client.py", line 94, in from_env return cls( ^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/client.py", line 45, in init self.api = APIClient(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 197, in init self._version = self._retrieve_server_version() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/docker/api/client.py", line 220, in _retrieve_server_version raise DockerException( docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied')) 22:18:18 - opendevin:INFO: agent_controller.py:201 - Setting agent state from AgentState.LOADING to AgentState.INIT INFO: 172.17.0.1:53466 - "GET /api/litellm-models HTTP/1.1" 200 OK INFO: 172.17.0.1:53464 - "GET /api/messages/total HTTP/1.1" 200 OK INFO: 172.17.0.1:53466 - "GET /api/agents HTTP/1.1" 200 OK INFO: 172.17.0.1:53466 - "DELETE /api/messages HTTP/1.1" 200 OK 22:20:08 - opendevin:ERROR: listen.py:135 - Error opening file : [Errno 21] Is a directory: '/opt/workspace_base' INFO: 172.17.0.1:49428 - "GET /api/select-file?file= HTTP/1.1" 500 Internal Server Error
https://docs.docker.com/engine/install/linux-postinstall/
So I'm still having the same issue.
@ArtisticMusician Because the PR has not merged yet?
@ArtisticMusician can you try version 0.5.3 and see if it fixes the issue?
@rbren That seems to have fixed it;