Vscode-remote-release: SSH-Remote Reload loop never succeeds

Created on 14 Jan 2020  路  10Comments  路  Source: microsoft/vscode-remote-release


  • VSCode Version: 1.41.1
  • Local OS Version: macOS Catalina 10.15.2
  • Remote OS Version: RHEL Server 7.6 (Maipo)
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. Awake from sleep and VSCode::Remote tries to reconnect
  2. It goes into an long loop. and never loads the workspace.

This worked until last week, but now fails from my mac. I have an Ubuntu workstation running Code 1.41.1 and it works fine.

We have DNS round-robin on our login servers, and I've been using the .ssh/config sockets work-around to make that work.


Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: Yes/No

Here's what the screen looks like when I try to open a new session:
Screen Shot 2020-01-14 at 2 35 50 PM

and here are some mildly edited logs:
```
[14:27:23.643] [email protected]
[14:27:23.643] darwin x64
[14:27:23.644] SSH Resolver called for "ssh-remote+login.workplace.com", attempt 1
[14:27:23.644] SSH Resolver called for host: login.workplace.com
[14:27:23.644] Setting up SSH remote "login.workplace.com"
[14:27:23.657] Using commit id "26076a4de974ead31f97692a0d32f90d735645c0" and quality "stable" for server
[14:27:23.657] Testing ssh with ssh -V
[14:27:23.670] ssh exited with code: 0
[14:27:23.671] Got stderr from ssh: OpenSSH_7.9p1, LibreSSL 2.7.3
[14:27:23.673] Running script with connection command: ssh -T -D 62197 -o ConnectTimeout=15 login.workplace.com bash
[14:27:23.673] Install and start server if needed
[14:27:24.411] > b9214b050630: running
[14:27:24.411] Got some output, clearing connection timeout
[14:27:24.452] > Acquiring lock on /home/mylogin/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[14:27:24.472] > Found existing installation at /home/mylogin/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[14:27:24.516] > 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)
    *

[14:27:24.528] > Checking server status on port 44392 with wget

b9214b050630##28##
[14:27:24.789] "install" terminal command done
[14:27:24.789] Install terminal quit with output: b9214b050630##28##
[14:27:24.789] Received install output: b9214b050630##28##
[14:27:24.789] Server status check failed - waiting and retrying
[14:27:26.282] > b9214b050630: running
[14:27:26.282] Got some output, clearing connection timeout
[14:27:26.318] > Acquiring lock on /home/mylogin/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[14:27:26.327] > Found existing installation at /home/mylogin/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[14:27:26.349] > 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)
    *

[14:27:26.360] > Checking server status on port 44392 with wget

b9214b050630##28##
[14:27:26.614] "install" terminal command done
[14:27:26.614] Install terminal quit with output: b9214b050630##28##
[14:27:26.614] Received install output: b9214b050630##28##
[14:27:26.615] Server status check failed - waiting and retrying
[14:27:28.126] > b9214b050630: running
[14:27:28.126] Got some output, clearing connection timeout```

*duplicate bug ssh

All 10 comments

I don't know if this helps, but I was running into the same issue. I was using VS code remote on two separate machines, both using the same install directory backed by an NFS server (~/.vscode-server-insiders). I had to kill all processes on the first machine before I could start using the second machine. I think there are lockfiles that are not tied to machine-name, so there may be inter-machine conflicts when using a shared filesystem.

When you say "kill all processes on the second machine" do you mean the
server-side or client-side?

Server-side

I quit all of my VSCode client sessions and noticed that I had background processes from my .vscode-server/bin directories on both login nodes, including one dated "2019" and one "Jan 6", with another set of processes from yesterday on the machine with the 2019 processes. I manually killed the jobs and I didn't get the loop again.

I'm also having this issue. It's very inconsistent and only happens some of the time, so is hard to reproduce. Not helped by running Uninstall VS Code Server from Host, or enabling ControlMaster. I tried manually killing some straggling .vscode-server/bin processes on my remote machine, and it's working now.

Code I ran on the server to identify and kill the culprit processes:

ps -ef | grep vscode-server
kill <JOBID>

My logs from the looping retries pasted below in case it's helpful in solving:

[19:13:04.890] [email protected]
[19:13:04.890] darwin x64
[19:13:04.891] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a2252757467657273416d6172656c227d", attempt 1
[19:13:04.891] SSH Resolver called for host: RutgersAmarel
[19:13:04.891] Setting up SSH remote "RutgersAmarel"
[19:13:04.903] Using commit id "26076a4de974ead31f97692a0d32f90d735645c0" and quality "stable" for server
[19:13:04.904] Testing ssh with ssh -V
[19:13:04.915] ssh exited with code: 0
[19:13:04.916] Got stderr from ssh: OpenSSH_7.9p1, LibreSSL 2.7.3
[19:13:04.918] Running script with connection command: ssh -T -D 52146 -o ConnectTimeout=15 RutgersAmarel bash
[19:13:04.919] Install and start server if needed
[19:13:05.233] > e67687ab471a: running
[19:13:05.233] Got some output, clearing connection timeout
[19:13:05.304] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
> Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:05.423] > 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 35608 with wget
[19:13:05.432] > 
> e67687ab471a##28##
[19:13:05.702] "install" terminal command done
[19:13:05.702] Install terminal quit with output: e67687ab471a##28##
[19:13:05.702] Received install output: e67687ab471a##28##
[19:13:05.702] Server status check failed - waiting and retrying
[19:13:06.973] > e67687ab471a: running
[19:13:06.973] Got some output, clearing connection timeout
[19:13:07.029] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:07.042] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:07.155] > 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)
> *
[19:13:07.171] >  
> Checking server status on port 35608 with wget
[19:13:07.179] > 
> e67687ab471a##28##
[19:13:07.441] "install" terminal command done
[19:13:07.441] Install terminal quit with output: e67687ab471a##28##
[19:13:07.441] Received install output: e67687ab471a##28##
[19:13:07.441] Server status check failed - waiting and retrying
[19:13:08.707] > e67687ab471a: running
[19:13:08.707] Got some output, clearing connection timeout
[19:13:08.762] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:08.784] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:08.889] > 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)
> *
>  
[19:13:08.911] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:09.171] "install" terminal command done
[19:13:09.171] Install terminal quit with output: e67687ab471a##28##
[19:13:09.171] Received install output: e67687ab471a##28##
[19:13:09.171] Server status check failed - waiting and retrying
[19:13:10.455] > e67687ab471a: running
[19:13:10.455] Got some output, clearing connection timeout
[19:13:10.501] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:10.521] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:10.631] > 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)
> *
>  
[19:13:10.644] > Checking server status on port 35608 with wget
[19:13:10.653] > 
> e67687ab471a##28##
[19:13:10.918] "install" terminal command done
[19:13:10.918] Install terminal quit with output: e67687ab471a##28##
[19:13:10.918] Received install output: e67687ab471a##28##
[19:13:10.918] Server status check failed - waiting and retrying
[19:13:12.195] > e67687ab471a: running
[19:13:12.195] Got some output, clearing connection timeout
[19:13:12.257] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
> Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:12.386] > 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)
> *
>  
[19:13:12.408] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:12.662] "install" terminal command done
[19:13:12.662] Install terminal quit with output: e67687ab471a##28##
[19:13:12.662] Received install output: e67687ab471a##28##
[19:13:12.662] Server status check failed - waiting and retrying
[19:13:13.940] > e67687ab471a: running
[19:13:13.940] Got some output, clearing connection timeout
[19:13:13.987] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:14.008] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:14.119] > 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)
> *
>  
[19:13:14.137] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:14.406] "install" terminal command done
[19:13:14.406] Install terminal quit with output: e67687ab471a##28##
[19:13:14.406] Received install output: e67687ab471a##28##
[19:13:14.406] Server status check failed - waiting and retrying
[19:13:15.677] > e67687ab471a: running
[19:13:15.677] Got some output, clearing connection timeout
[19:13:15.746] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:15.764] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:15.861] > 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)
> *
>  
[19:13:15.874] > Checking server status on port 35608 with wget
[19:13:15.880] > 
> e67687ab471a##28##
[19:13:16.145] "install" terminal command done
[19:13:16.146] Install terminal quit with output: e67687ab471a##28##
[19:13:16.146] Received install output: e67687ab471a##28##
[19:13:16.146] Server status check failed - waiting and retrying
[19:13:17.411] > e67687ab471a: running
[19:13:17.411] Got some output, clearing connection timeout
[19:13:17.474] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:17.479] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:17.590] > 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)
> *
>  
[19:13:17.609] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:17.874] "install" terminal command done
[19:13:17.874] Install terminal quit with output: e67687ab471a##28##
[19:13:17.874] Received install output: e67687ab471a##28##
[19:13:17.874] Server status check failed - waiting and retrying
[19:13:19.156] > e67687ab471a: running
[19:13:19.156] Got some output, clearing connection timeout
[19:13:19.202] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:19.225] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:19.345] > 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)
> *
[19:13:19.362] >  
> Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:19.626] "install" terminal command done
[19:13:19.626] Install terminal quit with output: e67687ab471a##28##
[19:13:19.626] Received install output: e67687ab471a##28##
[19:13:19.626] Server status check failed - waiting and retrying
[19:13:20.908] > e67687ab471a: running
[19:13:20.909] Got some output, clearing connection timeout
[19:13:20.975] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:20.985] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:21.086] > 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)
> *
>  
[19:13:21.102] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:21.363] "install" terminal command done
[19:13:21.363] Install terminal quit with output: e67687ab471a##28##
[19:13:21.363] Received install output: e67687ab471a##28##
[19:13:21.363] Server status check failed - waiting and retrying
[19:13:22.642] > e67687ab471a: running
[19:13:22.642] Got some output, clearing connection timeout
[19:13:22.690] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:22.708] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:22.823] > 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)
> *
>  
[19:13:22.843] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:23.107] "install" terminal command done
[19:13:23.107] Install terminal quit with output: e67687ab471a##28##
[19:13:23.107] Received install output: e67687ab471a##28##
[19:13:23.107] Server status check failed - waiting and retrying
[19:13:24.391] > e67687ab471a: running
[19:13:24.391] Got some output, clearing connection timeout
[19:13:24.439] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:24.467] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:24.571] > 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)
> *
>  
[19:13:24.592] > Checking server status on port 35608 with wget
[19:13:24.603] > 
> e67687ab471a##28##
[19:13:24.859] "install" terminal command done
[19:13:24.859] Install terminal quit with output: e67687ab471a##28##
[19:13:24.859] Received install output: e67687ab471a##28##
[19:13:24.859] Server status check failed - waiting and retrying
[19:13:26.144] > e67687ab471a: running
[19:13:26.144] Got some output, clearing connection timeout
[19:13:26.196] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:26.217] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:26.325] > 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)
> *
>  
[19:13:26.343] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:26.608] "install" terminal command done
[19:13:26.608] Install terminal quit with output: e67687ab471a##28##
[19:13:26.608] Received install output: e67687ab471a##28##
[19:13:26.608] Server status check failed - waiting and retrying
[19:13:27.893] > e67687ab471a: running
[19:13:27.893] Got some output, clearing connection timeout
[19:13:27.942] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:27.963] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:28.069] > 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)
> *
>  
[19:13:28.092] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:28.358] "install" terminal command done
[19:13:28.358] Install terminal quit with output: e67687ab471a##28##
[19:13:28.359] Received install output: e67687ab471a##28##
[19:13:28.359] Server status check failed - waiting and retrying
[19:13:29.639] > e67687ab471a: running
[19:13:29.639] Got some output, clearing connection timeout
[19:13:29.692] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:29.713] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:29.819] > 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)
> *
>  
[19:13:29.835] > Checking server status on port 35608 with wget
[19:13:29.842] > 
> e67687ab471a##28##
[19:13:30.106] "install" terminal command done
[19:13:30.106] Install terminal quit with output: e67687ab471a##28##
[19:13:30.106] Received install output: e67687ab471a##28##
[19:13:30.106] Server status check failed - waiting and retrying
[19:13:31.377] > e67687ab471a: running
[19:13:31.377] Got some output, clearing connection timeout
[19:13:31.443] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
> Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:31.557] > 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)
> *
>  
[19:13:31.577] > Checking server status on port 35608 with wget
[19:13:31.584] > 
> e67687ab471a##28##
[19:13:31.839] "install" terminal command done
[19:13:31.840] Install terminal quit with output: e67687ab471a##28##
[19:13:31.840] Received install output: e67687ab471a##28##
[19:13:31.840] Server status check failed - waiting and retrying
[19:13:33.108] > e67687ab471a: running
[19:13:33.108] Got some output, clearing connection timeout
[19:13:33.161] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:33.179] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:33.285] > 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)
> *
[19:13:33.303] >  
> Checking server status on port 35608 with wget
[19:13:33.310] > 
> e67687ab471a##28##
[19:13:33.573] "install" terminal command done
[19:13:33.574] Install terminal quit with output: e67687ab471a##28##
[19:13:33.574] Received install output: e67687ab471a##28##
[19:13:33.574] Server status check failed - waiting and retrying
[19:13:34.847] > e67687ab471a: running
[19:13:34.847] Got some output, clearing connection timeout
[19:13:34.908] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:34.925] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:35.036] > 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)
> *
>  
[19:13:35.056] > Checking server status on port 35608 with wget
[19:13:35.062] > 
> e67687ab471a##28##
[19:13:35.324] "install" terminal command done
[19:13:35.325] Install terminal quit with output: e67687ab471a##28##
[19:13:35.325] Received install output: e67687ab471a##28##
[19:13:35.325] Server status check failed - waiting and retrying
[19:13:36.611] > e67687ab471a: running
[19:13:36.611] Got some output, clearing connection timeout
[19:13:36.662] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:36.683] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:36.789] > 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)
> *
>  
[19:13:36.811] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:37.076] "install" terminal command done
[19:13:37.076] Install terminal quit with output: e67687ab471a##28##
[19:13:37.076] Received install output: e67687ab471a##28##
[19:13:37.076] Server status check failed - waiting and retrying
[19:13:38.357] > e67687ab471a: running
[19:13:38.357] Got some output, clearing connection timeout
[19:13:38.405] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:38.426] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:38.537] > 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)
> *
>  
[19:13:38.546] > Checking server status on port 35608 with wget
[19:13:38.555] > 
> e67687ab471a##28##
[19:13:38.810] "install" terminal command done
[19:13:38.810] Install terminal quit with output: e67687ab471a##28##
[19:13:38.810] Received install output: e67687ab471a##28##
[19:13:38.810] Server status check failed - waiting and retrying
[19:13:40.084] > e67687ab471a: running
[19:13:40.084] Got some output, clearing connection timeout
[19:13:40.142] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:40.162] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:40.270] > 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)
> *
>  
[19:13:40.288] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:40.558] "install" terminal command done
[19:13:40.558] Install terminal quit with output: e67687ab471a##28##
[19:13:40.558] Received install output: e67687ab471a##28##
[19:13:40.558] Server status check failed - waiting and retrying
[19:13:41.836] > e67687ab471a: running
[19:13:41.836] Got some output, clearing connection timeout
[19:13:41.885] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:41.907] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:42.025] > 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)
> *
>  
[19:13:42.043] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:42.299] "install" terminal command done
[19:13:42.299] Install terminal quit with output: e67687ab471a##28##
[19:13:42.299] Received install output: e67687ab471a##28##
[19:13:42.299] Server status check failed - waiting and retrying
[19:13:43.584] > e67687ab471a: running
[19:13:43.584] Got some output, clearing connection timeout
[19:13:43.639] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:43.659] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:43.771] > 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)
> *
>  
[19:13:43.779] > Checking server status on port 35608 with wget
[19:13:43.786] > 
> e67687ab471a##28##
[19:13:44.045] "install" terminal command done
[19:13:44.046] Install terminal quit with output: e67687ab471a##28##
[19:13:44.046] Received install output: e67687ab471a##28##
[19:13:44.046] Server status check failed - waiting and retrying
[19:13:45.323] > e67687ab471a: running
[19:13:45.323] Got some output, clearing connection timeout
[19:13:45.379] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:45.396] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:45.505] > 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)
> *
[19:13:45.526] >  
> Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:45.790] "install" terminal command done
[19:13:45.790] Install terminal quit with output: e67687ab471a##28##
[19:13:45.790] Received install output: e67687ab471a##28##
[19:13:45.790] Server status check failed - waiting and retrying
[19:13:47.052] > e67687ab471a: running
[19:13:47.052] Got some output, clearing connection timeout
[19:13:47.107] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:47.129] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:47.236] > 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)
> *
>  
[19:13:47.252] > Checking server status on port 35608 with wget
[19:13:47.257] > 
> e67687ab471a##28##
[19:13:47.522] "install" terminal command done
[19:13:47.522] Install terminal quit with output: e67687ab471a##28##
[19:13:47.522] Received install output: e67687ab471a##28##
[19:13:47.522] Server status check failed - waiting and retrying
[19:13:48.801] > e67687ab471a: running
[19:13:48.801] Got some output, clearing connection timeout
[19:13:48.854] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:48.876] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:48.986] > 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)
> *
>  
[19:13:49.001] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:49.265] "install" terminal command done
[19:13:49.265] Install terminal quit with output: e67687ab471a##28##
[19:13:49.265] Received install output: e67687ab471a##28##
[19:13:49.265] Server status check failed - waiting and retrying
[19:13:50.542] > e67687ab471a: running
[19:13:50.542] Got some output, clearing connection timeout
[19:13:50.607] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:50.612] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:50.722] > 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)
> *
>  
[19:13:50.743] > Checking server status on port 35608 with wget
> 
> e67687ab471a##28##
[19:13:51.007] "install" terminal command done
[19:13:51.007] Install terminal quit with output: e67687ab471a##28##
[19:13:51.007] Received install output: e67687ab471a##28##
[19:13:51.007] Server status check failed - waiting and retrying
[19:13:52.288] > e67687ab471a: running
[19:13:52.288] Got some output, clearing connection timeout
[19:13:52.341] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:52.358] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:52.469] > 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)
> *
>  
[19:13:52.479] > Checking server status on port 35608 with wget
[19:13:52.486] > 
> e67687ab471a##28##
[19:13:52.748] "install" terminal command done
[19:13:52.748] Install terminal quit with output: e67687ab471a##28##
[19:13:52.748] Received install output: e67687ab471a##28##
[19:13:52.748] Server status check failed - waiting and retrying
[19:13:54.033] > e67687ab471a: running
[19:13:54.034] Got some output, clearing connection timeout
[19:13:54.092] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
> Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:54.210] > 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)
> *
[19:13:54.226] >  
> Checking server status on port 35608 with wget
[19:13:54.236] > 
> e67687ab471a##28##
[19:13:54.494] "install" terminal command done
[19:13:54.494] Install terminal quit with output: e67687ab471a##28##
[19:13:54.494] Received install output: e67687ab471a##28##
[19:13:54.494] Server status check failed - waiting and retrying
[19:13:55.772] > e67687ab471a: running
[19:13:55.772] Got some output, clearing connection timeout
[19:13:55.823] > Acquiring lock on /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/vscode-remote-lock.26076a4de974ead31f97692a0d32f90d735645c0
[19:13:55.850] > Found existing installation at /home/ah1114/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0...
[19:13:55.953] > 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)
> *
>  
[19:13:55.967] > Checking server status on port 35608 with wget
[19:13:55.974] > 
> e67687ab471a##28##
[19:13:56.240] "install" terminal command done
[19:13:56.240] Install terminal quit with output: e67687ab471a##28##
[19:13:56.240] Received install output: e67687ab471a##28##
[19:13:56.240] Server status check failed - waiting and retrying
[19:13:57.246] Resolver error: 
[19:13:57.250] ------




[19:13:57.618] Unhandled rejection: Error (FileSystemError): 
    at _handleError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:564:139)

So that error Server status check failed implies that there is "something" wrong with the VS Code server on the remote such that it has stopped responding to our pings, but it would be difficult to figure out why.

This loops forever because the real reason for this check is to handle the case where the server is in the process of shutting down when we try to connect to it. I could add a retry limit and give a message that suggests running the "Kill VS Code Server on Host" command which would get you out of this situation.

I tried manually killing some straggling .vscode-server/bin processes on my remote machine, and it's working now.

Our command tries to kill those processes and was probably failing to do it. If this happens again, could you share the log from the session where you run "Kill VS Code Server on Host" (or the "uninstall" variant)

I have same problem. And I resolved it in the following steps.

  1. Access remote server.
  2. Remove or rename /home/{username}/.vscode-server/bin.
  3. Try SSH-Remote.

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

Was this page helpful?
0 / 5 - 0 ratings