国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start

這篇具有很好參考價值的文章主要介紹了VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報違法"按鈕提交疑問。

問題描述

電腦關(guān)機(jī)打開后,使用VSCode連接服務(wù)器,在輸入完密碼之后右下角一直沒有加載完畢,一直報:無法安裝VS Code服務(wù)器
Windows終端可以ssh到服務(wù)器上;VSCode連接時報錯,之前連接過。

具體報錯信息

[08:47:41.235] Log Level: 1
[08:47:41.244] remote-ssh@0.62.0
[08:47:41.244] win32 x64
[08:47:41.246] SSH Resolver called for "ssh-remote+mrevowgp1.westus2.cloudapp.azure.com", attempt 1
[08:47:41.246] "remote.SSH.useLocalServer": false
[08:47:41.247] "remote.SSH.showLoginTerminal": false
[08:47:41.247] "remote.SSH.remotePlatform": {"mrevowcpu2.centralus.cloudapp.azure.com":"linux"}
[08:47:41.247] "remote.SSH.sshPath": undefined
[08:47:41.247] "remote.SSH.sshConfigurationFile": undefined
[08:47:41.247] "remote.SSH.useFlock": true
[08:47:41.248] "remote.SSH.lockfilesInTmp": false
[08:47:41.248] "remote.SSH.localServerDownload": auto
[08:47:41.248] "remote.SSH.remoteServerListenOnSocket": false
[08:47:41.248] "remote.SSH.showLoginTerminal": false
[08:47:41.248] "remote.SSH.maxReconnectionAttempts": 9007199254740991
[08:47:41.248] SSH Resolver called for host: mrevowgp1.westus2.cloudapp.azure.com
[08:47:41.249] Setting up SSH remote "mrevowgp1.westus2.cloudapp.azure.com"
[08:47:41.279] Using commit id "ea3859d4ba2f3e577a159bc91e3074c5d85c0523" and quality "stable" for server
[08:47:41.285] Install and start server if needed
[08:47:45.967] Checking ssh with "ssh -V"
[08:47:46.028] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5

[08:47:46.034] Running script with connection command: ssh -T -D 57263 "mrevowgp1.westus2.cloudapp.azure.com" bash
[08:47:46.037] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[08:47:47.021] "install" terminal received data: "?[2J?[m?[H93ea2fea3716: running
?]0;C:\WINDOWS\System32\cmd.exe??[?25h"
[08:47:47.022] Got some output, clearing connection timeout
[08:47:47.061] "install" terminal received data: "Acquiring lock on /home/mrevow/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074
c5d85c0523/vscode-remote-lock.mrevow.ea3859d4ba2f3e577a159bc91e3074c5d85c0523   
Found existing installation at /home/mrevow/.vscode-server/bin/ea3859d4ba2f3e577
a159bc91e3074c5d85c0523...?[K
Checking /home/mrevow/.vscode-server/.ea3859d4ba2f3e577a159bc91e3074c5d85c0523.l
og and /home/mrevow/.vscode-server/.ea3859d4ba2f3e577a159bc91e3074c5d85c0523.pid
 for a running server?[K
Looking for server with pid: 4605?[K"
[08:47:47.076] "install" terminal received data: "Found running server...?[K
?[K
*?[K
* Reminder: You may only use this software with Visual Studio family products,  
* as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) 
*?[K
?[K
Server did not start successfully. Full server log at /home/mrevow/.vscode-serve
r/.ea3859d4ba2f3e577a159bc91e3074c5d85c0523.log >>>?[K
<<< End of server log?[K
93ea2fea3716: start?[K
exitCode==32==?[K
listeningOn====?[K
osReleaseId==ubuntu==?[K
arch==x86_64==?[K
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
93ea2fea3716: end"
[08:47:47.076] Received install output: 
exitCode==32==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====

[08:47:47.084] Resolver error: Error: The VS Code Server failed to start
	at Function.ServerInstallError (c:\Users\mrevow\.vscode\extensions\ms-vscode-remote.remote-ssh-0.62.0\out\extension.js:1:64207)
	at c:\Users\mrevow\.vscode\extensions\ms-vscode-remote.remote-ssh-0.62.0\out\extension.js:1:62459
	at Object.t.handleInstallOutput (c:\Users\mrevow\.vscode\extensions\ms-vscode-remote.remote-ssh-0.62.0\out\extension.js:1:63061)
	at I (c:\Users\mrevow\.vscode\extensions\ms-vscode-remote.remote-ssh-0.62.0\out\extension.js:1:311112)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async c:\Users\mrevow\.vscode\extensions\ms-vscode-remote.remote-ssh-0.62.0\out\extension.js:1:309029
	at async Object.t.withShowDetailsEvent (c:\Users\mrevow\.vscode\extensions\ms-vscode-remote.remote-ssh-0.62.0\out\extension.js:1:403706)
	at async Object.t.resolve (c:\Users\mrevow\.vscode\extensions\ms-vscode-remote.remote-ssh-0.62.0\out\extension.js:1:312426)
	at async c:\Users\mrevow\.vscode\extensions\ms-vscode-remote.remote-ssh-0.62.0\out\extension.js:127:110280
[08:47:47.087] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"ExitCode","exitCodeLabel":"ServerFailedToStart","osReleaseId":"ubuntu","arch":"x86_64","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"0"},"measures":{"resolveAttempts":1,"exitCode":32,"retries":1,"timing.totalResolveTime":5832,"timing.preSshTime":4790,"timing.establishSshTime":986,"timing.scriptTime":1040}}
[08:47:47.089] ------

[08:47:47.799] "install" terminal command done
[08:47:47.799] Install terminal quit with output: 

解決方法

前期準(zhǔn)備:在做后邊的操作之前一定要記得關(guān)閉遠(yuǎn)程,報錯的時候會彈出彈窗或者按ESC,選擇關(guān)閉遠(yuǎn)程即可。

一,關(guān)閉VS Code與遠(yuǎn)程服務(wù)器的連接(不能實(shí)現(xiàn),故這一步可省略)

在VS Code中ctrl+shift+p后,在彈出框中輸入Remote-SSH:kill VS Code Server on Host,重新打開對應(yīng)的遠(yuǎn)端服務(wù)器即可。

VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start,vscode,ssh,服務(wù)器

選擇后右下角會彈出提示框:在****上終止VS Code服務(wù)器。我們可以打開日志查看一下:
這樣說明,我們目前沒有辦法斷掉連接,也可以搜一下怎么在VS Code中刪除服務(wù)器文件。

> [20:09:53.053] > kill: 用法:kill [-s 信號聲明 | -n 信號編號 | -信號聲明] 進(jìn)程號 | 任務(wù)聲明 ...>  kill -l [信號聲明]
[20:09:53.115] > rm: 無法刪除"/home/....../.vscode-server/bin/8b617bd08fd9e
> 3fc94d14adb8d358b56e3f72314/.nfs000000000171d4d900000f95": 設(shè)備或資源忙
> rm: 無法刪除"/home/....../.vscode-server/bin/8b617bd08fd9e
> 3fc94d14adb8d358b56e3f72314/.nfs000000000176c16300000f10": 設(shè)備或資源忙
[20:09:53.131] > rm: 無法刪除"/home/....../.vscode-server/bin/ee2b180d582a7
> f601fa6ecfdad8d9fd269ab1884/.nfs0000000000bb1e4800000baf": 設(shè)備或資源忙
> rm: 無法刪除"/home/....../.vscode-server/bin/abd2f3db4bdb2
> 8f9e95536dfa84d8479f1eb312d/.nfs00000000017615b40000115e": 設(shè)備或資源忙
[20:09:54.401] "Uninstall VS Code Server" terminal command done

二、在服務(wù)器端刪除.vscode-sever

1.服務(wù)器端刪除.vscode-sever,路徑一般是/home/$(usrname)/.vscode-sever。(無需這一步刪除,這個是因為查看了很多嘗試的方法)

2.在本地電腦可以通過刪除C:\Users\$(username)\.ssh路徑下known_hosts和config文件里面服務(wù)器的相關(guān)。

三、清楚插件里面的緩存

Remote-SSH插件里面的緩存還在,使用快捷鍵:Ctrl + , 在搜索框中搜索remote.SSH.remotePlatform清除遠(yuǎn)端服務(wù)器配置

VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start,vscode,ssh,服務(wù)器

四、本地重啟vscode 重新連接即可

注意

上面的解決方法沒有所謂的順序,可以隨意組合,也有可能一種就可以解決問題。

小tips

關(guān)于插件正在加載,并且始終無法加載成功(一直處于加載狀態(tài)),重啟VSC、禁用插件、甚至重裝VSC都無法解決問題。該問題不定期出現(xiàn)!

給出解決方案:

只需在VSC JSON設(shè)置文件(settings.json 文件)中加入以下代碼

"telemetry.enableTelemetry": false

重啟VSC,即可解決。

打開settings.json文件的方法

1.ctrl + shift + p 調(diào)出搜索框
2. 選擇你想要設(shè)置的文件
VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start,vscode,ssh,服務(wù)器
Open Workspace Settings 也會打開UI設(shè)置界面;
Open User Settings (JSON) 會打開用戶設(shè)置 settings.json 文件;
Open Workspace Settings (JSON) 會打開工作區(qū)設(shè)置 settings.json 文件

vscode存在兩種設(shè)置 settings.json 的方式

User Settings 用戶設(shè)置: 用戶級設(shè)置,該用戶打開的所有vscode共用這個設(shè)置

Workspace Settings 工作區(qū)設(shè)置: 目錄下.vscode 隱藏文件夾,設(shè)置文件為.vscode/settings.json,作用于當(dāng)前工作區(qū)或項目,優(yōu)先級高于用戶設(shè)置

調(diào)整vscode工具欄、菜單欄字體大小

VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start,vscode,ssh,服務(wù)器
VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start,vscode,ssh,服務(wù)器

輸入Zoom level即是調(diào)整菜單欄的整體字體大小
VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start,vscode,ssh,服務(wù)器文章來源地址http://www.zghlxwxcb.cn/news/detail-755322.html

到了這里,關(guān)于VSCode使用Remote-SSH連接服務(wù)器時報錯:Resolver error: Error: The VS Code Server failed to start的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 【VScode】Remote-SSH XHR failed無法訪問遠(yuǎn)程服務(wù)器

    當(dāng)使用VScode連接遠(yuǎn)程服務(wù)器時,往往需要使用Remote-SSH這個插件。而該插件有一個小bug,當(dāng)遠(yuǎn)程服務(wù)器網(wǎng)絡(luò)不佳時容易出現(xiàn)。 在控制臺會出現(xiàn)下述語句: 該插件在連接遠(yuǎn)程服務(wù)器時,插件會在服務(wù)器端自動運(yùn)行一個腳本。該腳本的主要內(nèi)容是檢查服務(wù)器的vscode-server的運(yùn)行情況

    2024年02月14日
    瀏覽(20)
  • vscode出現(xiàn):Remote-SSH XHR failed無法訪問遠(yuǎn)程服務(wù)器

    在控制臺會出現(xiàn)下述語句: Resolver error: Error: XHR failed at y.onerror (vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:77:1261) 1、在虛擬機(jī)中獲取commit id。 cd ~/.vscode-server/bin abd2f3db4bdb28f9e95536dfa84d8479f1eb312d 例如,我的commit id就是abd2f3db4bdb28f9e95536dfa8

    2024年02月04日
    瀏覽(31)
  • vscode-insiders Remote-SSH XHR failed無法訪問遠(yuǎn)程服務(wù)器

    vscode-insiders Remote-SSH XHR failed無法訪問遠(yuǎn)程服務(wù)器

    問題概述: 在連接遠(yuǎn)程服務(wù)器時,會在服務(wù)器端自動運(yùn)行一個vscode-server腳本,當(dāng)網(wǎng)絡(luò)出現(xiàn)問題時,下載出錯可能就會連接失敗。 看到目錄下有該文件,但是解壓縮時出錯。說明文件本身有問題,但是由于已經(jīng)存在該文件所以不會重新下載。因此刪除該文件,重新打開vscode,

    2024年02月03日
    瀏覽(24)
  • vscode 使用ssh進(jìn)行遠(yuǎn)程開發(fā) (remote-ssh),首次連接及后續(xù)使用,詳細(xì)介紹

    vscode 使用ssh進(jìn)行遠(yuǎn)程開發(fā) (remote-ssh),首次連接及后續(xù)使用,詳細(xì)介紹

    首次連接 選擇左側(cè)欄的擴(kuò)展,并搜索remote ssh 它大概長這樣,點(diǎn)擊安裝 安裝成功后,在左側(cè)欄會出現(xiàn)遠(yuǎn)程連接的圖標(biāo),點(diǎn)擊后選擇ssh旁加號便可以進(jìn)行連接。 安裝成功后vscode左下角會有一個圖標(biāo) 點(diǎn)擊圖標(biāo)選擇連接到主機(jī) 選擇 添加新的SSH主機(jī) 輸入要連接主機(jī)的用戶名和ip,

    2024年04月11日
    瀏覽(33)
  • VSCode使用Remote SSH遠(yuǎn)程連接Linux服務(wù)器【遠(yuǎn)程開發(fā)】

    VSCode使用Remote SSH遠(yuǎn)程連接Linux服務(wù)器【遠(yuǎn)程開發(fā)】

    轉(zhuǎn)發(fā)自CSDN遠(yuǎn)程穿透的文章:【vscode遠(yuǎn)程開發(fā)】使用SSH遠(yuǎn)程連接服務(wù)器 「內(nèi)網(wǎng)穿透」 遠(yuǎn)程連接服務(wù)器工具有很多,比如XShell、putty等,可以通過ssh來遠(yuǎn)程連接服務(wù)器,但這用于寫代碼并不方便,可能需要現(xiàn)在本地寫好代碼后再將源代碼傳送到服務(wù)器運(yùn)行、服務(wù)器上的圖片也無

    2023年04月21日
    瀏覽(30)
  • vscode 使用ssh進(jìn)行遠(yuǎn)程開發(fā) (remote-ssh)

    vscode 使用ssh進(jìn)行遠(yuǎn)程開發(fā) (remote-ssh)

    visual studio code remote - ssh 可以通過ssh連接遠(yuǎn)程主機(jī)、虛擬機(jī),打開遠(yuǎn)程文件夾,并利用vscode 的插件優(yōu)勢進(jìn)行遠(yuǎn)程開發(fā)、調(diào)試等。 一、配置環(huán)境 因為remote-ssh 的ssh連接是基于openssh實(shí)現(xiàn)的,以及后續(xù)我們需要使用生成ssh密鑰需要git,所以我們需要準(zhǔn)備: OpenSSH Git版本不低于1.9 如

    2024年02月12日
    瀏覽(22)
  • 使用vscode Remote SSH連接遠(yuǎn)端服務(wù)器安裝python擴(kuò)展后仍無法運(yùn)行python文件

    使用vscode Remote SSH連接遠(yuǎn)端服務(wù)器安裝python擴(kuò)展后仍無法運(yùn)行python文件

    ?。。?!最先說明,連接遠(yuǎn)端服務(wù)器的時候不要掛VPN,連接外網(wǎng)?。。?如果掛了梯子,大概率都會安裝不上/無法使用激活擴(kuò)展!?。?! 所以執(zhí)行以下操作之前,先把梯子給退了。 第一步,檢查你的遠(yuǎn)端服務(wù)器上是否有python。 ?如果沒有,請安裝python環(huán)境。網(wǎng)上教程很多,就

    2024年04月23日
    瀏覽(23)
  • vscode遠(yuǎn)程連接服務(wù)器(remote ssh)+上傳本地文件到服務(wù)器(sftp)

    vscode遠(yuǎn)程連接服務(wù)器(remote ssh)+上傳本地文件到服務(wù)器(sftp)

    一、vscode遠(yuǎn)程連接服務(wù)器 1.點(diǎn)擊vscode右邊工具欄點(diǎn)擊拓展,搜索remote ssh并安裝 2.安裝完成后,左邊工具欄會出現(xiàn)一個電腦圖標(biāo)的遠(yuǎn)程資源管理器,點(diǎn)擊后選擇SSH TARGETS的設(shè)置 3.然后選擇第一個..sshconfig 4.向服務(wù)器管理員索要服務(wù)器的連接信息并修改ssh config文件 ? 5.設(shè)置完成

    2024年02月01日
    瀏覽(27)
  • vscode remote-ssh配置

    vscode remote-ssh配置

    使用vscode的插件remote-ssh進(jìn)行l(wèi)inux的遠(yuǎn)程控制。 在vscode上安裝完remote-ssh插件后,還需要安裝openssh-client。 openssh-client安裝 先 win + R 打開cmd,輸入 ssh ,查看是否已經(jīng)安裝了。 如果沒有安裝,用管理員權(quán)限打開powershell 運(yùn)行以下代碼,查看信息 如果client和server都沒有安裝,會顯

    2024年02月16日
    瀏覽(21)
  • VSCode Remote-SSH (Windows)

    VSCode Remote-SSH (Windows)

    VSCode Follow the step-by-step tutorial or if you have a simple SSH host setup, connect to it as follows: Press F1 and run the Remote-SSH: Open SSH Host… command. Enter your user and host/IP in the following format in the input box that appears and press enter: user@host-or-ip or user@domain@host-or-ip If prompted, enter your password (but we suggest setti

    2024年02月14日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包