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

vscode日志

ll@192.168.103.5's password:]0;C:\WINDOWS\System32\cmd.exe
[17:09:16.886] Got some output, clearing connection timeout
[17:09:16.887] Showing password prompt
[17:09:19.688] Got password response
[17:09:19.688] "install" wrote data to terminal: "******"
[17:09:19.705] > 
[17:09:20.326] > 845c52815b32: running
[17:09:20.388] > Missing GLIBC >= 2.28!
[17:09:20.403] > Found version ldd (Ubuntu GLIBC 2.27-3ubuntu1.5) 2.27
> 845c52815b32$$1$$
> Acquiring lock on /home/ll/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3b
> df775fd937/vscode-remote-lock.ll.05047486b6df5eb8d44b2ecd70ea3bdf775fd937   
> Installing to /home/ll/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf77
> 5fd937...
[17:09:20.432] > 845c52815b32%%1%%    
> Downloading with wget
[17:09:22.662] > Download complete
[17:09:22.679] > 845c52815b32%%2%%
> tar --version:
> tar (GNU tar) 1.29
> Copyright (C) 2015 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> Written by John Gilmore and Jay Fenlason.
[17:09:23.966] > Checking /home/ll/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.l
> og and /home/ll/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.pid
>  for a running server
[17:09:24.035] > Starting VS Code Server... "/home/ll/.vscode-server/bin/05047486b6df5eb8d44b
> 2ecd70ea3bdf775fd937/bin/code-server" --start-server --host=127.0.0.1 --accept-s
> erver-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-level all
>    &> "/home/ll/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.log
> " < /dev/null
> The VS Code Server log file is /home/ll/.vscode-server/.05047486b6df5eb8d44b
> 2ecd70ea3bdf775fd937.log
> printenv:
>     SHELL=/bin/bash
>     PWD=/home/ll
>     LOGNAME=ll
>     HOME=/home/ll
>     LANG=en_US.UTF-8
>     VSCODE_AGENT_FOLDER=/home/ll/.vscode-server
>     SSH_CONNECTION=192.168.22.82 58621 192.168.103.5 22
>     USER=ll
>     SHLVL=0
>     XDG_SESSION_ID=252
>     XDG_RUNTIME_DIR=/run/user/1007
>     SSH_CLIENT=192.168.22.82 58621 22
>     PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> :/usr/local/games:/snap/bin
>     DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1007/bus
>     MAIL=/var/mail/ll
>     OLDPWD=/home/ll/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd
> 937
>     _=/usr/bin/printenv
[17:09:24.043] > 
> rm: cannot remove '/home/ll/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf
> 775fd937.token': No such file or directory
> Spawned remote server: 18606
[17:09:24.059] > 
> Waiting for server log...
[
[17:09:38.604] >  
> *
> * Visual Studio Code Server
> *
> * By using the software, you agree to
> * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-lice
> nse) and
> * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacyst
> atement).
> *
> 
> Server did not start successfully. Full server log at /home/ll/.vscode-serve
> r/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.log >>>
> Warning: Missing GLIBC >= 2.28! from /lib/x86_64-linux-gnu/libc-2.27.so
> Error: Missing required dependencies. Please refer to our FAQ https://aka.ms/vsc
> ode-remote/faq/old-linux for additional information.
> <<< End of server log
> 845c52815b32: start
> exitCode==32==
> listeningOn====
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1007==
> platform==linux==
> unpackResult==success==
> didLocalDownload==0==
[17:09:38.627] > 
> downloadTime==2259==
> installTime==1281==
> extInstallTime====
> serverStartTime==14559==
> 845c52815b32: end
[17:09:38.627] Received install output: 
exitCode==32==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1007==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==2259==
installTime==1281==
extInstallTime====
serverStartTime==14559==

[17:09:38.628] Resolver error: Error: The VS Code Server failed to start
	at g.ServerInstallError (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:460179)
	at d (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:453522)
	at t.handleInstallOutput (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:455792)
	at t.tryInstall (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:581100)
	at async c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:540958
	at async t.withShowDetailsEvent (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:544264)
	at async k (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:537923)
	at async t.resolve (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:541635)
	at async c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:807794
[17:09:38.634] ------




[17:09:39.920] "install" terminal command done
[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的自动更新选项

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/373383.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

uniapp踩坑之项目:简易版不同角色显示不一样的tabbar和页面

1. pages下创建三个不同用户身份的“我的”页面。 显示第几个tabbar&#xff0c;0是管理员 1是财务 2是司机 2. 在uni_modules文件夹创建底部导航cc-myTabbar文件夹&#xff0c;在cc-myTabbar文件夹创建components文件夹&#xff0c;在components文件夹创建cc-myTabbar.vue组件…

【机器学习】机器学习简单入门

&#x1f388;个人主页&#xff1a;甜美的江 &#x1f389;欢迎 &#x1f44d;点赞✍评论⭐收藏 &#x1f917;收录专栏&#xff1a;matplotlib &#x1f91d;希望本文对您有所裨益&#xff0c;如有不足之处&#xff0c;欢迎在评论区提出指正&#xff0c;让我们共同学习、交流进…

【高质量精品】2024美赛C题高质量成品论文分享获取入口(后续会更新)

一定要点击文末的卡片&#xff0c;进入后&#xff0c;即可获取完整论文&#xff01;&#xff01; 首先&#xff0c;我们需要对缺失的 speed_mph 进行插补。缺失值处理是数据预处理的 重要环节之一。可以采用均值、中位数或者根据其他相关特征进行预测的方法来 填补缺失值。在这…

Packet Tracer - Configure IOS Intrusion Prevention System (IPS) Using the CLI

Packet Tracer - 使用CLI配置IOS入侵防御系统&#xff08;IPS&#xff09; 地址表 目标 启用IOS入侵防御系统&#xff08;IPS&#xff09;。 配置日志记录功能。 修改IPS签名规则。 验证IPS配置。 背景/场景 您的任务是在R1上启用IPS&#xff0c;扫描进入192.168.1.0网络…

Unity3d Cinemachine篇(完)— TargetGroup

文章目录 前言使用TargetGroup追随多个模型1. 创建二个游戏物体2. 创建TargetGroup相机3. 设置相机4. 完成 前言 上一期我们简单的使用了ClearShot相机&#xff0c;这次我们来使用一下TargetGroup 使用TargetGroup追随多个模型 1. 创建二个游戏物体 2. 创建TargetGroup相机 3…

刚刚晋升为管理者,还不会如何管理团队?你要重点关注这9个策略

管理团队需要明确团队目标、提前要求承诺、明确组织架构、团队高效协作、洞察员工、引入敏捷、执行可视化、及时反馈和复盘优化。 这样管理团队可以极大提高团队组织能力。团队组织能力强大的话&#xff0c;团队成员是可以实现自我管理的&#xff0c;会自我驱动去完成目标和执…

2024.2.5 vscode连不上虚拟机,始终waiting for server log

昨天还好好的&#xff0c;吃着火锅&#xff0c;做着毕设&#xff0c;突然就被vscode给劫了。 起初&#xff0c;哥们跟着网上教程有模有样地删除了安装包缓存&#xff0c;还删除了.vscode-server&#xff0c;发现没卵用&#xff0c;之前都是搜那个弹窗报错。 后来发现原来是vsco…

SpringBoot 全局异常处理

介绍 如果代码没有做异常处理&#xff0c;就会报框架错误&#xff0c;而这种格式不符合REST风格&#xff0c;也可以在每一个接口添加 try{ } catch { } 捕获异常&#xff0c;但是会非常的繁琐&#xff0c;这时候可以使用全局异常处理。 统一响应类 Data NoArgsConstructor …

掌握Linux du命令:高效查看文件和目录大小

今天我们在生产环境中的服务器上收到了有关/var磁盘目录使用率较高的警报。为了解决这一问题&#xff0c;我们进行了/var目录下一些大文件的清理和转移操作。在查找那些占用磁盘空间较多的文件时&#xff0c;我们频繁使用了du命令。在Linux系统中&#xff0c;du命令是一款功能强…

5G智能卷烟工厂数字孪生可视化平台,推进烟草行业数字化转型

5G智能卷烟工厂数字孪生可视化平台&#xff0c;推进烟草行业数字化转型。随着5G技术的不断发展&#xff0c;智能卷烟工厂数字孪生可视化平台成为了推进烟草行业数字化转型的重要手段。该平台将5G技术与数字孪生技术相结合&#xff0c;实现了对卷烟生产全过程的实时监控、数据分…

Springboot启动出现Waiting for changelog lock...问题

今天在开发的时候&#xff0c;Springboot启动的时候出现Waiting for changelog lock…问题. 问题原因&#xff1a;该问题就是发生了数据库的死锁问题&#xff0c;可能是由于一个杀死的liquibase进程没有释放它对DATABASECHANGELOGLOCK表的锁定&#xff0c;导致服务启动失败&…

Allegro如何把Symbols,shapes,vias,Clines,Cline segs等多种元素一起移动

Allegro如何把Symbols,shapes,vias,Clines,Cline segs等多种元素一起移动 在用Allegro进行PCB设计时,有时候需要同时移动某个区域的所有元素,如:Symbols,shapes,vias,Clines,Cline segs等元素。那么如何操作呢? 首先就是把Symbols,shapes,vias,Clines,Cline …

Unity笔记:相机移动

基础知识 鼠标输入 在Unity中&#xff0c;开发者在“Edit” > “Project Settings” > “Input Manager”中设置输入&#xff0c;如下图所示&#xff1a; 在设置了Mouse X后&#xff0c;Input.GetAxis("Mouse X")返回的是鼠标在X轴上的增量值。这意味着它会…

arm 汇编积累

C语言函数与汇编对应关系 一、MOV 系列指令 1、指令格式 MOV{条件}{S} 目的寄存器&#xff0c;源操作数 2、含义解析&#xff1a; &#xff08;1&#xff09;&#xff1a;mov 指令传送数据 案例&#xff1a; MOV R0,R1 ; R0 R1; MOV PC,R14 ;PC R14; MOV R0,R…

大型语言模型(LLM)的优势、劣势和风险

最近关于大型语言模型的奇迹&#xff08;&#xff09;已经说了很多LLMs。这些荣誉大多是当之无愧的。让 ChatGPT 描述广义相对论&#xff0c;你会得到一个非常好&#xff08;且准确&#xff09;的答案。然而&#xff0c;归根结底&#xff0c;ChatGPT 仍然是一个盲目执行其指令集…

N-143基于springboot博客系统

开发工具&#xff1a;IDEA 服务器&#xff1a;Tomcat9.0&#xff0c; jdk1.8 项目构建&#xff1a;maven 数据库&#xff1a;mysql5.7 前端技术&#xff1a;AdminLTEHTML 服务端技术&#xff1a;springbootmybatis-plusthymeleaf 本项目分前台和后台&#xff0c;主要有普…

annaconda如何切换当前python环境

annaconda默认的python环境是base&#xff1a; 把各种项目的依赖都安装到base环境中不是一个好的习惯&#xff0c;比如说我们做爬虫项目和做自动化测试项目等所需要的依赖是不一样的&#xff0c;我们可以将为每个项目创建自己的环境&#xff0c;在各自的环境中安装自己的依赖&…

博途PLC报警字FC(字寄存器按位访问)

博途PLC的字寄存器按位访问和拆分,请查看下面文章链接: https://rxxw-control.blog.csdn.net/article/details/121727057https://rxxw-control.blog.csdn.net/article/details/121727057西门子触摸屏报警都是以字为地址访问,所以离散报警信号我们需要将其组合为报警字输出,…

问题排查利器 - 分布式 trace

在分布式系统开发中&#xff0c;系统间的调用往往会横跨多个应用之间的接口。负责的调用链路也导致了&#xff0c;当线上环境出现问题时&#xff0c;例如请求失败、延迟增加或错误发生&#xff0c;我们无法第一时间确定是哪个环节出了问题&#xff0c;这给故障排查和修复带来了…

Java-冒泡排序

签名&#xff1a;但行好事&#xff0c;莫问前程。 文章目录 前言一、什么是冒泡排序二、手写冒泡排序总结 前言 记录一下经典算法&#xff1a;冒泡排序。 一、什么是冒泡排序 冒泡排序&#xff08;Bubble Sort&#xff09;是一种基本的排序算法。其原理是通过相邻元素之间的比…
最新文章