microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
158.55k stars 27.69k forks source link

Remote-SSH from multiple sources to one target results in SSH disconnection #210029

Closed dokutoshi closed 1 week ago

dokutoshi commented 3 weeks ago

Source 1: VS Code Mac version 1.88.0 (Apple Silicon Macbook PRo) Source 2: VS Code Mac 1.84.2 (Apple Silicon Mac Mini) Remote SSH Version - v0.107.1

Both clients use the same extension software versions for Python, Jupyter, Remote SSH, etc.
Normalized versions during troubleshooting.

However, Source 1 results in multiple disconnects up to 10-15 per day. While Source 2, maintains connection. Note using Terminal and iTerm2 on Source 1 maintain the connection throughout the day, i.e. verifies network stability.

Troubleshooting Steps

Screenshot 2024-04-10 at 10 28 27 AM

Question:: Does VS Code Server establish a profile for each source client i.e. instance context or only application context? I noticed VS Code and VS Code Server do not conflict suggesting an application state versus an instance state.

Screenshot 2024-04-10 at 9 47 12 AM

vscode server logs.txt

dokutoshi commented 3 weeks ago

On Source1, downgraded from VSCode 1.88.0 to VSCode 1.84.2 - connected on the first attempt. VS Code October 2023

connor4312 commented 1 week ago

EC2 does some patching to maintain glibc compatibility, and there may be a race here. I will make an adjustment so we use the 'legacy server' that doesn't require patching when running in their environment. Please let us know if this fixes it for you (bot will let you know when it's released)

VSCodeTriageBot commented 1 week ago

This bug has been fixed in the latest release of VS Code Insiders!

@dokutoshi, you can help us out by commenting /verified if things are now working as expected.

If things still don't seem right, please ensure you're on version 347777655976bbc8460f833449592dd0a9a8f340 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

Happy Coding!

dokutoshi commented 1 week ago

Great.

At the moment, I reverted to v1.84 in order to connect to Linux 2.

Best,

Leo

Sent from my iPhone

On Apr 22, 2024, at 21:00, Connor Peet @.***> wrote:



EC2 does some patching to maintain glibc compatibility, and there may be a race here. I will make an adjustment so we use the 'legacy server' that doesn't require patching when running in their environment. Please let us know if this fixes it for you (bot will let you know when it's released)

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode/issues/210029#issuecomment-2070668030, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACNWBJJ4DNQD7SC44QLC3TTY6VM5LAVCNFSM6AAAAABF77EOSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQGY3DQMBTGA. You are receiving this because you authored the thread.Message ID: @.***>

This email and any attachments may contain private, confidential and privileged material for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and delete this email and any attachments afterwards.

dokutoshi commented 1 week ago

Testing the latest VS Code Insiders v1.89.0 @VSCodeTriageBot Version: 1.89.0-insider Commit: 6d23b7f11a3d7292b9458f0de7160048089398f9 Date: 2024-04-24T05:50:15.963Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin arm64 23.4.0

Odd errors on the Linux 2 - EC2 server - @connor4312 @sergioengineer

2024-04-24 13:54:04.169 [info] [Info - 1:54:04 PM] (7800) Pylance language server 2024.4.1 (pyright version 1.1.356, commit 6652c4a8) starting 2024-04-24 13:54:04.170 [info] [Info - 1:54:04 PM] (7800) Server root directory: file:///home/ec2-user/.vscode-server-insiders/extensions/ms-python.vscode-pylance-2024.4.1/dist 2024-04-24 13:54:04.184 [info] [Error - 1:54:04 PM] Server initialization failed. 2024-04-24 13:54:04.184 [info] Message: Request initialize failed with message: You may install and use any number of copies of the software only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services (collectively, the “Visual Studio Products and Services”) to develop and test your applications. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. You may not: work around any technical limitations in the software that only allow you to use it in certain ways; reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; use the software in any way that is against the law or to create or propagate malware; or share, publish, distribute, or lease the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party.

Code: -32603 2024-04-24 13:54:04.185 [info] [Error - 1:54:04 PM] Pylance client: couldn't create connection to server. 2024-04-24 13:54:04.185 [info] Message: Request initialize failed with message: You may install and use any number of copies of the software only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services (collectively, the “Visual Studio Products and Services”) to develop and test your applications. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. You may not: work around any technical limitations in the software that only allow you to use it in certain ways; reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; use the software in any way that is against the law or to create or propagate malware; or share, publish, distribute, or lease the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party.

Code: -32603

dokutoshi commented 1 week ago

After repeated attempts, this message may hint at an important condition. Only 3 conda environments, but many model directories under the root.

  1. Should i use a (ML) models directory? Is this really necessary?
  2. What to do about the dot folders created by vscode etc? image

2024-04-24 14:00:05.012 [info] [Info - 2:00:05 PM] (12933) Assuming Python version 3.10.7.final.0 2024-04-24 14:01:18.463 [info] [Error - 2:01:18 PM] (12933) Enumeration of workspace source files is taking longer than 10 seconds. This may be because:

dokutoshi commented 1 week ago

/verified - Remote connection from multiple machines appears stable. @VSCodeTriageBot Note: Seems the Jupyter PowerToys Group feature is broken as a result of the latest update. VS-Code Insiders - 1.89.0 broke Jupyter PowerToys Execute Group feature #211262