OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: not able to start opendevin on macos

Open KMJ-007 opened this issue 1 year ago • 11 comments
trafficstars

Is there an existing issue for the same bug?

  • [X] I have checked the troubleshooting document at https://docs.all-hands.dev/modules/usage/troubleshooting
  • [X] I have checked the existing issues.

Describe the bug

image

Current OpenDevin version

opendevin:0.8

Installation and Configuration

WORKSPACE_BASE=$(pwd)/workspace
docker run -it \
    --pull=always \
    -e SANDBOX_USER_ID=$(id -u) \
    -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
    -v $WORKSPACE_BASE:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name opendevin-app-$(date +%Y%m%d%H%M%S) \
    ghcr.io/opendevin/opendevin:0.8

Model and Agent

i didn't get chance, cuz it didn't started

Operating System

macos

Reproduction Steps

1.just run the command to start it

 WORKSPACE_BASE=$(pwd)/workspace
docker run -it \
    --pull=always \
    -e SANDBOX_USER_ID=$(id -u) \
    -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
    -v $WORKSPACE_BASE:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name opendevin-app-$(date +%Y%m%d%H%M%S) \
    ghcr.io/opendevin/opendevin:0.8

  1. open localhost, and wait and suddenly it shows the error from docker desktop

Logs, Errors, Screenshots, and Additional Context

image

KMJ-007 avatar Aug 05 '24 17:08 KMJ-007

I’m seeing the same thing. MacBook Pro 2018 with Intel chipset.

sdmorrey avatar Aug 06 '24 12:08 sdmorrey

Can you update your docker desktop to the latest and make sure the "Allow the default Docker socket to be used" is set in the Advanced settings?

Screenshot 2024-08-06 at 11 38 23 AM

mamoodi avatar Aug 06 '24 15:08 mamoodi

That seems to have done it. Sadly I've got a new error:

Digest: sha256:ecb9f793d304e2127a99da8ce6c4418f2459fb0f0eafb25b5a4146d73e134c40
Status: Downloaded newer image for ghcr.io/opendevin/opendevin:latest
Starting OpenDevin...
Setting up enduser with id 501
Docker socket group id: 0
root:x:0:
Group with id 0 already exists
Running as enduser
/app/.venv/lib/python3.12/site-packages/llama_cloud/types/metadata_filter.py:20: SyntaxWarning: invalid escape sequence '\*'
  """
07:30:35 - opendevin:INFO: config.py:437 - Config file not found: [Errno 2] No such file or directory: 'config.toml'
INFO:     Started server process [36]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:3000 (Press CTRL+C to quit)
INFO:     192.168.65.1:28838 - "GET /static/splash.png HTTP/1.1" 404 Not Found
INFO:     192.168.65.1:52239 - "GET /static/splash.png HTTP/1.1" 404 Not Found
INFO:     192.168.65.1:23528 - "GET /static/favicon.png HTTP/1.1" 404 Not Found
INFO:     192.168.65.1:38331 - "GET /manifest.json HTTP/1.1" 404 Not Found
INFO:     192.168.65.1:52239 - "GET /api/config HTTP/1.1" 401 Unauthorized
INFO:     192.168.65.1:52239 - "GET /_app/immutable/nodes/26.a7066c5c.js HTTP/1.1" 404 Not Found
INFO:     192.168.65.1:52239 - "GET /_app/version.json HTTP/1.1" 404 Not Found
INFO:     192.168.65.1:52239 - "GET /_app/version.json HTTP/1.1" 404 Not Found
INFO:     192.168.65.1:25282 - "GET /opensearch.xml HTTP/1.1" 404 Not Found

I started it using this command (taken from Readme.md page of repo):

WORKSPACE_BASE=$(pwd)/workspace
docker run -it \
    --pull=always \
    -e SANDBOX_USER_ID=$(id -u) \
    -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
    -v $WORKSPACE_BASE:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name opendevin-app-$(date +%Y%m%d%H%M%S) \
    ghcr.io/opendevin/opendevin:latest

sdmorrey avatar Aug 07 '24 07:08 sdmorrey

I was able to solve this. I had Ollama started without "ollama serve" it seems to be working now.

sdmorrey avatar Aug 07 '24 07:08 sdmorrey

@KMJ-007 can you try the above suggestions as well and see if it works for you?

mamoodi avatar Aug 07 '24 14:08 mamoodi

still facing the issue

updated the docker and turned on the setting in advanced from docker desktop app

KMJ-007 avatar Aug 08 '24 16:08 KMJ-007

what info i can provide more which will help in debugging this?

i tried on my friend's mac also facing the same issue their also

we both have same mac m1 air

KMJ-007 avatar Aug 08 '24 16:08 KMJ-007

Please provide your docker desktop version. Then when you run the docker command to start OpenDevin, please copy the terminal output and post it here. I'll see if I can get someone to help out.

mamoodi avatar Aug 08 '24 18:08 mamoodi

Yeah, sorry about the inconvenience @KMJ-007 , we'll try to help out with more details.

neubig avatar Aug 09 '24 13:08 neubig

Please provide your docker desktop version. Then when you run the docker command to start OpenDevin, please copy the terminal output and post it here. I'll see if I can get someone to help out.

Version: 4.33.0 (160616)

Engine: 27.1.1

Compose: v2.29.1-desktop.1

Credential Helper: v0.8.2

Kubernetes: v1.30.2

KMJ-007 avatar Aug 27 '24 09:08 KMJ-007

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 27 '24 01:09 github-actions[bot]

This issue was closed because it has been stalled for over 30 days with no activity.

github-actions[bot] avatar Oct 04 '24 01:10 github-actions[bot]