-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Exception: Failed to create opendevin user in sandbox: b'useradd: UID 0 is not unique\n' #936
Comments
I'm facing the same issue. |
me too. My os is macOS. Apple Chip(M1) |
I am also running open devin in a WSL (ubuntu) on windows 11 and I get the same error message. Any workarounds? |
Has this version been tested with a specific version of Docker? In the requirements, it's simply Docker without any version. |
I'm facing the same issue. |
Same problem here too. Any help please ? |
Did you run the command |
Well that is one thing I tried, then it gives me this error: [Errno 13] Permission denied: b'/mnt/c/Windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps/uvicorn |
mmmh in fact may be we need to run docker in rootless ? |
Can you try |
me too,My Os is CentOS7.9 |
me too! |
same error. |
|
Ok, this export seems to work 👍 It starts ! |
I tried the export, at first it seemed like it worked, but then I got this again: Can I just add the SANDBOX_USER_ID into the config? |
s |
This is the cause. When I commented out the following, the issue was resolved. # if config.get_or_none('SANDBOX_USER_ID') is not None:
# USER_ID = int(config.get_or_default('SANDBOX_USER_ID', ''))
# elif hasattr(os, 'getuid'):
# USER_ID = os.getuid() |
@sameqb - I am having the below issue around docker not working. Per Discord someone recommended your comment. However on the latest commit, I do not see the line in question. opendevin:ERROR: ssh_box.py:61 - Please check Docker is running using |
|
Have modified /opendevin/sandbox/docker/ssh_box.py line 40 to the following, which then allows OpenDevin to run on Ubuntu from Visual Studio Code insiders via a SSH connection # FIXME: On some containers, the devin user doesn't have enough permission, e.g. to install packages
# How do we make this more flexible?
RUN_AS_DEVIN = config.get('RUN_AS_DEVIN').lower() != 'false'
# Set a default USER_ID to a non-system reserved value
default_user_id = 1001
# Fetch USER_ID from configuration and validate it
sandbox_user_id = config.get('SANDBOX_USER_ID')
if sandbox_user_id and int(sandbox_user_id) > 1000:
USER_ID = int(sandbox_user_id)
else:
# Fallback to os.getuid(), but ensure it's not 0
USER_ID = os.getuid() if os.getuid() > 1000 else default_user_id
` |
@Dexhub still you have issues? |
Closing as it seems this issue may be resolved. Please feel free to reopen if you are still encountering it. |
export WORKSPACE_BASE=$(pwd)/workspace docker run run with make run not docker write nname of llm like in ollama list ollama/orca-mini:latest Wait a long time for the form to load llm export SANDBOX_USER_ID=1000 persist_sandbox=false config.toml [llm] sudo vi /etc/systemd/system/ollama.service or sudo nano /etc/systemd/system/ollama.service In the [Service] bracket add these lines Environment="OLLAMA_HOST=0.0.0.0:11434" sudo systemctl daemon-reload conda activate with python 3.11 https://opendevin.github.io/OpenDevin/modules/usage/llms/localLLMs |
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" conda create --name work python=3.11 |
Describe the bug
When I run the
make run
command, everything seems to start but when the Agent controller try to initiate the environment an exception is thrown:Exception: Failed to create opendevin user in sandbox: b'useradd: UID 0 is not unique\n'
Setup and configuration
Current version:
commit 8ab9c6fb86db7ac21969fd5fadd18bab97bdb172 (HEAD -> main, origin/main, origin/HEAD)
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:
Steps to Reproduce:
Logs, error messages, and screenshots:
Additional Context
I am running a WSL (ubuntu) on Windows 11
SOLUTION
You need to export the variable
SANDBOX_USER_ID
to1000
thanks to @SmartManojThe text was updated successfully, but these errors were encountered: