OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Docker container keeps crashing

Open ha-zhcool opened this issue 1 year ago • 23 comments

Describe the bug

Every time I make a request to OpenDevin, the docker container crashes after the the first or second step. I tried both main and 0.3.1 versions and had the same issue.

Setup and configuration

Current version:

$ git log -n 1
commit 2826e39056b14e5dc2943ac2e732a470721d1866 (HEAD -> main, origin/main, origin/HEAD)
Author: Robert Brennan <[email protected]>
Date:   Thu Apr 18 12:47:52 2024 -0400

    fix file writes (#1213)
    
    * fix file writes
    
    * Update opendevin/action/fileop.py

My operating system:

My environment vars and other configuration (be sure to redact API keys):

declare -x LLM_API_KEY="sk-xxxxxxxxxx"
declare -x LLM_MODEL="gpt-4-0125-preview"  
declare -x WORKSPACE_DIR="/home/user/AI/OpenDevin/workspace"

My model and agent (you can see these settings in the UI):

  • Model: gpt-4-0125-preview (and other OpenAI models)
  • Agent: All agents

Commands I ran to install and run OpenDevin:

docker run     -e LLM_API_KEY     -e WORKSPACE_MOUNT_PATH=$WORKSPACE_DIR  -e SANDBOX_TYPE=exec   -v $WORKSPACE_DIR:/opt/workspace_base     -v /var/run/docker.sock:/var/run/docker.sock     -p 3000:3000     ghcr.io/opendevin/opendevin:0.3.1

Steps to Reproduce:

  1. Run the docker container
  2. Ask OpenDevin to create an app
  3. After executing one or 2 steps, the container crashes

Logs, error messages, and screenshots:

INFO:     Started server process [1]
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.15.62', 62823) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiIyMWM1N2NmMC1iY2NlLTRkYmItOTg2My02Mzg4YjY2N2NlMDAifQ._l_BhgzEYQRzNgTUOOr6Vyo8yXuwl1X6jby5WSdeEP8" [accepted]
INFO:     connection open
Starting loop_recv for sid: 21c57cf0-bcce-4dbb-9863-6388b667ce00
INFO:     192.168.15.62:62825 - "GET /api/messages/total HTTP/1.1" 200 OK
INFO:     192.168.15.62:62824 - "GET /api/configurations HTTP/1.1" 200 OK
INFO:     172.17.0.1:50960 - "GET /index.html HTTP/1.1" 304 Not Modified
11:02:02 - opendevin:INFO: exec_box.py:185 - Container stopped
11:02:03 - opendevin:INFO: exec_box.py:203 - Container started
INFO:     172.17.0.1:50952 - "GET /api/messages/total HTTP/1.1" 200 OK
INFO:     ('172.17.0.1', 50962) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiJkYjRiMDk5My05YmZmLTQxNDItYTEzMC1mZTUzYzczNTNkMmMifQ.lRJApzuc1oj4PuOPsLXQZLGj7DKa1aBzaeqYj7t1lN8" [accepted]
INFO:     connection open
Starting loop_recv for sid: db4b0993-9bff-4142-a130-fe53c7353d2c
INFO:     172.17.0.1:50960 - "GET /api/refresh-files HTTP/1.1" 200 OK
INFO:     172.17.0.1:50960 - "GET /api/messages/total HTTP/1.1" 200 OK
11:02:04 - opendevin:INFO: exec_box.py:185 - Container stopped
11:02:05 - opendevin:INFO: exec_box.py:203 - Container started


==============
STEP 0

11:02:13 - opendevin:INFO: agent_controller.py:89
PLAN

Additional Context

ha-zhcool avatar Apr 19 '24 11:04 ha-zhcool

@ha-zhcool can you try watching the container with docker stats to see if maybe it's running out of memory or sth?

rbren avatar Apr 19 '24 13:04 rbren

@ha-zhcool and try docker container inspect $CONTAINER_ID

Post the results of that here, but be sure redact the API key from the env

rbren avatar Apr 19 '24 13:04 rbren

Hi! Probably I'm experiencing a similar error....

I'm trying to install OpenDevin on a Oracle Linux 9.3 machine (8 Gbyte RAM, 4 CPU), with docker 26.0.1 build d260a54.

Following the instructions I've set

export LLM_API_KEY="<my_Key_OpenAI_3.5>"

export WORKSPACE_DIR=./workspace

and use this

docker run \
    -e LLM_API_KEY \
    -e WORKSPACE_MOUNT_PATH=$WORKSPACE_DIR \
    -v $WORKSPACE_DIR:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    [ghcr.io/opendevin/opendevin:main](http://ghcr.io/opendevin/opendevin:main))

Using http://192.168.56.201:3000/index.html OpenDevin comes up but, after few seconds I obtain a red error "Connection failed. Retry ..."

image

image

Trying

docker run \
    -e LLM_API_KEY \
    -e WORKSPACE_MOUNT_PATH=$WORKSPACE_DIR \
    -v $WORKSPACE_DIR:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    ghcr.io/opendevin/opendevin:main python opendevin/main.py -t "write a bash script that prints hello"

In this case, the application doesn't start, and after a few seconds Docker closes .....

image

image

Current version OpenDevin

image

How may I fix? Thank you in advance and any suggestion will be appreciated!!

cesaregerbino avatar Apr 19 '24 13:04 cesaregerbino

@cesaregerbino what does docker container inspect $CONTAINER_ID show?

rbren avatar Apr 19 '24 14:04 rbren

docker stats

image

docker container inspect 8aaf25abcb7d

[
    {
        "Id": "8aaf25abcb7dd84767d04ca40eb107059fdb86db59bad074014bad6b25fe44a5",
        "Created": "2024-04-19T14:36:31.233959211Z",
        "Path": "uvicorn",
        "Args": [
            "opendevin.server.listen:app",
            "--host",
            "0.0.0.0",
            "--port",
            "3000"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 4238,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-04-19T14:36:34.481054907Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:1a49c4fbbab1759c0f6d4cae61f785b4dadeab38921f793ca0b3974e57e6e4d1",
        "ResolvConfPath": "/var/lib/docker/containers/8aaf25abcb7dd84767d04ca40eb107059fdb86db59bad074014bad6b25fe44a5/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/8aaf25abcb7dd84767d04ca40eb107059fdb86db59bad074014bad6b25fe44a5/hostname",
        "HostsPath": "/var/lib/docker/containers/8aaf25abcb7dd84767d04ca40eb107059fdb86db59bad074014bad6b25fe44a5/hosts",
        "LogPath": "/var/lib/docker/containers/8aaf25abcb7dd84767d04ca40eb107059fdb86db59bad074014bad6b25fe44a5/8aaf25abcb7dd84767d04ca40eb107059fdb86db59bad074014bad6b25fe44a5-json.log",
        "Name": "/peaceful_colden",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/home/cesaregerbino/OpenDevin/workspace:/opt/workspace_base",
                "/var/run/docker.sock:/var/run/docker.sock"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "3000/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3000"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                49,
                155
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": [],
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/a6f3a06d44b4e59c81c26730e12b17ed790fb67d6fa74171cb0d98221db57298-init/diff:/var/lib/docker/overlay2/e09bbbbed3da10f6c2ebf78c824fc3b15cc8395569deeb8fa3de4e4f8b03dea1/diff:/var/lib/docker/overlay2/e3bc9f0b68379eb0c976009f4b4fde2e31865679968229b2f689eb09fd11d074/diff:/var/lib/docker/overlay2/14c17b2c1768334b0d6573f0dbd53c5ca1a31d9e797ba941a1243849873c2c0d/diff:/var/lib/docker/overlay2/903bb2295b908861bf0365f1978fcb5fc75729c612d81e8d22f4819ac9cbdb76/diff:/var/lib/docker/overlay2/840ab2db0546fc8b17f9969ba0c0c86a6ec7e9a44f7a057aad2f4b27eaed440e/diff:/var/lib/docker/overlay2/387a4959e7ab17264a211ba9ef2e787758b50d3a6efd651fea6457c4626cd847/diff:/var/lib/docker/overlay2/88eb1ac74d7f86ea05fc65e6f255fd974934f7be7757148adfa5320f567ee667/diff:/var/lib/docker/overlay2/788fb46e247670cf205ab3066f0a4ac1a27702c83be24feba1bdc9e1b9dc431b/diff:/var/lib/docker/overlay2/55677a4388bd6ae7d6531e7884920d70c56625d2cc8a996b768114ecb9fab5f9/diff:/var/lib/docker/overlay2/5789e52e8893b833097ca1db6e03025144a9cecc32f3884952934b41331d30d5/diff:/var/lib/docker/overlay2/696ddf95e796a790fee6be6786b9d394a8b0936e801f431f70b3f0712a5ab954/diff:/var/lib/docker/overlay2/8d58c904653fd5a2e3bb0426d8ebef17a0109f79712ad9a003814fc3f25178b8/diff:/var/lib/docker/overlay2/2174cd6ba513e17b3541a886d478ae4fd966cc381234b6cdbe047b639832d149/diff",
                "MergedDir": "/var/lib/docker/overlay2/a6f3a06d44b4e59c81c26730e12b17ed790fb67d6fa74171cb0d98221db57298/merged",
                "UpperDir": "/var/lib/docker/overlay2/a6f3a06d44b4e59c81c26730e12b17ed790fb67d6fa74171cb0d98221db57298/diff",
                "WorkDir": "/var/lib/docker/overlay2/a6f3a06d44b4e59c81c26730e12b17ed790fb67d6fa74171cb0d98221db57298/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/home/cesaregerbino/OpenDevin/workspace",
                "Destination": "/opt/workspace_base",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "8aaf25abcb7d",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "3000/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "WORKSPACE_MOUNT_PATH=./workspace",
                "debug=1",
                "LLM_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                "PATH=/app/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LANG=C.UTF-8",
                "GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
                "PYTHON_VERSION=3.12.3",
                "PYTHON_PIP_VERSION=24.0",
                "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py",
                "PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9",
                "RUN_AS_DEVIN=false",
                "USE_HOST_NETWORK=false",
                "SSH_HOSTNAME=host.docker.internal",
                "WORKSPACE_BASE=/opt/workspace_base",
                "VIRTUAL_ENV=/app/.venv",
                "PYTHONPATH=/app"
            ],
            "Cmd": [
                "uvicorn",
                "opendevin.server.listen:app",
                "--host",
                "0.0.0.0",
                "--port",
                "3000"
            ],
            "Image": "ghcr.io/opendevin/opendevin:main",
            "Volumes": null,
            "WorkingDir": "/app",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "871e6d19c638b8d7db7a332e8e027869f9b8c1d0634cfb758e8acf3241339fc1",
            "SandboxKey": "/var/run/docker/netns/871e6d19c638",
            "Ports": {
                "3000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "3000"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "3000"
                    }
                ]
            },
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "ec607ef74ded5a9a8907a3fd1f59fdea376cf0e57946465454c22aa2ce114c9d",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "MacAddress": "02:42:ac:11:00:02",
                    "NetworkID": "62c0da3f2b150c1f396edbaa4ab0c31f19219324015f012f4c5a0b4bd5ca3769",
                    "EndpointID": "ec607ef74ded5a9a8907a3fd1f59fdea376cf0e57946465454c22aa2ce114c9d",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DriverOpts": null,
                    "DNSNames": null
                }
            }
        }
    }
]

cesaregerbino avatar Apr 19 '24 14:04 cesaregerbino

Got the same issue as @ha-zhcool

dev-josias avatar Apr 19 '24 14:04 dev-josias

Here is the output of the requested commands

docker ps
CONTAINER ID   IMAGE                              COMMAND                  CREATED              STATUS          PORTS                                                                                            NAMES
d256a1e4dcac   ghcr.io/opendevin/sandbox          "/usr/sbin/sshd -D -…"   About a minute ago   Up 49 seconds   0.0.0.0:40453->40453/tcp, :::40453->40453/tcp                                                    opendevi
CONTAINER ID   NAME                                                     CPU %     MEM USAGE / LIMIT     MEM %     NET I/O           BLOCK I/O         PIDS
a208f8161129   opendevin-sandbox-21c57cf0-bcce-4dbb-9863-6388b667ce00   0.23%     288KiB / 23.46GiB     0.00%     0B / 0B           0B / 0B           1
0e903fa16ea2   xenodochial_bartik                                       0.42%     576.1MiB / 23.46GiB   2.40%     190kB / 14kB      0B / 7.87MB       43
docker container inspect 0e903fa16ea2
[
    {
        "Id": "0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475",
        "Created": "2024-04-19T16:22:09.476459192Z",
        "Path": "uvicorn",
        "Args": [
            "opendevin.server.listen:app",
            "--host",
            "0.0.0.0",
            "--port",
            "3000"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 718269,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-04-19T16:22:10.924263191Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:0d5ab25cb5875c1eb45fc97e5bed617231dbc7fc210a6ecadab59c9e6a63d125",
        "ResolvConfPath": "/var/lib/docker/containers/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475/hostname",
        "HostsPath": "/var/lib/docker/containers/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475/hosts",
        "LogPath": "/var/lib/docker/containers/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475-json.log",
        "Name": "/xenodochial_bartik",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/home/user/AI/OpenDevin/workspace:/opt/workspace_base",
                "/var/run/docker.sock:/var/run/docker.sock"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "3000/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3000"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                28,
                217
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/02c3503e74ff238cd4730522b22b25137ffb48963e33f3786e00a59a243c0101-init/diff:/var/lib/docker/overlay2/ef334722d2a43098fdc0a80b50ecfe0773d1c23cbc8824147dad7189d7e9959e/diff:/var/lib/docker/overlay2/16a6f66e5b73fc94fd011a393885f02f71e84cdb62c5e2194e3e1f4101aec785/diff:/var/lib/docker/overlay2/1fd25897f09dd1d3effc60ab96243f2fe6568e1eebf9c866db9a5acb9b2608ec/diff:/var/lib/docker/overlay2/f9233bda7cda764f1f8d605ce1b616e74c38a5f60853f7e614b29a6416135158/diff:/var/lib/docker/overlay2/2d7bb8c8df0d9e189ba5c0fc28d0fd3422bd03f39360ee64a31ea73f7f64c78c/diff:/var/lib/docker/overlay2/c2e0d985b06c98ac87421e13ef206d1743581b8476be234490dc2301e103855d/diff:/var/lib/docker/overlay2/ec4b74dad09c5f2e29d7e60e4ae9efed8b9cfddc0bab83f9e46fb0fe07cff67b/diff:/var/lib/docker/overlay2/8d9913976e1d89d0a3e408e9ed0a45858f3f056dff2548a5a7ec466333b8a0f3/diff:/var/lib/docker/overlay2/f44d5d78d5e47dba9bf8f5a74a20f34c1b08b2bdac7edd1b0e392964dbe5b352/diff:/var/lib/docker/overlay2/0ee95a8f96633b0c67a15f2881b19c6380b528119fe0af2e9b89bcef77a1c019/diff:/var/lib/docker/overlay2/729d377c2a6dba93136a2697645f19f30df540fafc0b922feb0b73e368de8b61/diff:/var/lib/docker/overlay2/6af7a50a58a303b0599b812bd27075a49b3d5a6f68cf4d67dfb041773af0957c/diff:/var/lib/docker/overlay2/809884c03fdcd980bbbd3de5e5f71060f450236a98b82e3fe7453d080bdcb699/diff",
                "MergedDir": "/var/lib/docker/overlay2/02c3503e74ff238cd4730522b22b25137ffb48963e33f3786e00a59a243c0101/merged",
                "UpperDir": "/var/lib/docker/overlay2/02c3503e74ff238cd4730522b22b25137ffb48963e33f3786e00a59a243c0101/diff",
                "WorkDir": "/var/lib/docker/overlay2/02c3503e74ff238cd4730522b22b25137ffb48963e33f3786e00a59a243c0101/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/home/user/AI/OpenDevin/workspace",
                "Destination": "/opt/workspace_base",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "0e903fa16ea2",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "3000/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "SANDBOX_TYPE=exec",
                "LLM_API_KEY=sk-xxxxxxxxxxx",
                "WORKSPACE_MOUNT_PATH=/home/user/AI/OpenDevin/workspace",
                "PATH=/app/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LANG=C.UTF-8",
                "GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
                "PYTHON_VERSION=3.12.3",
                "PYTHON_PIP_VERSION=24.0",
                "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py",
                "PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9",
                "RUN_AS_DEVIN=false",
                "USE_HOST_NETWORK=false",
                "SSH_HOSTNAME=host.docker.internal",
                "WORKSPACE_BASE=/opt/workspace_base",
                "VIRTUAL_ENV=/app/.venv",
                "PYTHONPATH=/app"
            ],
            "Cmd": [
                "uvicorn",
                "opendevin.server.listen:app",
                "--host",
                "0.0.0.0",
                "--port",
                "3000"
            ],
            "Image": "ghcr.io/opendevin/opendevin:0.3.1",
            "Volumes": null,
            "WorkingDir": "/app",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "32778fce0b643f53a5edd98e844d4b88485ba7c2270464e12bcdf0e4e169d321",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "3000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "3000"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "3000"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/32778fce0b64",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "a590142f9d29cb1237fe91e7b14d5a04431d1523f0f90c45117a5d7b500a99c9",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.4",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:04",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "bf1b6aee3d1dd9d95201eaecf7830cd0a363de7d00e797c811f8c2b9c0cdd03d",
                    "EndpointID": "a590142f9d29cb1237fe91e7b14d5a04431d1523f0f90c45117a5d7b500a99c9",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.4",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:04",
                    "DriverOpts": null
                }
            }
        }
    }
]

and here are the logs of the container:

INFO:     Started server process [1]
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.15.62', 55017) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiIyMWM1N2NmMC1iY2NlLTRkYmItOTg2My02Mzg4YjY2N2NlMDAifQ._l_BhgzEYQRzNgTUOOr6Vyo8yXuwl1X6jby5WSdeEP8" [accepted]
INFO:     connection open
Starting loop_recv for sid: 21c57cf0-bcce-4dbb-9863-6388b667ce00
INFO:     192.168.15.62:55019 - "GET /api/messages/total HTTP/1.1" 200 OK
INFO:     192.168.15.62:55018 - "GET /api/configurations HTTP/1.1" 200 OK
16:22:40 - opendevin:INFO: exec_box.py:185 - Container stopped
16:22:41 - opendevin:INFO: exec_box.py:203 - Container started
INFO:     172.17.0.1:53082 - "GET /index.html HTTP/1.1" 304 Not Modified
INFO:     172.17.0.1:53082 - "GET /assets/index-CxVJwObY.js HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:53074 - "GET /assets/index-BhJ7yrS1.css HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:53074 - "GET /favicon-32x32.png HTTP/1.1" 304 Not Modified
INFO:     172.17.0.1:53092 - "GET /site.webmanifest HTTP/1.1" 304 Not Modified
INFO:     172.17.0.1:38800 - "GET /index.html HTTP/1.1" 304 Not Modified
INFO:     172.17.0.1:38800 - "GET /assets/index-CxVJwObY.js HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:38784 - "GET /assets/index-BhJ7yrS1.css HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:36986 - "GET / HTTP/1.1" 307 Temporary Redirect
INFO:     172.17.0.1:36986 - "GET /assets/index-CxVJwObY.js HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:36988 - "GET /assets/index-BhJ7yrS1.css HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:57710 - "GET /index.html HTTP/1.1" 304 Not Modified
INFO:     172.17.0.1:57708 - "GET /assets/index-BhJ7yrS1.css HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:57710 - "GET /assets/index-CxVJwObY.js HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:46340 - "GET /index.html HTTP/1.1" 304 Not Modified
INFO:     172.17.0.1:46340 - "GET /assets/index-CxVJwObY.js HTTP/1.1" 404 Not Found
INFO:     172.17.0.1:46350 - "GET /assets/index-BhJ7yrS1.css HTTP/1.1" 404 Not Found
INFO:     192.168.15.62:63164 - "GET /index.html HTTP/1.1" 304 Not Modified
INFO:     192.168.15.62:63164 - "GET /assets/index-DiDnKupX.js HTTP/1.1" 200 OK
INFO:     192.168.15.62:63165 - "GET /assets/index-CVqJeQJv.css HTTP/1.1" 304 Not Modified
INFO:     ('192.168.15.62', 63166) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiI3ODNjOGUyYS00NmZhLTRmNmEtYjNmYi1hMTMzZjUwNDZjMWUifQ.iPFN26BupbQvm2hneEmlxCho3_Za86d0hf7W2IQZVXU" [accepted]
INFO:     connection open
Starting loop_recv for sid: 783c8e2a-46fa-4f6a-b3fb-a133f5046c1e
INFO:     192.168.15.62:63164 - "GET /locales/en/translation.json HTTP/1.1" 304 Not Modified
INFO:     192.168.15.62:63164 - "GET /api/refresh-files HTTP/1.1" 200 OK
INFO:     192.168.15.62:63165 - "GET /api/messages/total HTTP/1.1" 200 OK
INFO:     192.168.15.62:63164 - "GET /api/configurations HTTP/1.1" 200 OK
16:30:23 - opendevin:INFO: exec_box.py:185 - Container stopped
16:30:24 - opendevin:INFO: exec_box.py:203 - Container started
INFO:     192.168.15.62:63170 - "GET /api/litellm-models HTTP/1.1" 200 OK
INFO:     192.168.15.62:63169 - "GET /api/litellm-agents HTTP/1.1" 200 OK
INFO:     192.168.15.62:63173 - "GET /api/litellm-models HTTP/1.1" 200 OK
INFO:     192.168.15.62:63173 - "GET /api/litellm-agents HTTP/1.1" 200 OK
INFO:     192.168.15.62:63174 - "GET /api/litellm-models HTTP/1.1" 200 OK
INFO:     192.168.15.62:63175 - "GET /api/litellm-agents HTTP/1.1" 200 OK
INFO:     192.168.15.62:63177 - "GET /api/litellm-agents HTTP/1.1" 200 OK
INFO:     192.168.15.62:63176 - "GET /api/litellm-models HTTP/1.1" 200 OK
==============
STEP 0
16:32:39 - opendevin:INFO: agent_controller.py:89
PLAN
write a game of life in python

after the Opendevin container crashed, I see 2 different sandbox containers started and still running.

CONTAINER ID   NAME                                                     CPU %     MEM USAGE / LIMIT     MEM %     NET I/O           BLOCK I/O         PIDS
a208f8161129   opendevin-sandbox-21c57cf0-bcce-4dbb-9863-6388b667ce00   0.01%     288KiB / 23.46GiB     0.00%     0B / 0B           0B / 0B           1
1faf8e51e31b   opendevin-sandbox-783c8e2a-46fa-4f6a-b3fb-a133f5046c1e   0.01%     296KiB / 23.46GiB     0.00%     0B / 0B           0B / 0B           1

ha-zhcool avatar Apr 19 '24 16:04 ha-zhcool

Sorry @ha-zhcool can you run inspect after it crashes? That should contain the reason

rbren avatar Apr 19 '24 20:04 rbren

ditto @cesaregerbino --your output above claims it's running

rbren avatar Apr 19 '24 20:04 rbren

Sorry @ha-zhcool can you run inspect after it crashes? That should contain the reason

Here it is.

$ docker container inspect 0e903fa16ea2
[
    {
        "Id": "0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475",
        "Created": "2024-04-19T16:22:09.476459192Z",
        "Path": "uvicorn",
        "Args": [
            "opendevin.server.listen:app",
            "--host",
            "0.0.0.0",
            "--port",
            "3000"
        ],
        "State": {
            "Status": "exited",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 132,
            "Error": "",
            "StartedAt": "2024-04-19T16:22:10.924263191Z",
            "FinishedAt": "2024-04-19T16:32:54.126804294Z"
        },
        "Image": "sha256:0d5ab25cb5875c1eb45fc97e5bed617231dbc7fc210a6ecadab59c9e6a63d125",
        "ResolvConfPath": "/var/lib/docker/containers/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475/hostname",
        "HostsPath": "/var/lib/docker/containers/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475/hosts",
        "LogPath": "/var/lib/docker/containers/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475/0e903fa16ea2bff13e7a7a49f9163a27e9f4c53650520ae08941d074e9735475-json.log",
        "Name": "/xenodochial_bartik",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/home/user/AI/OpenDevin/workspace:/opt/workspace_base",
                "/var/run/docker.sock:/var/run/docker.sock"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "3000/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3000"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                28,
                217
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/02c3503e74ff238cd4730522b22b25137ffb48963e33f3786e00a59a243c0101-init/diff:/var/lib/docker/overlay2/ef334722d2a43098fdc0a80b50ecfe0773d1c23cbc8824147dad7189d7e9959e/diff:/var/lib/docker/overlay2/16a6f66e5b73fc94fd011a393885f02f71e84cdb62c5e2194e3e1f4101aec785/diff:/var/lib/docker/overlay2/1fd25897f09dd1d3effc60ab96243f2fe6568e1eebf9c866db9a5acb9b2608ec/diff:/var/lib/docker/overlay2/f9233bda7cda764f1f8d605ce1b616e74c38a5f60853f7e614b29a6416135158/diff:/var/lib/docker/overlay2/2d7bb8c8df0d9e189ba5c0fc28d0fd3422bd03f39360ee64a31ea73f7f64c78c/diff:/var/lib/docker/overlay2/c2e0d985b06c98ac87421e13ef206d1743581b8476be234490dc2301e103855d/diff:/var/lib/docker/overlay2/ec4b74dad09c5f2e29d7e60e4ae9efed8b9cfddc0bab83f9e46fb0fe07cff67b/diff:/var/lib/docker/overlay2/8d9913976e1d89d0a3e408e9ed0a45858f3f056dff2548a5a7ec466333b8a0f3/diff:/var/lib/docker/overlay2/f44d5d78d5e47dba9bf8f5a74a20f34c1b08b2bdac7edd1b0e392964dbe5b352/diff:/var/lib/docker/overlay2/0ee95a8f96633b0c67a15f2881b19c6380b528119fe0af2e9b89bcef77a1c019/diff:/var/lib/docker/overlay2/729d377c2a6dba93136a2697645f19f30df540fafc0b922feb0b73e368de8b61/diff:/var/lib/docker/overlay2/6af7a50a58a303b0599b812bd27075a49b3d5a6f68cf4d67dfb041773af0957c/diff:/var/lib/docker/overlay2/809884c03fdcd980bbbd3de5e5f71060f450236a98b82e3fe7453d080bdcb699/diff",
                "MergedDir": "/var/lib/docker/overlay2/02c3503e74ff238cd4730522b22b25137ffb48963e33f3786e00a59a243c0101/merged",
                "UpperDir": "/var/lib/docker/overlay2/02c3503e74ff238cd4730522b22b25137ffb48963e33f3786e00a59a243c0101/diff",
                "WorkDir": "/var/lib/docker/overlay2/02c3503e74ff238cd4730522b22b25137ffb48963e33f3786e00a59a243c0101/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/home/user/AI/OpenDevin/workspace",
                "Destination": "/opt/workspace_base",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "0e903fa16ea2",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "3000/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "SANDBOX_TYPE=exec",
                "LLM_API_KEY=sk-xxxxxxxxxxx",
                "WORKSPACE_MOUNT_PATH=/home/user/AI/OpenDevin/workspace",
                "PATH=/app/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LANG=C.UTF-8",
                "GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
                "PYTHON_VERSION=3.12.3",
                "PYTHON_PIP_VERSION=24.0",
                "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py",
                "PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9",
                "RUN_AS_DEVIN=false",
                "USE_HOST_NETWORK=false",
                "SSH_HOSTNAME=host.docker.internal",
                "WORKSPACE_BASE=/opt/workspace_base",
                "VIRTUAL_ENV=/app/.venv",
                "PYTHONPATH=/app"
            ],
            "Cmd": [
                "uvicorn",
                "opendevin.server.listen:app",
                "--host",
                "0.0.0.0",
                "--port",
                "3000"
            ],
            "Image": "ghcr.io/opendevin/opendevin:0.3.1",
            "Volumes": null,
            "WorkingDir": "/app",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "32778fce0b643f53a5edd98e844d4b88485ba7c2270464e12bcdf0e4e169d321",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "/var/run/docker/netns/32778fce0b64",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "bf1b6aee3d1dd9d95201eaecf7830cd0a363de7d00e797c811f8c2b9c0cdd03d",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "",
                    "DriverOpts": null
                }
            }
        }
    }
]

ha-zhcool avatar Apr 19 '24 20:04 ha-zhcool

@cesaregerbino

ghcr.io/opendevin/opendevin:main python opendevin/main.py -t "write a bash script that prints hello"

python opendevin/main.py -t "write a bash script that prints hello" is a separate command that should be ran after this

SmartManoj avatar Apr 19 '24 21:04 SmartManoj

Error code 132 means that you have an older CPU architecture. May not support SSE4.2

This helped! i Ran it in a proxmox VM and i changed the vCPU to type "Host". My host is an AMD 5600X, and now the "Code 132" error is gone \o/

baarsnet avatar Apr 20 '24 00:04 baarsnet

Error code 132 means that you have an older CPU architecture. May not support SSE4.2

my CPU supports SSE4.2 as you can see below.

$ cat /proc/cpuinfo | grep sse4_2
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 **sse4_2** x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm pti ssbd ibrs ibpb stibp tsc_adjust arat md_clear flush_l1d arch_capabilities

ha-zhcool avatar Apr 20 '24 10:04 ha-zhcool

As you can see in my previous post, avx is also supported by the cpu.

ha-zhcool avatar Apr 20 '24 11:04 ha-zhcool

@ha-zhcool it does seem like there's a CPU/arch issue, given the 132 exit code. But also something is running, so it's not a total incompatibility--maybe it's hitting an instruction that's not compatible?

We publish AMD and ARM images--which are you running?

rbren avatar Apr 20 '24 13:04 rbren

I don't know which one is used. I just issued the command that is provided in the repo to run ghcr.io/opendevin/opendevin. How to specifically run one or another version? I'm running a VM on an Intel Xeon CPU so I need the AMD version. I have several containers running on this host and this is the first time I face this error 132

ha-zhcool avatar Apr 20 '24 14:04 ha-zhcool

BTW, I'm also experiencing the same crashing issue when running Opendevin outside docker (make build and make run) on the same host.

ha-zhcool avatar Apr 20 '24 14:04 ha-zhcool

what's the exit code from make build or make run? any logs?

rbren avatar Apr 21 '24 18:04 rbren

I believe there's a --platform flag for docker run...

rbren avatar Apr 21 '24 18:04 rbren

ditto @cesaregerbino --your output above claims it's running

@rbren ... sorry for the late ..... Yes, I captured the output in the few seconds when the Docker container remains active, then it crashes, and I no longer have the active process.

cesaregerbino avatar Apr 22 '24 06:04 cesaregerbino

Hello again everyone. I've tried something different from my initial setup. Now, I've tested it on a virtual machine and switched to a CentOS7 where I've installed Docker version 26.1.0. The virtual machine has 4 CPUs, 8 Gbytes of RAM, and a potential disk space of 64 Gbytes. As a virtualization environment, I'm using Oracle Virtual Box 7.0. Again, the application responds, but after a few seconds, the error appears... Connection failed. Retry..

image

image

Does anyone else experience this kind of behavior? Where am I going wrong? How can I correct it and get Open Devin working?

Thank you in advance for the suggestions!!!

cesaregerbino avatar Apr 24 '24 12:04 cesaregerbino

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 Jun 12 '24 01:06 github-actions[bot]

ha-zhcool there's been a ton of changes since 0.3.1 and lots of issues have been fixed. Give the latest stuff a shot and see if it works for you now. Will close this. Feel free to open a new issue if you have problems with the new docker images.

mamoodi avatar Jun 17 '24 21:06 mamoodi