Open sbera7 opened 2 months ago
Does this occur when you're using OpenDevin or OpenDevin doesn't even initialize?
When I am using OpenDevin
@xingyaoww I remember you mentioned that this model isn't very good with OpenDevin and not capable enough. Is this the issue here or is the web disconnected something else entirely?
I do not know, I have to look into.
Which browser are you using?
brave
Could you check in Chrome/Edge or another browser except Firefox?
https://github.com/OpenDevin/OpenDevin/issues/2625#issuecomment-2194038303
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.
Experiencing a websocket disconnected issue as well, seems to occur randomly.
Using chrome Browser and GTP-4o.
session.py:66 - WebSocket disconnected, sid: ce327121-f285-4a56-9edd-9cc6a1aa99c0 ERROR: Exception in ASGI application Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 332, in asgi_send await self.send(data) # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 635, in send await self.ensure_open() File "/app/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 939, in ensure_open raise self.connection_closed_exc() websockets.exceptions.ConnectionClosedError: no close frame received or sent The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/starlette/websockets.py", line 97, in send await self._send(message) File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 50, in sender await send(message) File "/app/.venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 345, in asgi_send raise ClientDisconnected from exc uvicorn.protocols.utils.ClientDisconnected During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 244, in run_asgi result = await self.app(self.scope, self.asgi_receive, self.asgi_send) # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in call await super().call(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/applications.py", line 123, in call await self.middleware_stack(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 151, in call await self.app(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/base.py", line 103, in call await self.app(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 77, in call await self.app(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in call await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app raise exc File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 756, in call await self.middleware_stack(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 776, in app await route.handle(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 373, in handle await self.app(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 96, in app await wrap_app_handling_exceptions(app, session)(scope, receive, send) File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app raise exc File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 94, in app await func(session) File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 348, in app await dependant.call(**values) File "/app/opendevin/server/listen.py", line 264, in websocket_endpoint await websocket.send_json({'token': token, 'status': 'ok'}) File "/app/.venv/lib/python3.12/site-packages/starlette/websockets.py", line 198, in send_json await self.send({"type": "websocket.send", "text": text}) File "/app/.venv/lib/python3.12/site-packages/starlette/websockets.py", line 100, in send raise WebSocketDisconnect(code=1006) starlette.websockets.WebSocketDisconnect INFO: ('172.17.0.1', 53218) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiJjZTMyNzEyMS1mMjg1LTRhNTYtOWVkZC05Y2M2YTFhYTk5YzAifQ.BNxF4pGx6VEmzIp4ZzmSrPOJNA9l6LPf9pqU6R86FVs&latest_event_id=15" [accepted] INFO: connection open
I am experiencing a similar issue. Happens every couple of minutes.
I've started opendevin with
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 openhands-app-$(date +%Y%m%d%H%M%S) ghcr.io/all-hands-ai/openhands:0.8_amd64
Error message:
22:22:55 - opendevin:INFO: session.py:66 - WebSocket disconnected, sid: 855a1d05-6f21-42b4-af16-f9e22fe6a58d
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 332, in asgi_send
await self.send(data) # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 635, in send
await self.ensure_open()
File "/app/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 939, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: no close frame received or sent
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/starlette/websockets.py", line 97, in send
await self._send(message)
File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 50, in sender
await send(message)
File "/app/.venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 345, in asgi_send
raise ClientDisconnected from exc
uvicorn.protocols.utils.ClientDisconnected
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 244, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send) # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 151, in __call__
await self.app(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/base.py", line 103, in __call__
await self.app(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 77, in __call__
await self.app(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 373, in handle
await self.app(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 96, in app
await wrap_app_handling_exceptions(app, session)(scope, receive, send)
File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/app/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 94, in app
await func(session)
File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 348, in app
await dependant.call(**values)
File "/app/opendevin/server/listen.py", line 264, in websocket_endpoint
await websocket.send_json({'token': token, 'status': 'ok'})
File "/app/.venv/lib/python3.12/site-packages/starlette/websockets.py", line 198, in send_json
await self.send({"type": "websocket.send", "text": text})
File "/app/.venv/lib/python3.12/site-packages/starlette/websockets.py", line 100, in send
raise WebSocketDisconnect(code=1006)
starlette.websockets.WebSocketDisconnect
@remod @lapochka8 Can't seem to reproduce this issue. Could you list the steps you took that caused the error?
One thing I notice common between the two of you is the using a Python 3.12 venv. The official supporting Python version for OpenHands is 3.11, could you confirm that you still encounter the same issue after using 3.11 instead?
Is there an existing issue for the same bug?
Describe the bug
Also showing "Connection failed. Retry..." in UI
Current OpenDevin version
Installation and Configuration
Model and Agent
mistral:7b
Operating System
Linux
Reproduction Steps
No response
Logs, Errors, Screenshots, and Additional Context
No response