gpt4 book ai didi

Remote SSH connection hangs at "Downloading vscode server step" after updating VScode to 1.82.0 version(将VScode更新到1.82.0版本后,远程SSH连接在“下载vscode服务器步骤”挂起)

转载 作者:bug小助手 更新时间:2023-10-28 09:46:45 32 4
gpt4 key购买 nike



I am trying to connect to Remote SSH through Remote-SSH extension, however it hangs at "Downloading VSCode Server" step for a long time after updating the vscode release. Please find the logs for the same as below

我试图通过远程SSH扩展连接到远程SSH,但在更新vscode版本后,它在“下载VScode服务器”步骤挂起了很长一段时间。请查找以下相同的日志


[17:55:58.394] Remote server is listening on port 44281
[17:55:58.394] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":44281},"osReleaseId":"ol","arch":"x86_64","sshAuthSock":"","display":"","tmpDir":"/run/user/1663455","platform":"linux"},"serverStartTime":70,"installUnpackCode":""}
[17:55:58.395] Persisting server connection details to /Users/skatpara/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-5d30b538-8b617bd08fd9e3fc94d14adb8d358b56e3f72314-0.106.1/data.json
[17:55:58.398] Starting forwarding server. local port 49696 -> socksPort 49694 -> remotePort 44281
[17:55:58.398] Forwarding server listening on port 49696
[17:55:58.398] Waiting for ssh tunnel to be ready
[17:55:58.400] Tunneled port 44281 to local port 49696
[17:55:58.400] Resolved "ssh-remote+node" to "port 49696"
[17:55:58.402] Initizing new exec server for ssh-remote+node
[17:55:58.402] Resolving exec server at port 49696
[17:55:58.414] [Forwarding server port 49696] Got connection 0
[17:55:58.415] [Forwarding server port 49696] Got connection 1
[17:55:59.362] Exec server for ssh-remote+node created and cached
[17:55:59.369] ------




[17:55:59.693] [server] Checking /home/uname/.vscode-server/cli/servers/Stable-8b617bd08fd9e3fc94d14adb8d358b56e3f72314/log.txt and /home/uname/.vscode-server/cli/servers/Stable-8b617bd08fd9e3fc94d14adb8d358b56e3f72314/pid.txt for a running server...
[17:55:59.735] [server] Installing and setting up Visual Studio Code Server...

I expect to resolve the issue and be able to connect to remote server through vscode Remote-SSH extension

我希望解决这个问题,并能够通过vscode远程SSH扩展连接到远程服务器


更多回答
优秀答案推荐

The newest VSCode version does not play nice with the most recent version of the "Remote SSH" extension due to a bug. It is being tracked here though it seems like it mostly ocurrs when the remote machine you're connecting to does not have an internet connection.
While this is being fixed you could try

由于错误,最新版本的VSCode与最新版本的“Remote SSH”扩展不兼容。它在这里被跟踪,尽管它似乎主要发生在您连接的远程计算机没有互联网连接的时候。在修复过程中,您可以尝试



  1. setting remote.SSH.useExecServer": false in settings.json or toggle the "Use Exec Server" checkbox in the settings


or



  1. Downgrade VSCode and the "Remote SSH" extension to an older version



There's a bug in version 0.106.1 of the Remote SSH extension used with VS Code 1.82: [Remote-SSH Bug]: Remote-SSH 0.106.1 gets stuck downloading the server
#8926

与VS代码1.82一起使用的Remote SSH扩展的0.106.1版中存在错误:[Remote-SSH Bug]:Remote-SSH 0.106.1在下载服务器#8926时停滞


The suggested workaround for version 0.106.1 is to set "remote.SSH.useExecServer": false. It is disabled by default in version 0.106.2. The default will be changed back to true when the bug is fixed- perhaps in the next stable VS Code release.

版本0.106.1的建议解决方法是将“emote.SSH.useExecServer”设置为:FALSE。在0.106.2版中,默认情况下禁用该功能。当错误被修复时,缺省值将被改回True--可能是在下一个稳定的VS代码版本中。


Before 0.106.2 was released, other users used other workarounds such as downgrading/rolling-back the extension to version 0.102.0, downloading and extracting the server files manually, downgrading VS Code to 1.81.

在0.106.2发布之前,其他用户使用了其他解决方法,例如将扩展降级/回滚到0.102.0版本,手动下载和提取服务器文件,将VS Code降级到1.81。


更多回答

I downgraded the extension only, and after closing all my connections opened, it works.

我只降低了扩展的级别,在关闭所有打开的连接后,它就可以工作了。

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com