Closed gecexgokyuzu closed 10 months ago
@gecexgokyuzu I know the potential source of the unclosed session, so I should be able to fix this for the next release.
Are there any critical side-effects of this error, or is Continue able to operate as usual?
the continue server fails but restarting the pc does close that unclosed session rarely happens btwSent from my iPhoneOn 9 Nov 2023, at 23:27, Nate Sesti @.***> wrote: @gecexgokyuzu I know the potential source of the unclosed session, so I should be able to fix this for the next release. Are there any critical side-effects of this error, or is Continue able to operate as usual?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
I’ve found the issues root, it specifically happens when im on a different repository and click on the selected line range label above the prompt box. so it opens the file from the other directory and the unclosed session loop starts rolling in the terminal.Sent from my iPhoneOn 10 Nov 2023, at 08:52, Hakan Yüksel Derin (gecexgokyuzu) @.> wrote:the continue server fails but restarting the pc does close that unclosed session rarely happens btwSent from my iPhoneOn 9 Nov 2023, at 23:27, Nate Sesti @.> wrote: @gecexgokyuzu I know the potential source of the unclosed session, so I should be able to fix this for the next release. Are there any critical side-effects of this error, or is Continue able to operate as usual?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
@gecexgokyuzu I just cleaned up what I think was the source of the unclosed client session and checked by doing the same "open file from another directory" flow as you described. Now not seeing the unclosed client session loop.
Can you verify in the latest versions (pre-release is 0.7.4+) whether this is fixed for you?
hey Nate!
the issue seems to persist, and this time it directly gets into the infinite loop without even doing anything, here is the console output:
PS D:\Yazılım\WEBSİTELERİ\CMHLIFESTYLE\api> python -m continuedev
__/__ _ /__(_)___ ___ / __ _ \ / / _ / / / \ / / / // / / / // / / / / // /_/ / / / __/ __/ // // \/ // // /_/ \,/ \/
INFO: Started server process [16980] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://127.0.0.1:65432 (Press CTRL+C to quit) INFO: ('127.0.0.1', 5103) - "WebSocket / socket.io/?window_id=ffdc47f4-eefa-414d-8819-a1656cd9b0f1&EIO=4&transport=websocket" [accepted] INFO: connection open INFO: 127.0.0.1:5111 - "GET /slash_commands HTTP/1.1" 200 OK INFO: 127.0.0.1:5112 - "GET /context_providers HTTP/1.1" 200 OK INFO: ('127.0.0.1', 5114) - "WebSocket / socket.io/?window_info=%7B%22window_id%22%3A%22ffdc47f4-eefa-414d-8819-a1656cd9b0f1%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%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 INFO: ('127.0.0.1', 5115) - "WebSocket / socket.io/?window_info=%7B%22window_id%22%3A%223cdb068a-4a96-4bf7-8820-f53784cfb5a1%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Capi%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%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 [2023-11-20 13:33:08] [DEBUG] Starting MeiliSearch... [2023-11-20 13:33:08] [INFO] Meilisearch started at http://localhost:7700 Cancelled task listDirectoryContents INFO: ('127.0.0.1', 5354) - "WebSocket / socket.io/?window_info=%7B%22window_id%22%3A%22ffdc47f4-eefa-414d-8819-a1656cd9b0f1%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%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 Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD2A7050> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD187890> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD2A5710> INFO: connection closed INFO: connection closed INFO: ('127.0.0.1', 5375) - "WebSocket / socket.io/?window_info=%7B%22window_id%22%3A%22ffdc47f4-eefa-414d-8819-a1656cd9b0f1%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%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 Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD1A5690> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD1A6E90> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD1A5690>
On Thu, 16 Nov 2023 at 23:06, Nate Sesti @.***> wrote:
@gecexgokyuzu https://github.com/gecexgokyuzu I just cleaned up what I think was the source of the unclosed client session and checked by doing the same "open file from another directory" flow as you described. Now not seeing the unclosed client session loop.
Can you verify in the latest versions (pre-release is 0.7.4+) whether this is fixed for you?
— Reply to this email directly, view it on GitHub https://github.com/continuedev/continue/issues/611#issuecomment-1815315712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYWPMVDA2ZAL5AB6QYYRDLLYEZ56ZAVCNFSM6AAAAAA7EQGRTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJVGMYTKNZRGI . You are receiving this because you were mentioned.Message ID: @.***>
also my local server version is like below:
Name: continuedev Version: 0.1.75 Summary: Home-page: Author: Nate Sesti Author-email: @.*** License: Location: C:\Users\gecexgokyuzu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages Requires: anthropic, boltons, bs4, chevron, chromadb, directory-tree, fastapi, huggingface-hub, jsonref, jsonschema, meilisearch-python-async, nest-asyncio, openai, posthog, psutil, pydantic, pygithub, python-dotenv, python-lsp-server, python-socketio, redbaron, replicate, ripgrepy, socksio, tiktoken, tree-sitter, tree-sitter-languages, typer, urllib3, uvicorn, websockets Required-by:
On Mon, 20 Nov 2023 at 13:35, Hakan Yüksel Derin @.***> wrote:
hey Nate!
the issue seems to persist, and this time it directly gets into the infinite loop without even doing anything, here is the console output:
PS D:\Yazılım\WEBSİTELERİ\CMHLIFESTYLE\api> python -m continuedev
__/__ _ /__(_)___ ___ / __ _ \ / / _ / / / \ / / / // / / / // / / / / // /_/ / / / __/ __/ // // \/ // // /_/ \,/ \/
INFO: Started server process [16980] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://127.0.0.1:65432 (Press CTRL+C to quit) INFO: ('127.0.0.1', 5103) - "WebSocket / socket.io/?window_id=ffdc47f4-eefa-414d-8819-a1656cd9b0f1&EIO=4&transport=websocket" [accepted] INFO: connection open INFO: 127.0.0.1:5111 - "GET /slash_commands HTTP/1.1" 200 OK INFO: 127.0.0.1:5112 - "GET /context_providers HTTP/1.1" 200 OK INFO: ('127.0.0.1', 5114) - "WebSocket / socket.io/?window_info=%7B%22window_id%22%3A%22ffdc47f4-eefa-414d-8819-a1656cd9b0f1%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%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 INFO: ('127.0.0.1', 5115) - "WebSocket / socket.io/?window_info=%7B%22window_id%22%3A%223cdb068a-4a96-4bf7-8820-f53784cfb5a1%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Capi%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%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 [2023-11-20 13:33:08] [DEBUG] Starting MeiliSearch... [2023-11-20 13:33:08] [INFO] Meilisearch started at http://localhost:7700 Cancelled task listDirectoryContents INFO: ('127.0.0.1', 5354) - "WebSocket / socket.io/?window_info=%7B%22window_id%22%3A%22ffdc47f4-eefa-414d-8819-a1656cd9b0f1%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%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 Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD2A7050> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD187890> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD2A5710> INFO: connection closed INFO: connection closed INFO: ('127.0.0.1', 5375) - "WebSocket / socket.io/?window_info=%7B%22window_id%22%3A%22ffdc47f4-eefa-414d-8819-a1656cd9b0f1%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%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 Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD1A5690> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD1A6E90> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000214CD1A5690>
On Thu, 16 Nov 2023 at 23:06, Nate Sesti @.***> wrote:
@gecexgokyuzu https://github.com/gecexgokyuzu I just cleaned up what I think was the source of the unclosed client session and checked by doing the same "open file from another directory" flow as you described. Now not seeing the unclosed client session loop.
Can you verify in the latest versions (pre-release is 0.7.4+) whether this is fixed for you?
— Reply to this email directly, view it on GitHub https://github.com/continuedev/continue/issues/611#issuecomment-1815315712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYWPMVDA2ZAL5AB6QYYRDLLYEZ56ZAVCNFSM6AAAAAA7EQGRTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJVGMYTKNZRGI . You are receiving this because you were mentioned.Message ID: @.***>
same here even on server 0.1.100, any news?
output:
_________ _____ _____
__ ____/______ _______ __ /____(_)_______ ____ _______
_ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \
/ /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/
\____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/
[2023-11-29 21:21:11] [DEBUG] ------ Begin Logs ------
INFO: Started server process [121442]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:65432 (Press CTRL+C to quit)
[2023-11-29 21:21:11] [DEBUG] Starting MeiliSearch...
[2023-11-29 21:21:11] [INFO] Meilisearch started at http://localhost:7700
INFO: ('127.0.0.1', 59128) - "WebSocket /socket.io/?window_info=%7B%22window_id%22%3A%223e1064f3-af83-4f02-ba40-41b97feecace%22%2C%22workspace_directory%22%3A%22%2Fvar%2Fhome%2Fsfc%2FProjects%2Fshiso%22%2C%22unique_id%22%3A%22d6c8360a245ac1523d636aacd41d2b255f52c028ebc471afc5e9526ad9a34ae0%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.84.1%22%7D%7D&EIO=4&transport=websocket" [accepted]
INFO: connection open
INFO: ('127.0.0.1', 36894) - "WebSocket /socket.io/?window_id=3e1064f3-af83-4f02-ba40-41b97feecace&EIO=4&transport=websocket" [accepted]
INFO: connection open
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f65ddd78250>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f65ddd0d350>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f65e08acf90>
then the server does not accept any connection, even Ctrl-C does not work. I have to use kill -9
to kill it.
@notsyncing @gecexgokyuzu Yes! I have very good news. The Continue Python server is no longer necessary as of version 0.7.50 (VS Code pre-release), which means that none of this connection nonsense will even be necessary. Just download the extension and you're good to go.
I'm going to close this issue since the errors here aren't really possible in the newest version without any use of Meilisearch or socket.io, but if you're running into separate issues please let me know!
Before submitting your bug report
Relevant environment info
Description
Unclosed Client Session,
Logs:-------------------------------------------- INFO: Started server process [6120] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://127.0.0.1:65432 (Press CTRL+C to quit) INFO: ('127.0.0.1', 51501) - "WebSocket /socket.io/?window_id=66cc1fdd-f5d0-41e0-b890-ab8c64b2aa5a&EIO=4&transport=websocket" [accepted] INFO: connection open [2023-11-09 14:37:14] [DEBUG] Starting MeiliSearch... [2023-11-09 14:37:14] [INFO] Meilisearch started at http://localhost:7700 INFO: ('127.0.0.1', 51507) - "WebSocket /socket.io/?window_info=%7B%22window_id%22%3A%2266cc1fdd-f5d0-41e0-b890-ab8c64b2aa5a%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.84.1%22%7D%7D&EIO=4&transport=websocket" [accepted] INFO: connection open INFO: ('127.0.0.1', 51515) - "WebSocket /socket.io/?window_info=%7B%22window_id%22%3A%2278720a26-786e-4a0d-b663-1dbd009277b5%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Capi%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.84.1%22%7D%7D&EIO=4&transport=websocket" [accepted] INFO: connection open INFO: connection closed INFO: ('127.0.0.1', 51516) - "WebSocket /socket.io/?window_info=%7B%22window_id%22%3A%2266cc1fdd-f5d0-41e0-b890-ab8c64b2aa5a%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.84.1%22%7D%7D&EIO=4&transport=websocket" [accepted] INFO: connection open Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F6846B90> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F6846E50> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F6846B90> INFO: connection closed INFO: ('127.0.0.1', 51523) - "WebSocket /socket.io/?window_info=%7B%22window_id%22%3A%2266cc1fdd-f5d0-41e0-b890-ab8c64b2aa5a%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.84.1%22%7D%7D&EIO=4&transport=websocket" [accepted] INFO: connection open Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F68462D0> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F68465D0> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F6844C90> INFO: connection closed INFO: ('127.0.0.1', 51530) - "WebSocket /socket.io/?window_info=%7B%22window_id%22%3A%2266cc1fdd-f5d0-41e0-b890-ab8c64b2aa5a%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.84.1%22%7D%7D&EIO=4&transport=websocket" [accepted] INFO: connection open Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F688AC90> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F688B050> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F688BC90> INFO: connection closed INFO: ('127.0.0.1', 51538) - "WebSocket /socket.io/?window_info=%7B%22window_id%22%3A%2266cc1fdd-f5d0-41e0-b890-ab8c64b2aa5a%22%2C%22workspace_directory%22%3A%22d%3A%5C%5CYaz%C4%B1l%C4%B1m%5C%5CWEBS%C4%B0TELER%C4%B0%5C%5CCMHLIFESTYLE%5C%5Cpublic_html%22%2C%22unique_id%22%3A%22f99ccc5d3fc7a95d4ff2f2c568ce8daf11356f41cbcd9328cb0169a304ecb42a%22%2C%22ide_info%22%3A%7B%22name%22%3A%22vscode%22%2C%22version%22%3A%221.84.1%22%7D%7D&EIO=4&transport=websocket" [accepted] INFO: connection open Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F6891490> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F6890B90> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x00000227F6892850> INFO: Shutting down / here shutdown is made by me to break infinite loop / INFO: connection closed INFO: connection closed INFO: connection closed INFO: Finished server process [6120] [2023-11-09 14:37:36] [DEBUG] ------ End logs ------
To reproduce
This only occurs from time to time, the service working on port7700 shuts down while im working, i dont notice it, then when i try to reboot, this cycle of connection open/closed starts.
haven't found a way to reproduce yet,
after searching with netstat -ano | findstr 7700; there are no services found on port 7700.
Log output