Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Workspace not displaying properly and zip download doesn't work #4694

Closed
1 task done
neubig opened this issue Nov 1, 2024 · 5 comments
Closed
1 task done
Labels
bug Something isn't working severity:critical Critical issues or affecting all users

Comments

@neubig
Copy link
Contributor

neubig commented Nov 1, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

Currently when using OpenHands the workspace directory is not being displayed properly. See the screenshot below, clearly there are files but they're not showing up in the workspace (even after clicking refresh). The agent has finished the task.

Screenshot 2024-11-01 at 6 20 54 PM

In addition, when trying to download the workspace files, I get an empty zip file

(exp) grahams-mbp:compare-quotes-task gneubig$ unzip workspace.zip 
Archive:  workspace.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of workspace.zip or
        workspace.zip.zip, and cannot find workspace.zip.ZIP, period.
(exp) grahams-mbp:compare-quotes-task gneubig$ ls -lh
total 8
-rw-r--r--@ 1 gneubig  staff    29B Nov  1 18:20 workspace.zip

OpenHands Installation

Docker command in README

OpenHands Version

No response

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

@neubig neubig added the bug Something isn't working label Nov 1, 2024
@Tomlili43
Copy link

reproduced bug just now
bug reproduction :
OS: mac m1
files in docker container(path:/workspace): calculator.py workspace.zip
files in local machine: ./workspace: calculator.py

diff: workspace.zip
solution : we should synchronize workspace folder(all kinds of files ) from container to lm.
https://files.slack.com/files-pri/T06P212QSEA-F07UYQW534Z/image.png
https://files.slack.com/files-pri/T06P212QSEA-F07V8U5HG80/image.png

@neubig neubig added the severity:critical Critical issues or affecting all users label Nov 2, 2024
@Tomlili43
Copy link

Tomlili43 commented Nov 2, 2024

i am working on it.
openhands:0.11 version doesn't have this bug.

@Tomlili43
Copy link

file mount of runtime container:
docker.all-hands.dev/ works well
ghcr.io/ didn't work
I spent whole day, however get no clue.
a temporary solution:
docker cp $RUNTIME_CONTAINER_ID:/workspace ./workspace

image

@mamoodi
Copy link
Collaborator

mamoodi commented Dec 5, 2024

@neubig have you seen the workspace issue recently? I haven't noticed it in my latest testing.
The download zip is still a problem if it's a large project.

@mamoodi
Copy link
Collaborator

mamoodi commented Dec 19, 2024

Going to close this as the new download seems to work much better. Please reopen if this is not the case.

@mamoodi mamoodi closed this as completed Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working severity:critical Critical issues or affecting all users
Projects
None yet
Development

No branches or pull requests

4 participants
@neubig @Tomlili43 @mamoodi and others