天天看點

vscode誤更新後,無法連接配接伺服器,報“Acquiring lock on/home/~”和“過程試圖寫入的管道不存在”錯誤

大無語

我在用vscode的時候,一不小心點到了更新,然後我的vscode就連不上伺服器了。後來查資料發現

剛開始,除了如下錯誤(因為視窗關了錯誤找不到了,借用一下别人的)

[08:48:13.513] Server installation process already in progress - waiting and retrying
[08:48:14.517] Running script with connection command: ssh -T -D 58042 "192.168.31.235" bash
[08:48:14.518] Terminal shell path: C:\Windows\System32\cmd.exe
[08:48:14.900] > ]0;C:\Windows\System32\cmd.exe
[08:48:14.900] Got some output, clearing connection timeout
[08:48:14.933] "install" terminal command done
[08:48:14.933] Install terminal quit with output: 
[08:48:15.404] > 741b6048ee5c: running
[08:48:15.469] > Acquiring lock on /home/zhangyasheng/.vscode-server/bin/c3f126316369cd610563c75b
> 1b1725e0679adfb3/vscode-remote-lock.zhangyasheng.c3f126316369cd610563c75b1b1725e
> 0679adfb3
[08:48:15.478] > Installation already in progress...
> If you continue to see this message, you can try toggling the remote.SSH.useFloc
> k setting
> 741b6048ee5c: start
> exitCode==24==
> listeningOn====
> osReleaseId==ubuntu==
> arch==x86_64==
> tmpDir==/run/user/1017==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> 741b6048ee5c: end
[08:48:15.478] Received install output: 
exitCode==24==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
tmpDir==/run/user/1017==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====

[08:48:15.478] Server installation process already in progress - waiting and retrying
[08:48:16.481] Running script with connection command: ssh -T -D 58042 "192.168.31.235" bash
[08:48:16.482] Terminal shell path: C:\Windows\System32\cmd.exe
[08:48:16.862] > ]0;C:\Windows\System32\cmd.exe
[08:48:16.863] Got some output, clearing connection timeout
[08:48:16.899] "install" terminal command done
[08:48:16.900] Install terminal quit with output: 
[08:48:17.397] > 741b6048ee5c: running
[08:48:17.459] > Acquiring lock on /home/zhangyasheng/.vscode-server/bin/c3f126316369cd610563c75b
> 1b1725e0679adfb3/vscode-remote-lock.zhangyasheng.c3f126316369cd610563c75b1b1725e
> 0679adfb3
[08:48:17.467] > Installation already in progress...
> If you continue to see this message, you can try toggling the remote.SSH.useFloc
> k setting
> 741b6048ee5c: start
> exitCode==24==
> listeningOn====
> osReleaseId==ubuntu==
> arch==x86_64==
> tmpDir==/run/user/1017==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> 741b6048ee5c: end
[08:48:17.468] Received install output: 
exitCode==24==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
tmpDir==/run/user/1017==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====

           

注意裡邊有一句Acquiring lock on

2.删除windows下,C:\Users\你的使用者名.ssh\known_hosts(

https://blog.csdn.net/myWorld001/article/details/119443079

Debug | VSCode | 過程試圖寫入的管道不存在 https://blog.csdn.net/weixin_43360896/article/details/116333782

繼續閱讀