- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Visual Studio Code Insiders 版本 1.65.0-insider。直到 3 天前,我通过 VPN 从工作笔记本电脑连接到工作中的远程服务器时没有遇到任何问题。我有 ssh 配置文件,当我打开 vscode(连接到 VPN 时)时,系统会要求我输入密码,并且连接没有问题。
但是,从昨天开始,我开始收到一条错误消息,指出无法建立与 idk4v 的连接:VS Code 服务器无法启动。 idk4v 是远程计算机的名称我给出了我的 ssh 配置文件。我还在输出中连续得到 Waiting for server log... 。我将刚才尝试的输出粘贴到此处。为了简洁起见,我删除了非必要的部分:
[08:27:13.110] Log Level: 2
[08:27:13.113] <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e391868e8c9786ce90908ba3d3cdd4d3cdd3" rel="noreferrer noopener nofollow">[email protected]</a>
[08:27:13.113] win32 x64
[08:27:13.114] SSH Resolver called for "ssh-remote+idk4v", attempt 1
[08:27:13.114] "remote.SSH.useLocalServer": false
[08:27:13.114] "remote.SSH.showLoginTerminal": false
[08:27:13.114] "remote.SSH.remotePlatform": {"idk4l":"linux","idk4v":"linux"}
[08:27:13.114] "remote.SSH.path": undefined
[08:27:13.115] "remote.SSH.configFile": undefined
[08:27:13.115] "remote.SSH.useFlock": true
[08:27:13.115] "remote.SSH.lockfilesInTmp": false
[08:27:13.115] "remote.SSH.localServerDownload": auto
[08:27:13.115] "remote.SSH.remoteServerListenOnSocket": false
[08:27:13.115] "remote.SSH.showLoginTerminal": false
[08:27:13.115] "remote.SSH.defaultExtensions": []
[08:27:13.115] "remote.SSH.loglevel": 2
[08:27:13.115] "remote.SSH.serverPickPortsFromRange": {}
[08:27:13.115] "remote.SSH.enableDynamicForwarding": true
[08:27:13.115] "remote.SSH.serverInstallPath": {}
[08:27:13.116] SSH Resolver called for host: idk4v
[08:27:13.116] Setting up SSH remote "idk4v"
[08:27:13.128] Using commit id "50089c3f92c17584a4aca179f51f220b56c22020" and quality "insider" for server
[08:27:13.130] Install and start server if needed
[08:27:13.132] Checking ssh with "ssh -V"
[08:27:13.159] > OpenSSH_for_Windo
[08:27:13.159] > ws_8.1p1, LibreSSL 3.0.2
[08:27:13.162] Running script with connection command: ssh -T -D 51608 idk4v bash
[08:27:13.163] Terminal shell path: C:\windows\System32\cmd.exe
[08:27:13.361] > ]0;C:\windows\System32\cmd.exe
[08:27:13.362] Got some output, clearing connection timeout
[08:27:17.073] >
>
[08:27:24.396] Showing password prompt
[08:27:27.658] Got password response
[08:27:27.658] "install" wrote data to terminal: "********"
[08:27:27.677] >
[08:27:28.215] > 796e33571197: running
[08:27:28.272] > Acquiring lock on /home/su0/.vscode-server-insiders/bin/50089c3f92c17584a4aca179f51f220b56c22020/vscode-remote-lock.su0.50089c3f92c17584a4aca179f51f220b56c22020
[08:27:28.296] > Found existing installation at /home/su0/.vscode-server-insiders/bin/50089c3f92c17584a4aca179f51f220b56c22020...
> Checking /home/su0/.vscode-server-insiders/.50089c3f92c17584a4aca179f51f220b56c22020.log and /home/su0/.vscode-server-insiders/.50089c3f92c17584a4aca179f51f220b56c22020.pid for a running server
[08:27:28.306] > Looking for server with pid: 294423
[08:27:28.413] > Starting server with command... /home/su0/.vscode-server-insiders/bin/50089c3f92c17584a4aca179f51f220b56c22020/server.sh --start-server --host=127.0.0.1 --enable-remote-auto-shutdown --port=0 &> "/home/su0/.vscode-server-insiders/.50089c3f92c17584a4aca179
> f51f220b56c22020.log" < /dev/null
> printenv:
[08:27:28.431] > XDG_SESSION_ID=219
> SELINUX_ROLE_REQUESTED=
> SHELL=/bin/zsh
> SSH_CLIENT=10.159.165.35 51610 22
> SELINUX_USE_CURRENT_RANGE=
> USER=su0
> VSCODE_AGENT_FOLDER=/home/su0/.vscode-server-insiders
> MAIL=/var/mail/su0
> PATH=/usr/local/bin:/usr/bin
> PWD=/home/su0
> SELINUX_LEVEL_REQUESTED=
> SHLVL=1
> HOME=/home/su0
> LOGNAME=su0
> SSH_CONNECTION=10.159.165.35 51610 10.1.164.50 22
> XDG_RUNTIME_DIR=/run/user/46546
> _=/usr/bin/printenv
> Spawned remote server: 6344
> Waiting for server log...
Waiting for server log...
[08:27:36.044] >
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>
[08:27:36.055] >
> Server did not start successfully. Full server log at /home/su0/.vscode-server-insiders/.50089c3f92c17584a4aca179f51f220b56c22020.log >>>
> server.sh is being replaced by 'bin/code-server-insiders'. Please migrate to the new command and adopt the following new default behaviors:
> * connection token is mandatory unless --without-connection-token is used
> * host defaults to `localhost`
> *
> * Visual Studio Code Server
> *
> * By using the software, you agree to
> * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
> * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
> *
> Do you accept the terms in the License Agreement?<<< End of server log
> 796e33571197: start
> exitCode==32==
> listeningOn====
> osReleaseId==centos==
> arch==x86_64==
> tmpDir==/run/user/46546==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime==7623==
> 796e33571197: end
[08:27:36.055] Received install output:
exitCode==32==
listeningOn====
osReleaseId==centos==
arch==x86_64==
tmpDir==/run/user/46546==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime==7623==
[08:27:36.056] Resolver error: Error: The VS Code Server failed to start
at Function.ServerInstallError (c:\Users\su0\.vscode-insiders\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:430359)
at u (c:\Users\su0\.vscode-insiders\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:424682)
at Object.t.handleInstallOutput (c:\Users\su0\.vscode-insiders\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:429101)
at Object.t.tryInstall (c:\Users\su0\.vscode-insiders\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:524212)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async c:\Users\su0\.vscode-insiders\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:487216
at async Object.t.withShowDetailsEvent (c:\Users\su0\.vscode-insiders\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:490561)
at async Object.t.resolve (c:\Users\su0\.vscode-insiders\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:488295)
at async c:\Users\su0\.vscode-insiders\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:564197
[08:27:36.060] ------
[08:27:36.285] >
[08:27:37.355] "install" terminal command done
[08:27:37.355] Install terminal quit with output:
我试过this解决方案,我在主机上杀死并卸载了 VS Code Server,删除了远程服务器上的 ~/.vscode-server-insiders
目录,重新启动 VS Code,并尝试重新连接到服务器。但我遇到了同样的错误。我找不到任何其他解决方案。如有任何帮助,我们将不胜感激。
最佳答案
这在很大程度上是一种黑客行为,绝对不是一个长期解决方案,而是一种快速解决方案。
在您发布的日志中找到server.sh
路径,在编辑器中打开它,并将--accept-server-license-terms
添加到最后一行所以它看起来像 "$ROOT/node"${INSPECT:-} "$ROOT/out/server-main.js"--compatibility=1.63 --accept-server-license-terms "$@"
。这将自动接受条款,直到 MS 修复此问题。
关于vscode-remote - VSCode Insiders 远程 SSH 停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71127453/
假设我有一个表 A 和其中的函数 C 和 B,我可以通过引用自身来调用函数 C 中的表 A 函数 B 吗? A = { B = function() print("I am B
下面的代码 class Foo: bar=[sum( i^j for i in range(9) )for j in range(9)] 加注 NameError: global name '
Column( mainAxisSize: MainAxisSize.min, children: [ Container(
我正试着将按钮宽度扩展到卡内的行间,但都不起作用。我甚至不明白它为什么要断开,它说它在框约束中断开,因为它有无限的宽度
我正试着将按钮宽度扩展到卡内的行间,但都不起作用。我甚至不明白它为什么要断开,它说它在框约束中断开,因为它有无限的宽度
我正在尝试实现一个矩阵框,为了让它工作,我必须在另一个 vector 内的一个 vector 内使用一个集合。 vector > > matrix; 但是我必须在构造函数中设置 vector 的大
我在这里找到了一个类似的问题,但没有对我有用的答案: System Clipboard Vim within TMUX within SSH session 我正在使用 Gnome 终端启动 ssh
这是我的方法: 我有一个自定义 ListView,其中包含一个包含两种不同类型 View 的自定义适配器。其中之一在每个 View 中都有一个 CheckBox。 我只想在单击其中一个复选框时通知 A
我正在尝试访问一个框架内的控件,该框架位于另一个框架内的框架内。 最后(最深的)框架仅用于登录 - 我设法做到了。 问题是登录后我基本上需要回到上框点击一个按钮。出于某种原因,我不断收到错误消息: N
我一直在阅读我能找到的关于 jsoup 和属性、类、跨度等的所有问题。但是没有一个能帮助我从这个网站获取这些数据。 我正在开发一些体育软件并从网站 soccer24.com 检索比赛数据 现在我想从特
我正在尝试在神社中创建以下循环: variable: > [ {% for replaceme in list %} { 'name': "{{ "string-{{r
我正在尝试使用 jQuery Lazy Load插件,但它说 You can also use plugin for images inside scrolling container, such a
我想把来自 JTable 的对象放在它上面,所以使用 JLayeredPane 似乎很自然。然而,让它正确地绘制,正确地做标题等是非常困难的。我该怎么做才能: 滚动时显示行标题并匹配 列标题在滚动时显
背景:这是我第一次在这里发布问题,但我从阅读他人的问题和答案中学到了很多东西,非常感谢您的所有帮助!我花了几个小时研究这个问题,但找不到适合我的解决方案。下面的示例来自 MySQL website到目
我有一些代码 function getSomeInfoFromDB() { let promises = []; let order = []; $("tr").each(fu
给定相同数量的数组/对象层,每个索引指示相同的内容,嵌套数组和对象的最佳顺序是什么? 我正在制作一个基于网格的游戏,我需要存储有关每个方 block 的几条信息。我知道无法绕过多个级别的数组/对象。我
我有 3 个这样的类: public class Subject { String name; ArrayList teachers; public Subject(Strin
我总是难以混合语言,最近我开始使用 MYSQL。在这种情况下,我有这段代码: 我需要它来打印图像而不是它正在打印的链接。 http://www.google.com/s2/favicons?doma
我查看了多个数据库,但没有找到匹配或适用于我的场景的答案,所以我求助于专家,或者至少是更有经验的专家。我对 HTML 和 CSS 相当陌生。我正在尝试弄清楚如何在 ul 中定位 li,即在 ul 下的
我是一名优秀的程序员,十分优秀!