OpenDevin icon indicating copy to clipboard operation
OpenDevin copied to clipboard

[Bug]: listen.py line 238, in refresh_files structure = files.get_folder_structure(Path(str(config.workspace_base)))

Open unclemusclez opened this issue 1 month ago • 7 comments

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

I think it's looking for a symlink? Perhaps -v $WORKSPACE_BASE:/opt/workspace_base is never mounted. Would this have to be configured in the config.toml?

Current Version

0.5.3

Installation and Configuration

Following installation instructions from: https://github.com/OpenDevin/OpenDevin/blob/0.5.3/Development.md

Model and Agent

xingyaow/codeact-agent-mistral:latest CodeAct https://i.imgur.com/wWq9Wnm.png

Reproduction Steps

No response

Logs, Errors, Screenshots, and Additional Context

INFO:     127.0.0.1:54962 - "GET /api/litellm-models HTTP/1.1" 200 OK
INFO:     127.0.0.1:54970 - "GET /api/messages/total HTTP/1.1" 200 OK
INFO:     127.0.0.1:54984 - "GET /api/litellm-models HTTP/1.1" 200 OK
INFO:     127.0.0.1:54948 - "GET /api/refresh-files HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/fastapi/routing.py", line 193, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/starlette/concurrency.py", line 42, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-n-3vbtf9-py3.11/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/p/opendevin/opendevin/server/listen.py", line 238, in refresh_files
    structure = files.get_folder_structure(Path(str(config.workspace_base)))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/p/opendevin/opendevin/runtime/files.py", line 35, in get_folder_structure
    for item in workdir.iterdir():
  File "/usr/lib/python3.11/pathlib.py", line 931, in iterdir
    for name in os.listdir(self):
                ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'workspace'

unclemusclez avatar May 16 '24 17:05 unclemusclez