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]: Agent has stopped, last error: /app/entrypoint.sh: line 69: 10 Killed #5956

Open
1 task done
mickykurniawan opened this issue Jan 1, 2025 · 5 comments
Open
1 task done
Labels
bug Something isn't working severity:low Minor issues or affecting single user

Comments

@mickykurniawan
Copy link

mickykurniawan commented Jan 1, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

Followed the guide, then imported my github repo.

OpenHands Installation

Docker command in README

OpenHands Version

0.17

Operating System

MacOS

Logs, Errors, Screenshots, and Additional Context

OpenHands log

    -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.17-nikolaik \
    -e LOG_ALL_EVENTS=true \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v ~/.openhands-state:/.openhands-state \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name openhands-app \
    docker.all-hands.dev/all-hands-ai/openhands:0.17

0.17: Pulling from all-hands-ai/openhands
Digest: sha256:5e7067eb6d4f52dcba89a202a4d4542941c2312fab6e9a410c28e0ef424a8f3a
Status: Image is up to date for docker.all-hands.dev/all-hands-ai/openhands:0.17
Starting OpenHands...
Running OpenHands as root
15:42:58 - openhands:INFO: openhands_config.py:45 - Using config class None
INFO:     Started server process [10]
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:     172.17.0.1:61794 - "GET / HTTP/1.1" 200 OK
INFO:     172.17.0.1:61794 - "GET /locales/en/translation.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:61808 - "GET /api/options/config HTTP/1.1" 200 OK
INFO:     172.17.0.1:61816 - "GET /favicon.ico HTTP/1.1" 200 OK
INFO:     172.17.0.1:61816 - "GET /api/options/config HTTP/1.1" 200 OK
INFO:     172.17.0.1:61816 - "GET /api/options/config HTTP/1.1" 200 OK
INFO:     172.17.0.1:61808 - "GET /api/github/repositories?sort=pushed&page=1&per_page=100 HTTP/1.1" 200 OK
INFO:     172.17.0.1:65404 - "GET /api/options/config HTTP/1.1" 200 OK
INFO:     172.17.0.1:65404 - "GET / HTTP/1.1" 200 OK
INFO:     172.17.0.1:65404 - "GET /locales/en/translation.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:65412 - "GET /api/options/config HTTP/1.1" 200 OK
INFO:     172.17.0.1:65416 - "GET /favicon.ico HTTP/1.1" 200 OK
INFO:     172.17.0.1:65416 - "GET /api/options/config HTTP/1.1" 200 OK
INFO:     172.17.0.1:65404 - "GET /api/github/repositories?sort=pushed&page=1&per_page=100 HTTP/1.1" 200 OK
15:47:17 - openhands:INFO: manager.py:308 - maybe_start_agent_loop:948090197f934cfcb919c5fd2c0d248b
15:47:17 - openhands:INFO: manager.py:311 - start_agent_loop:948090197f934cfcb919c5fd2c0d248b
15:47:17 - openhands:INFO: codeact_agent.py:90 - Function calling not enabled for model gemini/gemini-2.0-flash-exp. Mocking function calling via prompting.
15:47:17 - openhands:INFO: manager.py:325 - _get_event_stream:948090197f934cfcb919c5fd2c0d248b
15:47:17 - openhands:INFO: manager.py:328 - found_local_agent_loop:948090197f934cfcb919c5fd2c0d248b
INFO:     172.17.0.1:65404 - "POST /api/conversations HTTP/1.1" 200 OK
INFO:     172.17.0.1:65404 - "GET /api/options/config HTTP/1.1" 200 OK
INFO:     ('172.17.0.1', 65134) - "WebSocket /socket.io/?latest_event_id=-1&conversation_id=948090197f934cfcb919c5fd2c0d248b&EIO=4&transport=websocket" [accepted]
15:47:18 - openhands:INFO: listen_socket.py:27 - sio:connect: z3tYzJVl-eVQ5lubAAAB
15:47:18 - openhands:INFO: manager.py:182 - join_conversation:948090197f934cfcb919c5fd2c0d248b:z3tYzJVl-eVQ5lubAAAB
15:47:18 - openhands:INFO: manager.py:325 - _get_event_stream:948090197f934cfcb919c5fd2c0d248b
15:47:18 - openhands:INFO: manager.py:328 - found_local_agent_loop:948090197f934cfcb919c5fd2c0d248b
15:47:18 - openhands:INFO: eventstream_runtime.py:182 - [runtime 948090197f934cfcb919c5fd2c0d248b] Starting runtime with image: docker.all-hands.dev/all-hands-ai/runtime:0.17-nikolaik
15:47:19 - openhands:INFO: eventstream_runtime.py:186 - [runtime 948090197f934cfcb919c5fd2c0d248b] Container started: openhands-runtime-948090197f934cfcb919c5fd2c0d248b. VSCode URL: None
15:47:19 - openhands:INFO: eventstream_runtime.py:194 - [runtime 948090197f934cfcb919c5fd2c0d248b] Waiting for client to become ready at http://host.docker.internal:36095...
/app/entrypoint.sh: line 69:    10 Killed                  $@

openhands-runtime-948090197f934cfcb919c5fd2c0d248b log

2025-01-01 22:12:52 INFO:     Started server process [8]
2025-01-01 22:12:52 INFO:     Waiting for application startup.
2025-01-01 22:12:57 su - root -s /bin/bash << 'EOF'
2025-01-01 22:12:57 sudo chown -R root:root /openhands/.openvscode-server
2025-01-01 22:12:57 cd /workspace
2025-01-01 22:12:57 exec /openhands/.openvscode-server/bin/openvscode-server --host 0.0.0.0 --connection-token 69ffe29e-d80a-478a-b99f-7dc328b560cc --port 30070
2025-01-01 22:12:57 EOF
2025-01-01 22:12:59 [I 2025-01-01 15:12:59.237 KernelGatewayApp] Writing Jupyter server cookie secret to /root/.local/share/jupyter/runtime/jupyter_cookie_secret
2025-01-01 22:12:59 [I 2025-01-01 15:12:59.240 KernelGatewayApp] Jupyter Kernel Gateway 3.0.1 is available at http://0.0.0.0:48934
2025-01-01 22:12:59 Server bound to 0.0.0.0:30070 (IPv4)
2025-01-01 22:12:59 Extension host agent listening on 30070
2025-01-01 22:12:59 
2025-01-01 22:13:00 [15:13:00] 
2025-01-01 22:13:00 
2025-01-01 22:13:00 
2025-01-01 22:13:00 
2025-01-01 22:13:00 
2025-01-01 22:13:00 Web UI available at http://localhost:30070?tkn=69ffe29e-d80a-478a-b99f-7dc328b560cc
2025-01-01 22:13:01 [15:13:00] Extension host agent started.
2025-01-01 22:13:01 [15:13:01] Started initializing default profile extensions in extensions installation folder. file:///root/.openvscode-server/extensions
2025-01-01 22:13:01 [15:13:01] Completed initializing default profile extensions in extensions installation folder. file:///root/.openvscode-server/extensions
2025-01-01 22:13:02 [I 2025-01-01 15:13:02.021 KernelGatewayApp] Kernel started: 7723f3eb-b206-4678-ab3f-70a3c0de9ede
2025-01-01 22:13:02 [I 250101 15:13:02 web:2348] 201 POST /api/kernels (127.0.0.1) 2605.75ms
2025-01-01 22:13:02 [W 2025-01-01 15:13:02.035 KernelGatewayApp] No session ID specified
2025-01-01 22:13:14 [I 250101 15:13:14 web:2348] 101 GET /api/kernels/7723f3eb-b206-4678-ab3f-70a3c0de9ede/channels (127.0.0.1) 12637.69ms
2025-01-01 22:13:14 [I 2025-01-01 15:13:14.672 KernelGatewayApp] Connecting to kernel 7723f3eb-b206-4678-ab3f-70a3c0de9ede.
@mickykurniawan mickykurniawan added the bug Something isn't working label Jan 1, 2025
@mickykurniawan
Copy link
Author

image

@mickykurniawan mickykurniawan changed the title [Bug]: KernelGatewayApp Connecting to kernel 7723f3eb-xxxx-xxxx-xxxx-70a3c0de9ede took long time [Bug]: Agent has stopped, last error: /app/entrypoint.sh: line 69: 10 Killed Jan 1, 2025
@mickykurniawan mickykurniawan changed the title [Bug]: Agent has stopped, last error: /app/entrypoint.sh: line 69: 10 Killed [Bug]: Agent has stopped, last error: /app/entrypoint.sh: line 69: 10 Killed Jan 1, 2025
@mamoodi
Copy link
Collaborator

mamoodi commented Jan 2, 2025

When you say you imported your github repo, do you mean through the github flow? Or do you mean you uploaded it as a zip?

@mickykurniawan
Copy link
Author

mickykurniawan commented Jan 2, 2025

Through github flow.

Anyway, I think it's regardless. When I tried to use the prompt sample, this issue also happened.
As screenshot here #5956 (comment)

@mamoodi
Copy link
Collaborator

mamoodi commented Jan 3, 2025

That's surprising because MacOS is the OS we run into the least issues with.

Can you delete all the OpenHands docker images. And re-run the latest command from the README?

docker run -it --rm --pull=always \
    -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.18-nikolaik \
    -e LOG_ALL_EVENTS=true \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v ~/.openhands-state:/.openhands-state \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name openhands-app \
    docker.all-hands.dev/all-hands-ai/openhands:0.18

It does take a couple of minutes to start after you access localhost. See if you're still hitting it.

@mamoodi mamoodi added the severity:low Minor issues or affecting single user label Jan 3, 2025
@mickykurniawan
Copy link
Author

Will do, and will update 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:low Minor issues or affecting single user
Projects
None yet
Development

No branches or pull requests

2 participants