Closed paopa closed 7 months ago
if the team could provide me with suggestions to address this issue, I'm willing to do this issue.
I ran into the same issue. As a hot fix, you can run npm run build
in the frontend directory. This should be run in make build
, however.
Actually, this is a bigger problem since this mount should only happen for the Docker setup, not for the dev setup.
Are you saying in the dev setup the frontend should be served by vite and not fastapi? @Sparkier
Most likely yes. If we serve it like we do now we're loosing all the nice dev features like hot reload etc.
@Sparkier review please: https://github.com/OpenDevin/OpenDevin/pull/1137
This isn't ideal in that, in a dev setup, front end will be served on both fastapi (a static snapshot) and vite (hot reloads)
but it gets past the dist
not found issue.
Serving on both endpoints is fine I think.
how to solve it?
@riverind It should be fixed now in the main repository. Please update your repo ( git pull
) and re-run the installation steps.
@riverind It should be fixed now in the main repository. Please update your repo (
git pull
) and re-run the installation steps.
thx for your suggestion however, new error occur " auth.py:18 - Error decoding token: Not enough segments"
@riverind It should be fixed now in the main repository. Please update your repo (
git pull
) and re-run the installation steps.
no it is not resolve, i ran into this error just today
make run
Running the app...
Starting backend server...
Waiting for the backend to start...
ERROR:root: File "/home/wei/.cache/pypoetry/virtualenvs/opendevin-W7PrGhyP-py3.11/bin/uvicorn", line 8, in
ERROR:root:<class 'RuntimeError'>: Directory './frontend/dist' does not exist 00:21:14 - opendevin:INFO: manager.py:46 - Closing 0 agent(s)... 00:21:14 - opendevin:INFO: manager.py:43 - Saving sessions... 00:21:14 - opendevin:INFO: msg_stack.py:41 - Saving messages...
To anybody running into this issue - check if you're running with a custom --workdir
.
OpenHands needs to be served from the original workdir and a pointer to the directory with code must be done via WORKSPACE_MOUNT_PATH
env var.
Describe the bug
I'm new to this project and followed the Development Guide to run Open Devin. however, it lacks the
frontend/dist
folder when starting the backend service. and, the root cause is here.I checked the Makefile, it seems didn't execute
npm run build
in the install-frontend-dependencies command. a workaround is executing the command to builddist
tho. but, I'm not sure it will be as the teams' expectation for development. according to Getting Started with the OpenDevin Frontend, the build command seems for building the app for production. so, not sure if putting this command to the install-frontend-dependencies command whether a good idea.Setup and configuration
Current version:
My config.toml and environment vars (be sure to redact API keys):
My model and agent (you can see these settings in the UI):
Commands I ran to install and run OpenDevin: I followed this instructions to install
Steps to Reproduce:
Logs, error messages, and screenshots: