vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Remote-ssh keeps reconnecting forever

Open JeremyCCHsu opened this issue 5 years ago • 5 comments

I cannot remote-ssh to one of the servers I'm using because VS Code (Remote-SSH) keeps reconnecting to the server. It's really odd because everything has been working fine until today. VS Code did not report any errors, so the symptom is probably best described by the following picture: Screenshot 2021-08-11 102715

The message shown in the terminal seemes fine and is indeed what I get everyday. Problem is VS Code keeps reconnecting to the server and I cannot open any of the files (the list of files doesn't even show up). As can be seen on the right of in the pitcture, there is a long list of "install" session which VS Code creates every time it ssh to a server. htop shows the vscode processes on the said server though I can't tell whether it means anything:

3874794 user     20   0  747M 50572 33068 S  0.0  0.0  0:00.49 /home/user/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/node /home/user/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/bootstrap-fork --type=extensionHost ...
3873655 user     20   0  907M 65508 32908 S  0.0  0.0  0:01.86 /home/user/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/node /home/user/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/main.js --start-server --host=127.0.0.1 ...
...

This issue seems to be server-wise, not project-wise. VS Code works fine when I ssh to other servers. Does anybody encounter the same issue? Any hint will be appreciated.

Environment:

  • Remote - SSH: Editing Configuration Files (v0.65.7)
OS
Edition Windows 11 Home
Version 21H2
Installed on 7/‎1/‎2021
OS build 22000.120
Experience Windows Feature Experience Pack 1000.22000.120.0
VS Code
Version 1.59.0 (user setup)
Commit 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date 2021-08-04T23:13:12.822Z
Electron 13.1.7
Chrome 91.0.4472.124
Node.js 14.16.0
V8 9.1.269.36-electron.0
OS Windows_NT x64 10.0.22000
Remote Server OS
Distributor ID Ubuntu
Description Ubuntu 20.04.2 LTS
Release 20.04
Codename focal
Log
94a458412b67: running
Acquiring lock on /home/jeremy/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/vscode-remote-lock.jeremy.379476f0e13988d90fab105c5c19e7abc8b1dea8
Found existing installation at /home/jeremy/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8...
Checking /home/jeremy/.vscode-server/.379476f0e13988d90fab105c5c19e7abc8b1dea8.log and /home/jeremy/.vscode-server/.379476f0e13988d90fab105c5c19e7abc8b1dea8.pid for a running server
Looking for server with pid: 3873648
Starting server with command... /home/jeremy/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/server.sh --start-server --host=127.0.0.1 --enable-remote-auto-shutdown  --port=0  &> "/home/jeremy/.vscode-server/.379476f0e13988d90fab105c5c19e7abc8b1dea8.log" < /dev/null
printenv:
    SHELL=/bin/bash
    PWD=/home/jeremy
    LOGNAME=jeremy
    XDG_SESSION_TYPE=tty
    MOTD_SHOWN=pam
    HOME=/home/jeremy
    LANG=en_US.UTF-8
    STAGING_RESEMBLE_TOKEN=TR89xqWdbt9w2fhr
    VSCODE_AGENT_FOLDER=/home/jeremy/.vscode-server
    SSH_CONNECTION=123.192.232.158 34591 104.171.201.130 22
    PRODUCTION_MS_RESEMBLE_TOKEN=5fR0Zxqvetn1ToFzTEa4
    XDG_SESSION_CLASS=user
    USER=jeremy
    SHLVL=0
    XDG_SESSION_ID=1259097
    XDG_RUNTIME_DIR=/run/user/1002
    SSH_CLIENT=123.192.232.158 34591 22
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    PRODUCTION_RESEMBLE_TOKEN=TR89xqWdbt9w2fhr
    _=/usr/bin/printenv
Spawned remote server: 535982
Waiting for server log...
Waiting for server log...

*
* Reminder: You may only use this software with Visual Studio family products,
* as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
*

94a458412b67: start
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==40783==
osReleaseId==ubuntu==
arch==x86_64==
tmpDir==/run/user/1002==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime==73==
connectionToken==5a4217c4-8f14-4af7-8a88-a947c0919625==
94a458412b67: end

JeremyCCHsu avatar Aug 11 '21 03:08 JeremyCCHsu

I have the same problem

NTNguyen13 avatar Aug 12 '21 06:08 NTNguyen13

me too

caiqizh avatar Aug 22 '21 13:08 caiqizh

how to solve this problem?

Frank1219 avatar Aug 27 '21 03:08 Frank1219

Same problem here.. Any fix??!

moedris avatar Oct 15 '21 21:10 moedris

Please share the log from the Remote-SSH output channel

roblourens avatar Oct 19 '21 00:10 roblourens