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] No able to run OpenDevin after 0.5.x #1624

Open
2 tasks done
imkebe opened this issue May 7, 2024 · 14 comments
Open
2 tasks done

[Bug] No able to run OpenDevin after 0.5.x #1624

imkebe opened this issue May 7, 2024 · 14 comments
Labels
bug Something isn't working severity:critical Major problems affecting all users

Comments

@imkebe
Copy link

imkebe commented May 7, 2024

Is there an existing issue for the same bug?

Describe the bug

There is still an issue after 0.5.2. Was fine on 0.4.x

My user has

❯ id -u                                                                                                                                                               
1000

It is passed as a SANDBOX_USER_ID
The var RUN_AS_DEVIN=false

User has an access to docker command without sudo .

❯ docker --version                                                                                                                                                    
Docker version 26.1.1, build 4cf5afa
❯ getent group 991                                                                                                                                                    
docker:x:991:kebe

Docker is exposed via:

❯ cat /etc/docker/daemon.json 
1  │ {
2  │      "hosts" : [
3  │           "unix:///var/run/docker.sock",                                                                                                                     
4  │           "tcp://0.0.0.0:2375"                                                                                                                               
5  │      ]                                                                                                                                                       
6  │ } 

Open Devin container has defined binding to:

/var/run/docker.sock:/var/run/docker.sock

❯ /usr/bin/ls /var/run/docker.sock -l                                                                                                                                 
srw-rw---- 1 root docker 0 05-07 16:09 /var/run/docker.sock

Current Version

0.5.2

Installation and Configuration

docker pull ghcr.io/opendevin/opendevin:0.5.2

Model and Agent

N/A

Reproduction Steps

Run container.
Open WebUI

Logs, Errors, Screenshots, and Additional Context

usermod: no changes
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000 for a second time. Exiting.
@imkebe imkebe added the bug Something isn't working label May 7, 2024
@PierrunoYT
Copy link
Contributor

Strange. It works for me fine.

@rbren
Copy link
Collaborator

rbren commented May 7, 2024

Thanks for the report! Definitely concerning.

@imkebe did you get a message like this in the logs?

  echo "Failed to create user enduser with id $SANDBOX_USER_ID. Moving opendevin user."

@rbren rbren added the severity:critical Major problems affecting all users label May 7, 2024
@imkebe
Copy link
Author

imkebe commented May 7, 2024

@imkebe did you get a message like this in the logs?

Yes. It's the container logs. Where else would I get them?

@imkebe
Copy link
Author

imkebe commented May 7, 2024

Pleas contact me here or via e-mail if you want an access to the container via Portainer. I can provide that.

@imkebe
Copy link
Author

imkebe commented May 7, 2024

Weird. I've restarted the container and now there is no such logs.

Current ones:
_opendevin_logs (5).txt

docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

@catid
Copy link

catid commented May 7, 2024

Also seeing error:

Error while fetching server API version

Software seems to be broken at the moment

@blevlabs
Copy link

blevlabs commented May 8, 2024

I am experiencing the same:

docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

When trying to load a model controller

@rbren
Copy link
Collaborator

rbren commented May 8, 2024

Error while fetching server API version is indicative of another issue--see https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting#unable-to-connect-to-docker as well as #1226

@imkebe
Copy link
Author

imkebe commented May 8, 2024

It's really weird. Once again i've just restarted container. No other changes applied and now :

INFO:     192.168.201.8:59118 - "GET /api/messages/total HTTP/1.1" 200 OK
10:43:49 - opendevin:INFO: session.py:40 - WebSocket disconnected, sid: a62917c3-787e-472f-8fb9-fd440e88d9b2
INFO:     connection closed
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000. Moving opendevin user.
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000 for a second time. Exiting.
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000. Moving opendevin user.
usermod: no changes
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000 for a second time. Exiting.
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000. Moving opendevin user.
usermod: no changes
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000 for a second time. Exiting.
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000. Moving opendevin user.
usermod: no changes
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000 for a second time. Exiting.
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000. Moving opendevin user.
usermod: no changes
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000 for a second time. Exiting.
useradd: user 'enduser' already exists
Failed to create user enduser with id 1000. Moving opendevin user.
usermod: no changes

@jrgriffiniii
Copy link

I am also experiencing the same error on the macOS. I fixed this by reverting to the following Docker Image: ghcr.io/opendevin/opendevin:1458-merge. Changes following this tag seem to break OpenDevin in my environment.

imkebe pushed a commit to imkebe/OpenDevin that referenced this issue May 8, 2024
@imkebe
Copy link
Author

imkebe commented May 8, 2024

I was able to fix that in entrypoint.sh by adding docker group with fetched gid. None of the above hasn't happened since then. Now I faceing another issue but not related to this one and mentioned issues.

@rbren
Copy link
Collaborator

rbren commented May 11, 2024

@jrgriffiniii @imkebe 0.5.3 should hopefully fix these issues. Let me know if you're able to give it a shot!

@xennygrimmato
Copy link

@rbren 0.5.3 still gives the same error for me.

@imkebe
Copy link
Author

imkebe commented May 13, 2024

@rbren 0.5.3 still gives the same error for me.

@xennygrimmato please attach full log file here.

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 Major problems affecting all users
Projects
None yet
Development

No branches or pull requests

7 participants