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 startat 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:540958at 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.mzph.cn/news/669976.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

AE2023 After Effects 2023

After Effects 2023是一款非常强大的视频编辑软件&#xff0c;提供了许多新功能和改进&#xff0c;使得视频编辑和合成更加高效和灵活。以下是一些After Effects 2023的特色功能&#xff1a; 新合成预设列表&#xff1a;After Effects 2023彻底修改了预设列表&#xff0c;使其…

算法——二分查找算法

1. 二分算法是什么&#xff1f; 简单来说&#xff0c;"二分"指的是将查找的区间一分为二&#xff0c;通过比较目标值与中间元素的大小关系&#xff0c;确定目标值可能在哪一半区间内&#xff0c;从而缩小查找范围。这个过程不断重复&#xff0c;每次都将当前区间二分…

Kafka零拷贝技术与传统数据复制次数比较

读Kafka技术书遇到困惑: "对比传统的数据复制和“零拷贝技术”这两种方案。假设有10个消费者&#xff0c;传统复制方式的数据复制次数是41040次&#xff0c;而“零拷贝技术”只需110 11次&#xff08;一次表示从磁盘复制到页面缓存&#xff0c;另外10次表示10个消费者各自…

黑马头条 Kafka

我是南城余&#xff01;阿里云开发者平台专家博士证书获得者&#xff01; 欢迎关注我的博客&#xff01;一同成长&#xff01; 一名从事运维开发的worker&#xff0c;记录分享学习。 专注于AI&#xff0c;运维开发&#xff0c;windows Linux 系统领域的分享&#xff01; 知…

4.0 Zookeeper Java 客户端搭建

本教程使用的 IDE 为 IntelliJ IDEA&#xff0c;创建一个 maven 工程&#xff0c;命名为 zookeeper-demo&#xff0c;并且引入如下依赖&#xff0c;可以自行在maven中央仓库选择合适的版本&#xff0c;介绍原生 API 和 Curator 两种方式。 IntelliJ IDEA 相关介绍&#xff1a;…

macOS Sonoma 14系统安装包

macOS Sonoma 14是苹果公司最新推出的操作系统&#xff0c;为Mac用户带来了全新的使用体验。Sonoma是苹果继Catalina之后的又一重要更新&#xff0c;它在改善系统性能、增加新功能、优化用户界面等方面做出了显著贡献。 macOS Sonoma 14系统有许多令人兴奋的新功能和改进&…

【DDD】学习笔记-数据模型与对象模型

在建立数据设计模型时&#xff0c;我们需要注意表设计与类设计之间的差别&#xff0c;这事实上是数据模型与对象模型之间的差别。 数据模型与对象模型 我们首先来分析在设计时对冗余的考虑。前面在讲解数据分析模型时就提及&#xff0c;在确定数据项模型时&#xff0c;需要遵…

Sentinel(理论版)

Sentinel 1.什么是Sentinel Sentinel 是一个开源的流量控制组件&#xff0c;它主要用于在分布式系统中实现稳定性与可靠性&#xff0c;如流量控制、熔断降级、系统负载保护等功能。简单来说&#xff0c;Sentinel 就像是一个交通警察&#xff0c;它可以根据系统的实时流量&…

算法学习——LeetCode力扣链表篇1

算法学习——LeetCode力扣链表篇1 203. 移除链表元素 203. 移除链表元素 - 力扣&#xff08;LeetCode&#xff09; 描述 给你一个链表的头节点 head 和一个整数 val &#xff0c;请你删除链表中所有满足 Node.val val 的节点&#xff0c;并返回 新的头节点 。 示例 示例 …

一个查看armv8系统寄存器-值-含义的方式

找到解压后的SysReg_xml_v86A-2019-12目录 wget https://developer.arm.com/-/media/developer/products/architecture/armv8-a-architecture/2019-12/SysReg_xml_v86A-2019-12.tar.gz wget https://developer.arm.com/-/media/developer/products/architecture/armv8-a-archi…

ChatGPT辅助编程,一次有益的尝试

如果大家想学习PCIe&#xff0c;搜索网上的信息&#xff0c;大概率会看到chinaaet上Felix的PCIe扫盲系列的博文 Felix-PCIe扫盲 每次看这个系列博文的时候&#xff0c;我都在想有没有什么方法可以把这个系列的博文都保存到一个pdf文件中&#xff0c;这样方便阅读。于是有了下…

蓝桥杯省赛无忧 课件99 裴蜀定理

前置算法 欧几里得算法 01 什么是裴蜀定理 02 裴蜀定理的数学证明 03 裴蜀定理扩展 04 例题 关联知识 EXGCD(扩展欧几里得算法)

SSRF漏洞给云服务元数据带来的安全威胁

文章目录 前言元数据服务威胁1.1 Metadata元数据1.2 RAM资源管理角色1.3 STS 临时凭据利用1.4 CF云环境利用框架1.5 元数据安全性增强 TerraformGoat2.1 永久性AccessKey2.2 SSRF靶场环境搭建2.3 腾讯云CVM配角色2.4 接管腾讯云控制台 SSRF组合拳案例3.1 上传图片功能SSRF3.2 文…

ubuntu22.04@laptop OpenCV Get Started: 001_reading_displaying_write_image

ubuntu22.04laptop OpenCV Get Started: 001_reading_displaying_write_image 1. 源由2. Read/Display/Write应用Demo2.1 C应用Demo2.2 Python应用Demo 3. 过程分析3.1 导入OpenCV库3.2 读取图像文件3.3 显示图像3.4 保存图像文件 4. 总结5. 参考资料 1. 源由 读、写、显示图像…

Android中设置Toast.setGravity()了后没有效果

当设置 toast.setGravity()后&#xff0c;弹窗依旧从原来的位置弹出&#xff0c;不按设置方向弹出 类似以下代码&#xff1a; var toast Toast.makeText(this, R.string.ture_toast, Toast.LENGTH_SHORT)toast.setGravity(Gravity.TOP, 0, 0)//设置toast的弹出方向为屏幕顶部…

蓝桥杯刷题day07——斐波那契与7

1、题目描述 斐波那契数列的递推公式为:FnFn-1Fn-2, 其中F1F21. 请问, 斐波那契数列的第 1 至 202202011200 项&#xff08;含&#xff09;中, 有多少项的个位 是 7 。 答案提交 这是一道结果填空的题, 你只需要算出结果后提交即可。本题的结果为一 个整数, 在提交答案时只填…

云计算运营模式介绍

目录 一、云计算运营模式概述 1.1 概述 二、云计算服务角色 2.1 角色划分 2.1.1 云服务提供商 2.1.2 云服务消费者 2.1.3 云服务代理商 2.1.4 云计算审计员 2.1.5 云服务承运商 三、云计算责任模型 3.1 云计算服务模式与责任关系图 3.2 云计算服务模式与责任关系解析…

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

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

第01课:自动驾驶概述

文章目录 1、无人驾驶行业概述什么是无人驾驶智慧出行大趋势无人驾驶能解决什么问题行业趋势无人驾驶的发展历程探索阶段&#xff08;2004年以前&#xff09;发展阶段&#xff08;2004年-2016年&#xff09;成熟阶段&#xff08;2016年以后&#xff09; 2、无人驾驶技术路径无人…

华为OD机试真题C卷-篇3

文章目录 查找一个有向网络的头节点和尾节点幼儿园篮球游戏 查找一个有向网络的头节点和尾节点 在一个有向图中&#xff0c;有向边用两个整数表示&#xff0c;第一个整数表示起始节点&#xff0c;第二个整数表示终止节点&#xff1b;图中只有一个头节点&#xff0c;一个或者多…