i've been using vscode remote-ssh for quite a while, and it works good.
but then "suddenly" today it failed to connect to remote.
error message from "Output" is like:
[17:43:31.898] Log Level: 2
[17:43:31.900] [email protected]
[17:43:31.900] darwin x64
[17:43:31.902] SSH Resolver called for "ssh-remote+acct_rem", attempt 1
[17:43:31.903] SSH Resolver called for host: acct_rem
[17:43:31.903] Setting up SSH remote "acct_rem"
[17:43:31.906] Acquiring local install lock: /var/folders/tz/wlldk0rx5c9gvn0hppw6_3s40000gn/T/vscode-remote-ssh-acct_rem-install.lock
[17:43:31.920] Looking for existing server data file at /Users/acct/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-acct_rem-ff915844119ce9485abfe8aa9076ec76b5300ddd-0.51.0/data.json
[17:43:31.921] Using commit id "ff915844119ce9485abfe8aa9076ec76b5300ddd" and quality "stable" for server
[17:43:31.922] Install and start server if needed
[17:43:31.925] Checking ssh with "ssh -V"
[17:43:31.946] > OpenSSH_7.4p1, LibreSSL 2.5.0
[17:43:31.949] askpass server listening on /var/folders/tz/wlldk0rx5c9gvn0hppw6_3s40000gn/T/vscode-ssh-askpass-4125a65ebb5df1db148994c9205da261db5cda30.sock
[17:43:31.950] Spawning local server with {"ipcHandlePath":"/var/folders/tz/wlldk0rx5c9gvn0hppw6_3s40000gn/T/vscode-ssh-askpass-2361c3ab2d752d05f9e7fb401bc2e5380fa71848.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","49641","-o","ConnectTimeout=15","acct_rem"],"dataFilePath":"/Users/acct/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-acct_rem-ff915844119ce9485abfe8aa9076ec76b5300ddd-0.51.0/data.json"}
[17:43:31.950] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/acct/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Users/acct/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)","VSCODE_SSH_ASKPASS_MAIN":"/Users/acct/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/tz/wlldk0rx5c9gvn0hppw6_3s40000gn/T/vscode-ssh-askpass-4125a65ebb5df1db148994c9205da261db5cda30.sock"}
[17:43:31.954] Spawned 2850
[17:43:32.068] > local-server> Spawned ssh: 2851
[17:43:32.083] stderr> OpenSSH_7.4p1, LibreSSL 2.5.0
[17:43:32.301] stderr> debug1: Server host key: ssh-rsa SHA256:MN1F2VgcYu+vvtvxOopPJIa+BbolhCpqsOpXUMsGMg8
[17:43:32.613] Got askpass request: {"request":"acct@<ip>'s password:"}
[17:43:32.613] Showing password prompt
[17:43:32.615] Listening for interwindow password on /var/folders/tz/wlldk0rx5c9gvn0hppw6_3s40000gn/T/vscode-ssh-askpass-5f7526d3516cc40cf0c9d6ab255ce8a682312034.sock
[17:43:32.615] Writing password prompt to globalState
[17:44:09.694] Got password response
[17:44:09.695] Interactor gave response: ******
[17:44:09.695] Cleaning up other-window auth server
[17:44:09.768] stderr> Authenticated to <ip> ([<ip>]:22).
[17:44:09.848] stderr> Warning: remote port forwarding failed for listen port 52698
[17:44:09.928] > Last failed login: Tue Apr 21 17:39:09 CST 2020 from 30.25.64.187 on ssh:notty
> There were 6 failed login attempts since the last successful login.
[17:44:10.418] > ready: edc5420dcb89
[17:44:10.459] > Linux 3.10.0-327.ali2012.alios7.x86_64 #1 SMP Mon Oct 9 14:09:14 CST 2017
[17:44:10.459] Platform: linux
[17:44:10.550] > edc5420dcb89: running
[17:44:10.582] > Acquiring lock on /home/acct/.vscode-server/bin/ff915844119ce9485abfe8aa9076ec76b5300ddd/vscode-remote-lock.acct.ff915844119ce9485abfe8aa9076ec76b5300ddd
[17:44:10.583] > \ln /home/acct/.vscode-server/bin/ff915844119ce9485abfe8aa9076ec76b5300ddd/vscode-remote-lock.acct.ff915844119ce9485abfe8aa9076ec76b5300ddd.target /home/acct/.vscode-server/bin/ff915844119ce9485abfe8aa9076ec76b5300ddd/vscode-remote-lock.acct.ff915844119ce9485abfe8aa9076ec76b5300ddd
[17:44:10.586] > Found existing installation at /home/acct/.vscode-server/bin/ff915844119ce9485abfe8aa9076ec76b5300ddd...
[17:44:10.632] > Found running server...
>
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>
[17:44:10.636] > Server did not start successfully. Full server log at /home/acct/.vscode-server/.ff915844119ce9485abfe8aa9076ec76b5300ddd.log >>>
[17:44:10.639] > <<< End of server log
> edc5420dcb89##32##
[17:44:10.640] Received install output: edc5420dcb89##32##
[17:44:10.640] Terminating local server
[17:44:10.641] Resolver error: The VS Code Server failed to start
[17:44:10.644] ------
[17:44:10.647] Local server exit: 15
after use following to kill remote vs server, it's fine now
Remote-SSH: kill VS Code Server on Host...
Hi,
I have the similiar issue. The installation have continued the whole day. But it still can't connect with server.
[15:24:35.627] Log Level: 2
[15:24:35.641] [email protected]
[15:24:35.641] win32 x64
[15:24:35.645] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a226a757079746572536572766572227d", attempt 1
[15:24:35.645] SSH Resolver called for host: jupyterServer
[15:24:35.645] Setting up SSH remote "jupyterServer"
[15:24:35.696] Using commit id "ff915844119ce9485abfe8aa9076ec76b5300ddd" and quality "stable" for server
[15:24:35.698] Install and start server if needed
[15:24:35.702] Checking ssh with "ssh -V"
[15:24:35.870] > OpenSSH_for_Windows_8.0p1, LibreSSL 2.6.5
[15:24:35.874] Using SSH config file "C:\Users\khy\.ssh\config"
[15:24:35.874] Running script with connection command: ssh -T -D 51718 -F "C:\Users\khy\.ssh\config" jupyterServer bash
[15:24:35.879] Terminal shell path: C:\Windows\System32\cmd.exe
[15:24:36.276] >
[15:24:36.277] Got some output, clearing connection timeout
[15:24:37.136] > ***@*****'s password:
[15:24:41.022] >
>
[15:24:41.573] > 9a6f042c9df0: running
>
[15:24:41.698] > Acquiring lock on /home/khy/.vscode-server/bin/ff915844119ce9485abfe8aa9076ec76b5300ddd/vscode-remote-lock.khy.ff91584411
> 9ce9485abfe8aa9076ec76b5300ddd
> \ln ~/.vscode-server/bin/ff915844119ce9485abfe8aa9076ec76b5300ddd/vscode-remote-lock.khy.ff915844119ce9485abfe8aa
> 9076ec76b5300ddd.target ~/.vscode-server/bin/ff915844119ce9485abfe8aa9076ec76b5300ddd/vscode-remote-lock.khy.ff91
> 5844119ce9485abfe8aa9076ec76b5300ddd
> Installing to ~/.vscode-server/bin/ff915844119ce9485abfe8aa9076ec76b5300ddd...
> 9a6f042c9df0%%1%%
> Downloading with wget
>
[15:24:43.588] > Download complete
> 9a6f042c9df0%%2%%
>
[23:47:19.858] "install" terminal command done
[23:47:19.859] Install terminal quit with output:
[23:47:19.860] Resolver error: Got bad result from install script
[23:47:19.867] ------
I have similar issue when connecting the Linux server from Mac.
[15:02:04.699] Log Level: 2
[15:02:04.700] [email protected]
[15:02:04.700] darwin x64
[15:02:04.701] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a2246465052492d535348227d", attempt 1
[15:02:04.702] SSH Resolver called for host: FFPRI-SSH
[15:02:04.702] Setting up SSH remote "FFPRI-SSH"
[15:02:04.714] Using commit id "cd9ea6488829f560dc949a8b2fb789f3cdc05f5d" and quality "stable" for server
[15:02:04.719] Install and start server if needed
[15:02:04.751] Checking ssh with "ssh -V"
[15:02:04.763] > OpenSSH_8.1p1, LibreSSL 2.7.3
[15:02:04.780] Running script with connection command: ssh -T -D 49581 -o ConnectTimeout=15 FFPRI-SSH bash
[15:02:06.162] > 6cb7f31a8a91: running
[15:02:06.162] Got some output, clearing connection timeout
[15:02:06.182] > Acquiring lock on /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
> \ln /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d.target /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
> Found existing installation at /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d...
[15:02:06.271] > Found running server...
>
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>
> Checking server status on port 39681 with wget
> ε€±ζγγΎγγ: ζ₯ηΆγζε¦γγγΎγγ.
> 6cb7f31a8a91##28##
[15:02:06.272] Received install output: 6cb7f31a8a91##28##
[15:02:06.272] Server status check failed - waiting and retrying
[15:02:06.541] "install" terminal command done
[15:02:06.541] Install terminal quit with output:
[15:02:07.280] Running script with connection command: ssh -T -D 49581 -o ConnectTimeout=15 FFPRI-SSH bash
[15:02:08.749] > 6cb7f31a8a91: running
[15:02:08.749] Got some output, clearing connection timeout
[15:02:08.773] > Acquiring lock on /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
> \ln /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d.target /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
[15:02:08.812] > Found existing installation at /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d...
[15:02:08.868] > Found running server...
>
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>
[15:02:08.891] > Checking server status on port 39681 with wget
> ε€±ζγγΎγγ: ζ₯ηΆγζε¦γγγΎγγ.
> 6cb7f31a8a91##28##
[15:02:08.891] Received install output: 6cb7f31a8a91##28##
[15:02:08.892] Server status check failed - waiting and retrying
Workarround:
I could connect after I removed all files in~/.vscode-server on the remote Linux server.
That workaround did NOT work for me !!
I moved .vscode-server to .vscode-server-ORIG but I still get the same error.
I get a segmentation fault !!
> Server did not start successfully. Full server log at /home/brendan/.vscode-serv
[09:00:00.378] >
> er/.db40434f562994116e5b21c24015a2e40b2504e6.log >>>
[09:00:00.405] > Segmentation fault
> <<< End of server log
> 92c992258307##32##
[09:00:00.405] Received install output: 92c992258307##32##
[09:00:00.406] Resolver error: The VS Code Server failed to start
[09:00:00.409] >
I have been playing around with WSL2 and Remote WSL. I recently upgraded my Win 10 Pro to support WSL2. Could that have any impact? I hope not.
The node binary in the .vscode-server folder on the remote seems to be broken. It segfaults immediately.
I tried removing the .vscode-server directory and let vscode reinstall everything, which it did, but the problem remains.
I've the saame problem. ΒΏAny solution?
I have similar issue when connecting the Linux server from Mac.
[15:02:04.699] Log Level: 2 [15:02:04.700] [email protected] [15:02:04.700] darwin x64 [15:02:04.701] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a2246465052492d535348227d", attempt 1 [15:02:04.702] SSH Resolver called for host: FFPRI-SSH [15:02:04.702] Setting up SSH remote "FFPRI-SSH" [15:02:04.714] Using commit id "cd9ea6488829f560dc949a8b2fb789f3cdc05f5d" and quality "stable" for server [15:02:04.719] Install and start server if needed [15:02:04.751] Checking ssh with "ssh -V" [15:02:04.763] > OpenSSH_8.1p1, LibreSSL 2.7.3 [15:02:04.780] Running script with connection command: ssh -T -D 49581 -o ConnectTimeout=15 FFPRI-SSH bash [15:02:06.162] > 6cb7f31a8a91: running [15:02:06.162] Got some output, clearing connection timeout [15:02:06.182] > Acquiring lock on /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d > \ln /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d.target /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d > Found existing installation at /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d... [15:02:06.271] > Found running server... > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > > Checking server status on port 39681 with wget > ε€±ζγγΎγγ: ζ₯ηΆγζε¦γγγΎγγ. > 6cb7f31a8a91##28## [15:02:06.272] Received install output: 6cb7f31a8a91##28## [15:02:06.272] Server status check failed - waiting and retrying [15:02:06.541] "install" terminal command done [15:02:06.541] Install terminal quit with output: [15:02:07.280] Running script with connection command: ssh -T -D 49581 -o ConnectTimeout=15 FFPRI-SSH bash [15:02:08.749] > 6cb7f31a8a91: running [15:02:08.749] Got some output, clearing connection timeout [15:02:08.773] > Acquiring lock on /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d > \ln /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d.target /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d/vscode-remote-lock.mic.cd9ea6488829f560dc949a8b2fb789f3cdc05f5d [15:02:08.812] > Found existing installation at /home/mic/.vscode-server/bin/cd9ea6488829f560dc949a8b2fb789f3cdc05f5d... [15:02:08.868] > Found running server... > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > [15:02:08.891] > Checking server status on port 39681 with wget > ε€±ζγγΎγγ: ζ₯ηΆγζε¦γγγΎγγ. > 6cb7f31a8a91##28## [15:02:08.891] Received install output: 6cb7f31a8a91##28## [15:02:08.892] Server status check failed - waiting and retryingWorkarround:
I could connect after I removed all files in
~/.vscode-serveron the remote Linux server.
This method works for me, thx.
Sorry, I'm going to close this since it is stale and the logs show a few different issues going on.
Server status check failed - waiting and retrying
This would show up when the server is running but has stopped responding to requests for some reason, and restarting the server would fix it. Not sure of the cause, sorry.
after use following to kill remote vs server, it's fine now
Remote-SSH: kill VS Code Server on Host...
VSCode -> View -> Command Palette -> input "remote" -> Select Remote-SSH: Kill VS Code Server on Host...
@findQin solution worked well and solved the problem for myself
Most helpful comment
I have similar issue when connecting the Linux server from Mac.
Workarround:
I could connect after I removed all files in
~/.vscode-serveron the remote Linux server.