Closed chrisbward closed 11 months ago
Sorry to hear this. There are a few things that would help me debug:
I can take over here.
I'm sorry, but I don't feel I have any other logs or information to share. I simply do not know where to find them
Thanks for taking over : )
To get the VS Code console logs you can
These might be helpful to see, as I think there's a chance that the server is just failing somewhere around the installation step. Also relevant: do you have Continue installed locally (this is the default) or installed on the remote host?
Hi again :)
Here it is, but the console looks pretty clean and without a lot of error too me.
@bottiger This is actually very informative!
This line of code exists in the setup
if (serverUrl !== "http://localhost:65432" || manuallyRunningServer) {
console.log("Continue server is being run manually, skipping start");
return;
}
Could you check the vscode settings for continue (cmd+comma and then search "Continue")? It looks like either the Server URL or Manually Running Server settings are causing this. If you set them to "http://localhost:65432" and unchecked, then reload the window, the server should install and start running
You are indeed correct! Now it works.
I have to admit I changed the server url previously, but I do not recall why. Anyway - thank you for the help!
@chrisbward there is now an explicit solution to your problem: If you check the "Manually Running Server" box in VS Code settings for Continue, then it will no longer attempt to kill the running server. (you can get to these settings by cmd+comma and then searching "Continue")
这就没有解决办法了吗,总是卡在Continue Server Starting,运行了手动的服务也没用。配置都没有问题。
@ahkimkoo can you click "View Logs" under the spinner like here and let me know if there are any errors appearing in the logs?
@ahkimkoo can you click "View Logs" under the spinner like here and let me know if there are any errors appearing in the logs?
`[2023-09-11 20:04:02,079] [DEBUG] Closing ide websocket [2023-09-11 20:04:02,094] [DEBUG] Health check [2023-09-11 20:04:02,097] [DEBUG] Health check [2023-09-11 20:04:02,100] [DEBUG] Health check [2023-09-11 20:04:02,493] [DEBUG] Testing logs [2023-09-11 20:16:15,893] [DEBUG] Accepted websocket connection from Address(host='127.0.0.1', port=57474) [2023-09-11 20:16:15,939] [DEBUG] Received message while initializing workspaceDirectory [2023-09-11 20:16:15,939] [DEBUG] Received message while initializing uniqueId [2023-09-11 20:16:15,941] [DEBUG] Starting MeiliSearch... [2023-09-11 20:16:16,904] [DEBUG] New session: None [2023-09-11 20:16:17,033] [DEBUG] Loaded Continue config file from /home/cherokee/.continue/config.py [2023-09-11 20:16:17,676] [DEBUG] Testing logs [2023-09-11 20:16:18,251] [DEBUG] Cleaning up sessions [2023-09-11 20:18:26,335] [DEBUG] Starting context manager [2023-09-11 20:18:26,337] [WARNING] Failed to load saved_context_groups.json: Expecting value: line 1 column 1 (char 0). Reverting to empty list. [2023-09-11 20:20:37,442] [DEBUG] Sending session id: 854eeaef-2f9c-4a90-b968-46d57be707b2 [2023-09-11 20:20:37,448] [WARNING] Meilisearch is not running. [2023-09-11 20:20:37,519] [DEBUG] Received websocket connection at url: ws://localhost:65432/gui/ws?session_id=854eeaef-2f9c-4a90-b968-46d57be707b2 [2023-09-11 20:20:37,519] [DEBUG] Session started [2023-09-11 20:20:37,520] [DEBUG] Registered websocket for session 854eeaef-2f9c-4a90-b968-46d57be707b2 [2023-09-11 20:20:37,536] [DEBUG] Received GUI message {"messageType":"main_input","data":{"input":"hii"}} [2023-09-11 20:27:10,934] [DEBUG] Received GUI message {"messageType":"main_input","data":{"input":"hii"}} [2023-09-11 20:33:43,872] [ERROR] Error while running step: Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 387, in _run_singular_step observation = await step(self.continue_sdk)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/main.py", line 368, in call return await self.run(sdk)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/plugins/steps/chat.py", line 106, in run async for chunk in generator:
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/init.py", line 270, in stream_chat async for chunk in self._stream_chat(messages=messages, options=options):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/maybe_proxy_openai.py", line 45, in _stream_chat async for item in resp:
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/proxy_server.py", line 66, in _stream_chat async with self._client_session.post(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in aenter self._resp = await self._coro
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/client.py", line 467, in _request with timer:
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in exit raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
TimeoutError() [2023-09-11 20:35:54,916] [CRITICAL] Exception caught from async task: Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/util/create_async_task.py", line 21, in callback future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 537, in create_title title = await self.continue_sdk.models.medium.complete(
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/init.py", line 220, in complete completion = await self._complete(prompt=prompt, options=options)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/maybe_proxy_openai.py", line 34, in _complete return await self.llm._complete(prompt, options)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/proxy_server.py", line 53, in _complete async with self._client_session.post(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in aenter self._resp = await self._coro
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/client.py", line 467, in _request with timer:
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in exit raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
[2023-09-11 20:40:17,073] [ERROR] Error while running step: Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 387, in _run_singular_step observation = await step(self.continue_sdk)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/main.py", line 368, in call return await self.run(sdk)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/plugins/steps/chat.py", line 106, in run async for chunk in generator:
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/init.py", line 270, in stream_chat async for chunk in self._stream_chat(messages=messages, options=options):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/maybe_proxy_openai.py", line 45, in _stream_chat async for item in resp:
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/proxy_server.py", line 66, in _stream_chat async with self._client_session.post(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in aenter self._resp = await self._coro
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/client.py", line 467, in _request with timer:
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in exit raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
TimeoutError() [2023-09-11 20:42:28,133] [CRITICAL] Exception caught from async task: Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/util/create_async_task.py", line 21, in callback future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 537, in create_title title = await self.continue_sdk.models.medium.complete(
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/init.py", line 220, in complete completion = await self._complete(prompt=prompt, options=options)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/maybe_proxy_openai.py", line 34, in _complete return await self.llm._complete(prompt, options)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/llm/proxy_server.py", line 53, in _complete async with self._client_session.post(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in aenter self._resp = await self._coro
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/client.py", line 467, in _request with timer:
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in exit raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
[2023-09-11 20:42:29,222] [CRITICAL] Exception caught from async task: Traceback (most recent call last):
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data message = await self.read_message()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message frame = await self.read_data_frame(max_size=self.max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame frame = await self.read_frame(max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame frame = await Frame.read(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read data = await reader(2)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 708, in readexactly await self._wait_for_data('readexactly')
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 501, in _wait_for_data await self._waiter
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 285, in await yield self # This tells Task to wait for completion.
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 196, in result raise exc
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/util/create_async_task.py", line 21, in callback future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 563, in accept_user_input await self.run_from_step(UserInputStep(user_input=user_input))
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 493, in run_from_step await self._run_singular_step(next_step, is_future_step)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 440, in _run_singular_step await self.update_subscribers()
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 224, in update_subscribers await callback(full_state)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 84, in on_update await session_manager.send_ws_data(
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 175, in send_ws_data await self.sessions[session_id].ws.send_json(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 173, in send_json await self.send({"type": "websocket.send", "text": text})
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 85, in send await self._send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in sender await send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 327, in asgi_send await self.send(data) # type: ignore[arg-type]
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 635, in send await self.ensure_open()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 935, in ensure_open raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1011 (unexpected error) keepalive ping timeout; no close frame received
[2023-09-11 20:42:29,388] [DEBUG] IDE websocket disconnected [2023-09-11 20:42:29,388] [DEBUG] Closing ide websocket [2023-09-11 20:42:29,453] [DEBUG] GUI websocket disconnected [2023-09-11 20:42:29,454] [DEBUG] Closing gui websocket [2023-09-11 20:42:29,456] [DEBUG] Removing session: 854eeaef-2f9c-4a90-b968-46d57be707b2 [2023-09-11 20:42:30,560] [WARNING] Session 854eeaef-2f9c-4a90-b968-46d57be707b2 not found [2023-09-11 20:42:30,560] [ERROR] Error while running step: Traceback (most recent call last):
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data message = await self.read_message()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message frame = await self.read_data_frame(max_size=self.max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame frame = await self.read_frame(max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame frame = await Frame.read(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read data = await reader(2)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 708, in readexactly await self._wait_for_data('readexactly')
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 501, in _wait_for_data await self._waiter
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 285, in await yield self # This tells Task to wait for completion.
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 196, in result raise exc
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/util/create_async_task.py", line 21, in callback future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 563, in accept_user_input await self.run_from_step(UserInputStep(user_input=user_input))
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 493, in run_from_step await self._run_singular_step(next_step, is_future_step)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 440, in _run_singular_step await self.update_subscribers()
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 224, in update_subscribers await callback(full_state)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 84, in on_update await session_manager.send_ws_data(
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 175, in send_ws_data await self.sessions[session_id].ws.send_json(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 173, in send_json await self.send({"type": "websocket.send", "text": text})
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 85, in send await self._send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in sender await send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 327, in asgi_send await self.send(data) # type: ignore[arg-type]
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 635, in send await self.ensure_open()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 935, in ensure_open raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1011 (unexpected error) keepalive ping timeout; no close frame received
Error in the Continue server [2023-09-11 20:42:30,674] [WARNING] Session 854eeaef-2f9c-4a90-b968-46d57be707b2 not found [2023-09-11 20:42:30,675] [DEBUG] Accepted websocket connection from Address(host='127.0.0.1', port=37286) [2023-09-11 20:42:30,676] [DEBUG] Accepted websocket connection from Address(host='127.0.0.1', port=44824) [2023-09-11 20:42:30,677] [CRITICAL] Exception caught from async task: Traceback (most recent call last):
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data message = await self.read_message()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message frame = await self.read_data_frame(max_size=self.max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame frame = await self.read_frame(max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame frame = await Frame.read(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read data = await reader(2)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 708, in readexactly await self._wait_for_data('readexactly')
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 501, in _wait_for_data await self._waiter
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 285, in await yield self # This tells Task to wait for completion.
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 196, in result raise exc
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/util/create_async_task.py", line 21, in callback future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 232, in __step result = coro.send(None)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 563, in accept_user_input await self.run_from_step(UserInputStep(user_input=user_input))
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 493, in run_from_step await self._run_singular_step(next_step, is_future_step)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 440, in _run_singular_step await self.update_subscribers()
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 224, in update_subscribers await callback(full_state)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 84, in on_update await session_manager.send_ws_data(
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 175, in send_ws_data await self.sessions[session_id].ws.send_json(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 173, in send_json await self.send({"type": "websocket.send", "text": text})
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 85, in send await self._send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in sender await send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 327, in asgi_send await self.send(data) # type: ignore[arg-type]
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 635, in send await self.ensure_open()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 944, in ensure_open raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1011 (unexpected error) keepalive ping timeout; no close frame received
[2023-09-11 20:42:30,754] [CRITICAL] Exception caught from async task: Traceback (most recent call last):
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data message = await self.read_message()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message frame = await self.read_data_frame(max_size=self.max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame frame = await self.read_frame(max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame frame = await Frame.read(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read data = await reader(2)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 708, in readexactly await self._wait_for_data('readexactly')
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 501, in _wait_for_data await self._waiter
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 285, in await yield self # This tells Task to wait for completion.
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 196, in result raise exc
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/util/create_async_task.py", line 21, in callback future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 232, in __step result = coro.send(None)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 286, in handle_highlighted_code await self.update_subscribers()
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 224, in update_subscribers await callback(full_state)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 84, in on_update await session_manager.send_ws_data(
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 175, in send_ws_data await self.sessions[session_id].ws.send_json(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 173, in send_json await self.send({"type": "websocket.send", "text": text})
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 85, in send await self._send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in sender await send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 327, in asgi_send await self.send(data) # type: ignore[arg-type]
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 635, in send await self.ensure_open()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 944, in ensure_open raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1011 (unexpected error) keepalive ping timeout; no close frame received
[2023-09-11 20:42:30,947] [WARNING] Session 854eeaef-2f9c-4a90-b968-46d57be707b2 not found [2023-09-11 20:42:30,947] [ERROR] Error while running step: Traceback (most recent call last):
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 234, in __step result = coro.throw(exc)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data message = await self.read_message()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message frame = await self.read_data_frame(max_size=self.max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame frame = await self.read_frame(max_size)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame frame = await Frame.read(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read data = await reader(2)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 708, in readexactly await self._wait_for_data('readexactly')
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/streams.py", line 501, in _wait_for_data await self._waiter
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 285, in await yield self # This tells Task to wait for completion.
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 196, in result raise exc
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/libs/util/create_async_task.py", line 21, in callback future.result()
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb)
File "/opt/anaconda3/envs/continue/lib/python3.10/asyncio/tasks.py", line 232, in __step result = coro.send(None)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 563, in accept_user_input await self.run_from_step(UserInputStep(user_input=user_input))
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 493, in run_from_step await self._run_singular_step(next_step, is_future_step)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 440, in _run_singular_step await self.update_subscribers()
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/core/autopilot.py", line 224, in update_subscribers await callback(full_state)
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 84, in on_update await session_manager.send_ws_data(
File "/home/project/hangyanshe/continue/continuedev/src/continuedev/server/session_manager.py", line 175, in send_ws_data await self.sessions[session_id].ws.send_json(
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 173, in send_json await self.send({"type": "websocket.send", "text": text})
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/websockets.py", line 85, in send await self._send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in sender await send(message)
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 327, in asgi_send await self.send(data) # type: ignore[arg-type]
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 635, in send await self.ensure_open()
File "/opt/anaconda3/envs/continue/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 944, in ensure_open raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1011 (unexpected error) keepalive ping timeout; no close frame received
Error in the Continue server [2023-09-11 20:42:34,071] [WARNING] Session 854eeaef-2f9c-4a90-b968-46d57be707b2 not found [2023-09-11 20:42:34,072] [WARNING] Error sending IDE message, websocket probably closed: Unexpected ASGI message 'websocket.send', after sending 'websocket.close'. [2023-09-11 20:42:34,162] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,162] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,162] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,162] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,162] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,162] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,162] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,162] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,163] [DEBUG] Received message while initializing highlightedCodePush [2023-09-11 20:42:34,163] [DEBUG] Received message while initializing workspaceDirectory [2023-09-11 20:42:34,163] [DEBUG] Received message while initializing uniqueId [2023-09-11 20:42:34,214] [DEBUG] Starting MeiliSearch... [2023-09-11 20:42:34,216] [DEBUG] Starting MeiliSearch... [2023-09-11 21:05:06,625] [DEBUG] IDE websocket disconnected [2023-09-11 21:05:06,625] [DEBUG] Closing ide websocket [2023-09-12 09:25:34,362] [DEBUG] Testing logs [2023-09-12 09:27:52,094] [DEBUG] Health check [2023-09-12 09:27:52,122] [DEBUG] Accepted websocket connection from Address(host='127.0.0.1', port=50024) [2023-09-12 09:27:52,155] [DEBUG] Starting MeiliSearch... [2023-09-12 09:27:52,187] [DEBUG] Received message while initializing workspaceDirectory [2023-09-12 09:27:52,187] [DEBUG] Received message while initializing uniqueId [2023-09-12 09:27:53,112] [DEBUG] New session: None [2023-09-12 09:27:53,410] [DEBUG] Loaded Continue config file from /home/cherokee/.continue/config.py [2023-09-12 09:30:04,460] [DEBUG] Starting context manager [2023-09-12 09:30:04,467] [WARNING] Failed to load saved_context_groups.json: Expecting value: line 1 column 1 (char 0). Reverting to empty list. [2023-09-12 09:32:15,601] [DEBUG] Sending session id: 9d98ce06-53dd-414d-97e0-3fbbe5d812b0 [2023-09-12 09:32:15,609] [DEBUG] IDE websocket disconnected [2023-09-12 09:32:15,609] [DEBUG] Closing ide websocket [2023-09-12 09:34:26,605] [DEBUG] Accepted websocket connection from Address(host='127.0.0.1', port=55076) [2023-09-12 09:34:26,608] [WARNING] Meilisearch is not running. [2023-09-12 09:34:26,669] [DEBUG] Received message while initializing highlightedCodePush [2023-09-12 09:34:26,669] [DEBUG] Received message while initializing highlightedCodePush [2023-09-12 09:34:26,669] [DEBUG] Received message while initializing highlightedCodePush [2023-09-12 09:34:26,669] [DEBUG] Received message while initializing highlightedCodePush [2023-09-12 09:34:26,669] [DEBUG] Received message while initializing highlightedCodePush [2023-09-12 09:34:26,670] [DEBUG] Received message while initializing fileSaved [2023-09-12 09:34:26,670] [DEBUG] Received message while initializing highlightedCodePush [2023-09-12 09:34:26,670] [DEBUG] Received message while initializing highlightedCodePush [2023-09-12 09:34:26,670] [DEBUG] Received message while initializing workspaceDirectory [2023-09-12 09:34:26,670] [DEBUG] Received message while initializing uniqueId [2023-09-12 09:36:37,686] [DEBUG] New session: None [2023-09-12 09:36:37,690] [DEBUG] Loaded Continue config file from /home/cherokee/.continue/config.py [2023-09-12 09:38:48,748] [DEBUG] Starting context manager [2023-09-12 09:38:48,749] [WARNING] Failed to load saved_context_groups.json: Expecting value: line 1 column 1 (char 0). Reverting to empty list. [2023-09-12 09:40:59,828] [DEBUG] Starting MeiliSearch... [2023-09-12 09:40:59,871] [DEBUG] Sending session id: f90f34d7-793e-4354-95d6-a638981a6daf [2023-09-12 09:40:59,873] [WARNING] Meilisearch is not running. [2023-09-12 09:40:59,874] [DEBUG] IDE websocket disconnected [2023-09-12 09:40:59,874] [DEBUG] Closing ide websocket [2023-09-12 09:43:10,914] [DEBUG] Accepted websocket connection from Address(host='127.0.0.1', port=50378) [2023-09-12 09:43:10,914] [DEBUG] Received websocket connection at url: ws://localhost:65432/gui/ws?session_id=f90f34d7-793e-4354-95d6-a638981a6daf [2023-09-12 09:43:10,915] [DEBUG] Session started [2023-09-12 09:43:10,915] [DEBUG] Registered websocket for session f90f34d7-793e-4354-95d6-a638981a6daf [2023-09-12 09:43:10,917] [DEBUG] Accepted websocket connection from Address(host='127.0.0.1', port=42674) [2023-09-12 09:43:10,919] [DEBUG] Error in ide websocket: no close frame received or sent `
@chrisbward @bottiger I have a big update to share here: we are now shipping the extension with the binary pre-installed, which should stop all of these problems from happening
@ahkimkoo Thanks for sharing the logs! I think our new pre-installed binary should also solve the error you are seeing here and we've taken measures to fix the meilisearch problem in the logs
I also encountered the issue of "Continue Server Starting". The VSCode plugin is unable to connect to the server.
Then the continue plugin has been unable to connect to the server.
I encounter a similar problem as @ishotoli, I am running everything on a Ubuntu 20.04 OS and also get the confirmation in the VS Code devtools that the server is running manually but get the following info message:
INFO: ('127.0.0.1', 47950) - "WebSocket /gui/socket.io/?window_id=a16a43bc-0ea0-42e7-ba1e-591aa60a116e&EIO=4&transport=websocket" 403 INFO: connection failed (403 Forbidden) INFO: connection closed INFO: ('127.0.0.1', 47966) - "WebSocket /ide/socket.io/?window_info=%7B%22window_id%22%3A%22a16a43bc-0ea0-42e7-ba1e-591aa60a116e%22%2C%22workspace_directory%22%3A%22%2Fhome%2Fandreas%2Fvalisens%2Fcameras%2Fworkspace%2FROS%2Fcatkin_ws%2Fsrc%2Fflir_adk_ros%22%2C%22unique_id%22%3A%223278cb5e35cd9add516d4ae9eadbaabeff7614f08f50212237972d04cdcb25be%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.80.2%22%7D%7D&EIO=4&transport=websocket" 403 INFO: connection failed (403 Forbidden) INFO: connection closed INFO: ('127.0.0.1', 33710) - "WebSocket /gui/socket.io/?window_id=a16a43bc-0ea0-42e7-ba1e-591aa60a116e&EIO=4&transport=websocket" 403 INFO: connection failed (403 Forbidden) INFO: connection closed INFO: ('127.0.0.1', 33724) - "WebSocket /ide/socket.io/?window_info=%7B%22window_id%22%3A%22a16a43bc-0ea0-42e7-ba1e-591aa60a116e%22%2C%22workspace_directory%22%3A%22%2Fhome%2Fandreas%2Fvalisens%2Fcameras%2Fworkspace%2FROS%2Fcatkin_ws%2Fsrc%2Fflir_adk_ros%22%2C%22unique_id%22%3A%223278cb5e35cd9add516d4ae9eadbaabeff7614f08f50212237972d04cdcb25be%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.80.2%22%7D%7D&EIO=4&transport=websocket" 403 INFO: connection failed (403 Forbidden) INFO: connection closed INFO: ('127.0.0.1', 33736) - "WebSocket /gui/socket.io/?window_id=a16a43bc-0ea0-42e7-ba1e-591aa60a116e&EIO=4&transport=websocket" 403 INFO: connection failed (403 Forbidden) INFO: connection closed
Same with IntelliJ plugin
@ishotoli Could you share which version of the server and extension you used? There's an incompatibility between certain versions of server/extension that would cause this error. Would be helpful to know how/when you installed so that we can help users avoid this problem
@awied1404 same question here: could you share server/extension versions?
For the extension I am using v0.6.3 and the server I got the latest version from https://continue.dev/docs/walkthroughs/manually-run-continue. I downloaded it two weeks ago. I was trying to get the version here from the executable with a --version flag that seem to be ignored at the moment. Also I don't find the version in the logs from the server.
@awied1404 there's a good chance this was the cause. We changed the server communication protocol from websockets to socket.io I believe within the last two weeks. So first thing you might try is the newest version of the binary (it should be updated at that same link)
The other thing to make sure of: are you starting the server binary yourself, or trying to place it in the correct directory so that the extension can start it on its own?
Edit: I just noticed that you mentioned you are running Ubuntu 20.04. We have an incompatibility with this for the time being because of a change in a dependency requiring a different SQLite version. Working on fixing it this week, but before then you might have to use pip install continuedev && python -m continuedev
I had the problem with the sqlite version when using the pip installation candidate, didn't have it with the binary actually. I was starting the server on my own. Did you ever encounter these problems with ubuntu 22.04? I am planning to upgrade my os anytime soon anyhow
We are issuing a similar problem with the manual started server.
We tried to deploy the server within a container (official python image, 3.10, which runs Debian). Debug Console shows the following message
"WebSocket connection to 'ws://123.123.123.123:8082/gui/socket.io/?window_id=0c38bb21-fc2c-4fdf-8d34-e8bb5ec7fced&EIO=4&transport=websocket'
(Port 8082 is mapped to 65432 of the container).
In VSCode, the server hangs during starting process, Logs show:
[2023-11-27 11:56:59] [WARNING] Error adding document to meilisearch: MeilisearchCommunicationError, All connection attempts failed
I can provide more information if needed :}
Additional: Tried both, regular release and pre-release versions of the vscode extension
Same behaviour when running outside of the python container.
Python: 3.10
OS: Fedora 39
Installed via: pip install continuedev
Started via: python -m continuedev --host 0.0.0.0
The server logs stat an active connection:
INFO: ('123.123.123.123', 50117) - "WebSocket /socket.io/?window_info=%7B%22window_id%22%3A%22305bf971-f159-46d8-af25-cad6f46bacce%22%2C%22workspace_directory%22%3A%22C%3A%5C%5CUsers%5C%5Cf.foerster%22%2C%22unique_id%22%3A%22d835c95b85adba90d12636d1edee8aedb44576802058b4087cba19f1f528688f%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.84.2%22%7D%7D&EIO=4&transport=websocket" [accepted]
INFO: connection open
@ahkimkoo @VfBfoerst @awied1404 @ishotoli I have very good news to share: we've removed the dependency on the Python server, so you can now use Continue without any of these connection issues (there is nothing to connect to other than the language model however you choose to set it up).
This is available in the VS Code pre-release (v0.7.50+) and soon for JetBrains
Now available in JetBrains and as the main extension for VS Code. Going to close the issue, feel free to open another for separate problems!
I've observed this issue; https://github.com/continuedev/continue/issues/311
So I followed the troubleshooting guide and decided to start the server manually - and it's up.
When I open the extension in VS Code, it kills the server process and the spinner continues.
I start the process again manually and it just hangs with the spinner still.