当前位置:   article > 正文

vscode 突然连接不上服务器了(2024年版本 自动更新从1.85-1.86)_showing password prompt got password response

showing password prompt got password response

vscode日志

  1. ll@192.168.103.5's password:]0;C:\WINDOWS\System32\cmd.exe
  2. [17:09:16.886] Got some output, clearing connection timeout
  3. [17:09:16.887] Showing password prompt
  4. [17:09:19.688] Got password response
  5. [17:09:19.688] "install" wrote data to terminal: "******"
  6. [17:09:19.705] >
  7. [17:09:20.326] > 845c52815b32: running
  8. [17:09:20.388] > Missing GLIBC >= 2.28!
  9. [17:09:20.403] > Found version ldd (Ubuntu GLIBC 2.27-3ubuntu1.5) 2.27
  10. > 845c52815b32$$1$$
  11. > Acquiring lock on /home/ll/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3b
  12. > df775fd937/vscode-remote-lock.ll.05047486b6df5eb8d44b2ecd70ea3bdf775fd937
  13. > Installing to /home/ll/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf77
  14. > 5fd937...
  15. [17:09:20.432] > 845c52815b32%%1%%
  16. > Downloading with wget
  17. [17:09:22.662] > Download complete
  18. [17:09:22.679] > 845c52815b32%%2%%
  19. > tar --version:
  20. > tar (GNU tar) 1.29
  21. > Copyright (C) 2015 Free Software Foundation, Inc.
  22. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
  23. > This is free software: you are free to change and redistribute it.
  24. > There is NO WARRANTY, to the extent permitted by law.
  25. >
  26. > Written by John Gilmore and Jay Fenlason.
  27. [17:09:23.966] > Checking /home/ll/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.l
  28. > og and /home/ll/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.pid
  29. > for a running server
  30. [17:09:24.035] > Starting VS Code Server... "/home/ll/.vscode-server/bin/05047486b6df5eb8d44b
  31. > 2ecd70ea3bdf775fd937/bin/code-server" --start-server --host=127.0.0.1 --accept-s
  32. > erver-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-level all
  33. > &> "/home/ll/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.log
  34. > " < /dev/null
  35. > The VS Code Server log file is /home/ll/.vscode-server/.05047486b6df5eb8d44b
  36. > 2ecd70ea3bdf775fd937.log
  37. > printenv:
  38. > SHELL=/bin/bash
  39. > PWD=/home/ll
  40. > LOGNAME=ll
  41. > HOME=/home/ll
  42. > LANG=en_US.UTF-8
  43. > VSCODE_AGENT_FOLDER=/home/ll/.vscode-server
  44. > SSH_CONNECTION=192.168.22.82 58621 192.168.103.5 22
  45. > USER=ll
  46. > SHLVL=0
  47. > XDG_SESSION_ID=252
  48. > XDG_RUNTIME_DIR=/run/user/1007
  49. > SSH_CLIENT=192.168.22.82 58621 22
  50. > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
  51. > :/usr/local/games:/snap/bin
  52. > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1007/bus
  53. > MAIL=/var/mail/ll
  54. > OLDPWD=/home/ll/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd
  55. > 937
  56. > _=/usr/bin/printenv
  57. [17:09:24.043] >
  58. > rm: cannot remove '/home/ll/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf
  59. > 775fd937.token': No such file or directory
  60. > Spawned remote server: 18606
  61. [17:09:24.059] >
  62. > Waiting for server log...
  63. [
  64. [17:09:38.604] >
  65. > *
  66. > * Visual Studio Code Server
  67. > *
  68. > * By using the software, you agree to
  69. > * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-lice
  70. > nse) and
  71. > * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacyst
  72. > atement).
  73. > *
  74. >
  75. > Server did not start successfully. Full server log at /home/ll/.vscode-serve
  76. > r/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.log >>>
  77. > Warning: Missing GLIBC >= 2.28! from /lib/x86_64-linux-gnu/libc-2.27.so
  78. > Error: Missing required dependencies. Please refer to our FAQ https://aka.ms/vsc
  79. > ode-remote/faq/old-linux for additional information.
  80. > <<< End of server log
  81. > 845c52815b32: start
  82. > exitCode==32==
  83. > listeningOn====
  84. > osReleaseId==ubuntu==
  85. > arch==x86_64==
  86. > vscodeArch==x64==
  87. > bitness==64==
  88. > tmpDir==/run/user/1007==
  89. > platform==linux==
  90. > unpackResult==success==
  91. > didLocalDownload==0==
  92. [17:09:38.627] >
  93. > downloadTime==2259==
  94. > installTime==1281==
  95. > extInstallTime====
  96. > serverStartTime==14559==
  97. > 845c52815b32: end
  98. [17:09:38.627] Received install output:
  99. exitCode==32==
  100. listeningOn====
  101. osReleaseId==ubuntu==
  102. arch==x86_64==
  103. vscodeArch==x64==
  104. bitness==64==
  105. tmpDir==/run/user/1007==
  106. platform==linux==
  107. unpackResult==success==
  108. didLocalDownload==0==
  109. downloadTime==2259==
  110. installTime==1281==
  111. extInstallTime====
  112. serverStartTime==14559==
  113. [17:09:38.628] Resolver error: Error: The VS Code Server failed to start
  114. at g.ServerInstallError (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:460179)
  115. at d (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:453522)
  116. at t.handleInstallOutput (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:455792)
  117. at t.tryInstall (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:581100)
  118. at async c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:540958
  119. at async t.withShowDetailsEvent (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:544264)
  120. at async k (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:537923)
  121. at async t.resolve (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:541635)
  122. at async c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:807794
  123. [17:09:38.634] ------
  124. [17:09:39.920] "install" terminal command done
  125. [17:09:39.921] Install terminal quit with output:

服务器日志报错

Warning: Missing GLIBC >= 2.28! from /lib/x86_64-linux-gnu/libc-2.27.so Error: Missing required dependencies. Please refer to our FAQ Visual Studio Code Remote Development Frequently Asked Questions for additional information.

问题分析:

这个错误表明你在使用Visual Studio Code通过SSH连接到服务器时遇到了GLIBC版本不匹配的问题。GLIBC(GNU C Library)是Linux系统上的一个关键库,而这个错误提示表明你的系统的GLIBC版本低于所需的版本。

解决这个问题的步骤如下:

  1. 更新GLIBC版本: 首先,尝试更新你的系统的GLIBC版本。这可能需要你升级你的Linux发行版或手动更新GLIBC。请注意,手动更新GLIBC可能会涉及到系统稳定性的风险,因此请确保你了解你所采取的步骤,并在更新之前备份重要数据。

  2. 使用适用于你系统版本的Visual Studio Code: 如果你的系统版本无法升级GLIBC,尝试使用Visual Studio Code的旧版本,该版本与你的系统GLIBC版本兼容。你可以在Visual Studio Code的GitHub Release页面找到以前的版本。

  3. 查看FAQ页面: 错误消息中提到了FAQ页面,你可以访问Visual Studio Code Remote Development Frequently Asked Questions查看详细的常见问题和解决方案。这个页面可能包含与GLIBC版本不匹配相关的详细信息和解决方案。

  4. 考虑其他远程开发工具: 如果GLIBC版本问题仍然无法解决,可以考虑使用其他远程开发工具,例如SSH自带的命令行工具或其他适用于你的情况的工具。

请注意,确保在采取任何措施之前备份重要数据,以防不测。

查看官方解决方案

Can I run VS Code Server on older Linux distributions?

Starting with VS Code release 1.86, the minimum requirements for the build toolchain of the remote server were raised. The prebuilt servers distributed by VS Code are compatible with Linux distributions based on glibc 2.28 or later, for example, Debian 10, RHEL 8, Ubuntu 20.04.

If your setup does not meet these requirements and you are unable to upgrade the Linux distribution, you can downgrade the VS Code client to version 1.85 to continue using Remote Development. You can downgrade the VS Code client on both desktop and web:

  • On desktop, you can download the VS Code release 1.85 from here. Depending on your platform, make sure to disable updates to stay on that version. A good recommendation is to have release 1.85 as a separate installation, set up with Portable Mode. That way, you won't affect your main desktop VS Code version.
  • On web, you can add the following query argument ?vscode-version=0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 to use VS Code release 1.85.

翻译:

我可以使用较旧的 Linux 发行版运行 VS Code Server 吗?

从 VS Code 1.86 版本开始,远程服务器的构建工具链的最低要求有所提高。VS Code 分布式预构建的服务器与基于 glibc 2.28 或更高版本的 Linux 发行版兼容,例如 Debian 10、RHEL 8、Ubuntu 20.04。

如果您的设置不符合这些要求,并且无法升级 Linux 发行版,您可以降级 VS Code 客户端到 1.85 版本,以继续使用 Remote Development。您可以在桌面和 Web 上降级 VS Code 客户端:

在桌面方面,您可以从这里下载 VS Code 1.85 版本。根据您的平台,请确保禁用更新以保持在该版本。一个好的建议是使 1.85 版本作为单独的安装,并设置便携模式。这样,您不会影响您的主要桌面 VS Code 版本。
在 Web 上,您可以添加以下查询参数 ?vscode-version=0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 以使用 VS Code 1.85 版本。


结论

2024 发布的版本1.86连接有问题,需要将vs版本回退到1.85


验证

降版本回退到1.85 连接正常,并且关闭vscode的自动更新选项

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/167216
推荐阅读
相关标签
  

闽ICP备14008679号