-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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]: Version 0.10 fails to run Docker #4494
Comments
@SmartManoj Yes, that worked. |
@Mad-scientist-star thanks for opening up this issue. Can you please try 0.9.8 and see if it works by running:
I'll try to get some eyes on this. |
@mamoodi I downloaded and ran 0.9.8 server out of the box no problems. |
I modified the code to:
and asked mad-scientist to run the new image. They got:
I'm confused, how is the docker socker group while having a GID? Is it a permission issue with getting the group? |
in the latest verion of macos its running well, i installed for the first time docker and then ran the command and it launched the web-server with no errors, testing it now using anthropic, i am using intel mac and update verion 0.10, it did say group is already exists but he continued as enduser and ran it |
Yep. This seems to be linux only. I'm trying to help debug it with mad-scientist. Thanks for confirming 🙏 |
I am experiencing this issue as well on NixOS on 0.10.0 Running as root fails on group already added. And running without root, I run into permission errors when chatting. I have rootless docker enabled in my config, and have added the docker group to my user. I tried downgrading to 0.9.8 and that seems to work at first, but then I try chatting with Ollama/llama3:8b, and it is broken. |
@ParkerrDev are you able to try this:
It will fail, but it has some extra logging. I'm trying to see if the creating of the group is even necessary. If you do run it, can you post the logs starting with |
If you need to modify entrypoint.sh, consider adding a conditional check in the script to avoid creating the docker group repeatedly. For example: |
Is there an existing issue for the same bug?
Describe the bug and reproduction steps
Using the latest install instructions, everything seems to be fine until you're suddenly faced with this: "groupadd: group 'docker' already exists", and then it just shuts down. I also tested the "main" image, and even downloaded the source code and ran docker-run and the same thing happens. Someone else on discord also experienced this, but I thought maybe it would be noticed faster if posting here.
OpenHands Installation
Docker command in README
OpenHands Version
0.10, main
Operating System
Linux
Logs, Errors, Screenshots, and Additional Context
╰─λ docker logs openhands-app-20241020111631
Starting OpenHands...
Setting up enduser with id 1000
Docker socket group id: 950
Creating group with id 950
groupadd: group 'docker' already exists
I was able to fix this by getting Claude to edit "/containers/app/entrypoint.sh", but that was a sloppy workaround that seemed to cause the docker service to get disrupted pretty quickly.
The text was updated successfully, but these errors were encountered: