OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Stuck at Waiting for runtime to start...

Open saijayanth59 opened this issue 7 months ago • 2 comments

I followed all the steps mentioned in development.md to set up the project. However, when I try to start the project It get stuck at (Waiting for runtime to start) no error in logs, Here the UI part

Image

Logs: INFO: 127.0.0.1:49748 - "GET /locales/en/translation.json HTTP/1.1" 200 OK INFO: 127.0.0.1:49748 - "GET /api/options/config HTTP/1.1" 200 OK INFO: 127.0.0.1:49748 - "GET /api/options/config HTTP/1.1" 200 OK INFO: 127.0.0.1:49754 - "GET /api/conversations/4995db3f0a2649ecbf70a5379996756f HTTP/1.1" 200 OK INFO: ('127.0.0.1', 49760) - "WebSocket /socket.io/?latest_event_id=-1&conversation_id=4995db3f0a2649ecbf70a5379996756f&providers_set=&session_api_key=null&EIO=4&transport=websocket" [accepted] INFO: connection open INFO: 127.0.0.1:49754 - "GET /api/settings HTTP/1.1" 200 OK 07:52:43 - openhands:INFO: listen_socket.py:82 - sio:connect: z06ZxRxijYyZRYRrAAAF 07:52:43 - openhands:INFO: standalone_conversation_manager.py:123 - join_conversation:4995db3f0a2649ecbf70a5379996756f:z06ZxRxijYyZRYRrAAAF 07:52:43 - openhands:INFO: standalone_conversation_manager.py:249 - maybe_start_agent_loop:4995db3f0a2649ecbf70a5379996756f 07:52:43 - openhands:INFO: listen_socket.py:123 - Connected to conversation 4995db3f0a2649ecbf70a5379996756f with connection_id z06ZxRxijYyZRYRrAAAF. Replaying event stream... 07:52:43 - openhands:INFO: listen_socket.py:147 - Finished replaying event stream for conversation 4995db3f0a2649ecbf70a5379996756f INFO: 127.0.0.1:34972 - "GET /api/options/config HTTP/1.1" 200 OK INFO: 127.0.0.1:34986 - "GET /api/conversations/4995db3f0a2649ecbf70a5379996756f HTTP/1.1" 200 OK INFO: 127.0.0.1:34982 - "GET /api/settings HTTP/1.1" 200 OK

saijayanth59 avatar May 29 '25 02:05 saijayanth59

Are you running the latest main?

mamoodi avatar May 29 '25 13:05 mamoodi

It is 2 commits behind the current main branch.

commit e208bffadeae6effc370f4015e21d17e8ab6b79a (HEAD -> main, origin/main, origin/HEAD) Author: Graham Neubig [email protected] Date: Wed May 28 18:40:57 2025 -0400

Fix localization issue with hardcoded English strings (#8736)

Co-authored-by: openhands <[email protected]>

saijayanth59 avatar May 29 '25 14:05 saijayanth59

I have faced the same issue with 0.39

Restarting of OpenHands fixes the issue. What I noticed is that Runtime wasn't running even after refreshing the page. Once OpenHands is restarted, it could create runtimes again.

iSevenDays avatar Jun 01 '25 16:06 iSevenDays

@iSevenDays Hey thanks it worked for me!

saijayanth59 avatar Jun 02 '25 07:06 saijayanth59

I hit this issue a couple of times as well on 0.43 local setup (Ubuntu 24.04), but with a "Connection reset by peer" error eventually displayed on the terminal. Restarting didn't fix it immediately. I also started VS Code, then it worked on the next restart. Not sure if that's plausibly related given the sandbox architecture, or if I just got lucky.

eloquence avatar Jun 13 '25 23:06 eloquence

met same issue with 0.49, restart openhands not work for me, how can I fix this

zhong1221 avatar Jul 17 '25 03:07 zhong1221

I hit the same issue with the lastest version(0.49) .

Hustrookies avatar Jul 17 '25 09:07 Hustrookies

@zhong1221 and @Hustrookies are you able to open new issues with your information please? The OS you are running, how you are running OpenHands and any additional info will be helpful.

mamoodi avatar Jul 17 '25 14:07 mamoodi