IT评测·应用市场-qidao123.com

标题: vscode 突然连接不上服务器了(2024年版本 自动更新从1.85-1.86) [打印本页]

作者: 悠扬随风    时间: 2024-6-15 00:57
标题: vscode 突然连接不上服务器了(2024年版本 自动更新从1.85-1.86)
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版本低于所需的版本。
办理这个题目的步调如下:
请注意,确保在接纳任何措施之前备份紧张数据,以防不测。

查看官方办理方案

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:

翻译:
我可以利用较旧的 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的自动更新选项



免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 IT评测·应用市场-qidao123.com (https://dis.qidao123.com/) Powered by Discuz! X3.4