-
Notifications
You must be signed in to change notification settings - Fork 392
Description
Is there an existing issue for this bug?
- I have searched the existing open issues and found none that apply.
- If I find any issue of interest that is related or closed, I will included a link to it in this issue.
Required Troubleshooting Steps
- I have read and performed the troubleshooting steps
- I have tried both values of the
remote.SSH.useLocalServersetting - My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
- I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar
[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I did not try step 2 of the troubleshooting steps
Remote-SSH Log
Remote-SSH Log
[15:14:50.536] >
[15:14:53.419] > a49f543d77db: running
[15:14:53.450] >
[15:14:53.500] > Acquiring lock on /home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb
> b435a2c1260/vscode-remote-lock.aokken.f220831ea2d946c0dcb0f3eaa480eb435a2c1260
> Found existing installation at /home/aokken/.vscode-server/bin/f220831ea2d946c0d
> dcb0f3eaa480eb435a2c1260...
> Checking /home/aokken/.vscode-server/.f220831ea2d946c0dcb0f3eaa480eb435a2c1260.l
> log and /home/aokken/.vscode-server/.f220831ea2d946c0dcb0f3eaa480eb435a2c1260.pid
> d for a running server
> Looking for server with pid: 1198439
[15:14:53.520] >
[15:14:53.584] > Found running server...
>
> *
> * Visual Studio Code Server
> *
> * By using the software, you agree to
> * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-lice
> ense) and
> * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacyst
> tatement).
> *
[15:14:53.603] >
[15:14:53.702] > Checking server status on port 40627 with wget
[15:14:53.718] >
[15:14:53.851] > a49f543d77db: start
> SSH_AUTH_SOCK====
[15:14:53.933] > DISPLAY====
> webUiAccessToken====
> listeningOn==40627==
> osReleaseId==rhel==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/486000029==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> connectionToken==111a11aa-1111-1aaa-a111-a1a1aa1a1aa1==
> a49f543d77db: end
[15:14:53.933] Received install output:
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==40627==
osReleaseId==rhel==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/486000029==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
connectionToken==111a11aa-1111-1aaa-a111-a1a1aa1a1aa1==
[15:14:53.933] Remote server is listening on port 40627
[15:14:53.934] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":40627},"osReleaseId":"rhel","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/486000029","platform":"linux","connectionToken":"111a11aa-1111-1aaa-a111-a1a1aa1a1aa1"},"installUnpackCode":""}
[15:14:53.937] Starting forwarding server. local port 64989 -> socksPort 64987 -> remotePort 40627
[15:14:53.937] Forwarding server listening on port 64989
[15:14:53.938] Waiting for ssh tunnel to be ready
[15:14:53.939] [Forwarding server port 64989] Got connection 0
[15:14:53.940] Tunneled port 40627 to local port 64989
[15:14:53.940] Resolved "ssh-remote+se-169-138" to "port 64989"
[15:14:53.941] >
[15:14:53.943] ------
[15:14:53.944] No hints found in the recent session.
[15:14:53.958] [Forwarding server port 64989] Got connection 1
[15:14:54.129] [Forwarding server port 64989] Got connection 2
[15:15:13.542] > client_loop: send disconnect: Connection reset
> client_loop: send disconnect: Unknown error
[15:15:13.555] >
[15:15:14.870] "install" terminal command done
[15:15:14.871] Install terminal quit with output: client_loop: send disconnect: Unknown error
Expected Behavior
For the vscode-server to successfully initialize the extension host without workarounds.
Actual Behavior
If the vscode server is has already been downloaded, then the extension host fails to start. It gets stuck in a crash loop that attempts to reconnect until it exhaust the limit. The behavior is also seen whenever I try to reconnect.
If I remove ~/.vscode-server/bin prior to starting the Remote-SSH connection to force it to redownload, then it seems to initialize successfully.
Steps To Reproduce
- Start a Remote SSH connection and allow the remote server to download and initialize
- Run "Developer: Reload Window"
- Observe the extension host attempt to reconnect until it gives up
Observer in the Git tab, it will be stuck with the status "Scanning folder for Git repositories..."
Anything else?
This started after upgrading from 99.x to 104.0
Web console view: ``` 3console.ts:137 [Extension Host] VsCodeExtension: typing in progress, preserving chain log.ts:440 INFO [remote-connection][Management ][c67ff…][reconnect] received socket timeout event (unacknowledgedMsgCount: 33, timeSinceOldestUnacknowledgedMsg: 38818, timeSinceLastReceivedSomeData: 20009). log.ts:440 INFO [remote-connection][Management ][c67ff…][reconnect] starting reconnecting loop. You can get more information with the trace log level. log.ts:440 INFO [remote-connection][Management ][c67ff…][reconnect] resolving connection... log.ts:440 INFO Invoking resolveAuthority(ssh-remote)... log.ts:440 INFO [LocalProcess0][resolveAuthority(ssh-remote,2)][0ms] obtaining proxy... log.ts:440 INFO [LocalProcess0][resolveAuthority(ssh-remote,2)][1ms] invoking... console.ts:137 [Extension Host] VsCodeExtension: typing in progress, preserving chain log.ts:440 INFO [remote-connection][ExtensionHost][9efad…][reconnect] received socket timeout event (unacknowledgedMsgCount: 1, timeSinceOldestUnacknowledgedMsg: 39710, timeSinceLastReceivedSomeData: 20005). log.ts:440 INFO [remote-connection][ExtensionHost][9efad…][reconnect] starting reconnecting loop. You can get more information with the trace log level. log.ts:440 INFO [remote-connection][ExtensionHost][9efad…][reconnect] resolving connection... log.ts:440 INFO [LocalProcess0][resolveAuthority(ssh-remote,2)][1008ms] waiting... 3console.ts:137 [Extension Host] VsCodeExtension: typing in progress, preserving chain log.ts:440 INFO [LocalProcess0][resolveAuthority(ssh-remote,2)][2008ms] waiting... log.ts:440 INFO [LocalProcess0][resolveAuthority(ssh-remote,2)][3008ms] waiting... log.ts:440 INFO [LocalProcess0][resolveAuthority(ssh-remote,2)][4010ms] waiting... 6console.ts:137 [Extension Host] VsCodeExtension: typing in progress, preserving chain log.ts:440 INFO [LocalProcess0][resolveAuthority(ssh-remote,2)][5009ms] waiting... 6console.ts:137 [Extension Host] VsCodeExtension: typing in progress, preserving chain log.ts:440 INFO [LocalProcess0][resolveAuthority(ssh-remote,2)][5292ms] returned WebSocket(127.0.0.1:53789) log.ts:440 INFO resolveAuthority(ssh-remote) returned 'WebSocket(127.0.0.1:53789)' after 5293 ms log.ts:440 INFO [remote-connection][Management ][c67ff…][reconnect] connecting to WebSocket(127.0.0.1:53789)... log.ts:440 INFO Creating a socket (renderer-Management-c67ffdfa-31b7-469d-832f-c70bb3f14a0e)... log.ts:440 INFO [remote-connection][ExtensionHost][9efad…][reconnect] connecting to WebSocket(127.0.0.1:53789)... log.ts:440 INFO Creating a socket (renderer-ExtensionHost-9efad581-b4bf-4b43-aafc-9985ba40c071)... log.ts:440 INFO Creating a socket (renderer-Management-c67ffdfa-31b7-469d-832f-c70bb3f14a0e) was successful after 195 ms. 2console.ts:137 [Extension Host] VsCodeExtension: typing in progress, preserving chain log.ts:440 INFO Creating a socket (renderer-ExtensionHost-9efad581-b4bf-4b43-aafc-9985ba40c071) was successful after 327 ms. log.ts:440 INFO [remote-connection][Management ][c67ff…][reconnect] reconnected! log.ts:460 ERR Could not find pty 7 on pty host: CodeExpectedError: Could not find pty 7 on pty host at I.W (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:46:6451) at I.updateIcon (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:46:1889) at R.s. (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:45:2938) at Object.call (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:28:4204) at yl.s (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:83631) at yl.q (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:83154) at ms.value (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:82556) at E.C (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:2373) at E.fire (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:2591) at process.C (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:24:30229) at process.emit (node:events:518:28) at emit (node:internal/child_process:949:14) at process.processTicksAndRejections (node:internal/process/task_queues:91:21) error @ log.ts:460 error @ log.ts:565 error @ logService.ts:51 oc @ workbench.ts:121 (anonymous) @ workbench.ts:102 onUnexpectedError @ errors.ts:65 bt @ errors.ts:110 (anonymous) @ workbench.ts:95 log.ts:460 ERR Could not find pty 7 on pty host: CodeExpectedError: Could not find pty 7 on pty host at I.W (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:46:6451) at I.updateTitle (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:46:1839) at R.s. (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:45:2938) at Object.call (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:28:4204) at yl.s (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:83631) at yl.q (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:83154) at ms.value (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:82556) at E.C (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:2373) at E.fire (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:26:2591) at process.C (file:///home/aokken/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260/out/vs/platform/terminal/node/ptyHostMain.js:24:30229) at process.emit (node:events:518:28) at emit (node:internal/child_process:949:14) at process.processTicksAndRejections (node:internal/process/task_queues:91:21) error @ log.ts:460 error @ log.ts:565 error @ logService.ts:51 oc @ workbench.ts:121 (anonymous) @ workbench.ts:102 onUnexpectedError @ errors.ts:65 bt @ errors.ts:110 (anonymous) @ workbench.ts:95 log.ts:440 INFO [remote-connection][ExtensionHost][9efad…][reconnect] reconnected! log.ts:460 ERR Error received from starting extension host (kind: Remote) error @ log.ts:460 error @ log.ts:565 error @ logService.ts:51 (anonymous) @ extensionHostManager.ts:132 log.ts:460 ERR The remote extension host took longer than 60s to send its ready message. error @ log.ts:460 error @ log.ts:565 error @ logService.ts:51 (anonymous) @ extensionHostManager.ts:133 console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: command 'remote-internal.setActiveFolders' not found yvs @ console.ts:137 $logExtensionHostMessage @ mainThreadConsole.ts:39 S @ rpcProtocol.ts:458 Q @ rpcProtocol.ts:443 M @ rpcProtocol.ts:373 L @ rpcProtocol.ts:299 (anonymous) @ rpcProtocol.ts:161 C @ event.ts:1201 fire @ event.ts:1232 fire @ ipc.net.ts:652 l.onmessage @ localProcessExtensionHost.ts:383 console.ts:137 [Extension Host] stack trace: Error: command 'remote-internal.setActiveFolders' not found at gJe.n (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1251:3892) at gJe.executeCommand (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1251:3824) yvs @ console.ts:137 $logExtensionHostMessage @ mainThreadConsole.ts:39 S @ rpcProtocol.ts:458 Q @ rpcProtocol.ts:443 M @ rpcProtocol.ts:373 L @ rpcProtocol.ts:299 (anonymous) @ rpcProtocol.ts:161 C @ event.ts:1201 fire @ event.ts:1232 fire @ ipc.net.ts:652 l.onmessage @ localProcessExtensionHost.ts:383 log.ts:460 ERR command 'remote-internal.setActiveFolders' not found error @ log.ts:460 error @ log.ts:565 error @ logService.ts:51 oc @ workbench.ts:121 (anonymous) @ workbench.ts:102 onUnexpectedError @ errors.ts:65 bt @ errors.ts:110 $onUnexpectedError @ mainThreadErrors.ts:21 S @ rpcProtocol.ts:458 Q @ rpcProtocol.ts:443 M @ rpcProtocol.ts:373 L @ rpcProtocol.ts:299 (anonymous) @ rpcProtocol.ts:161 C @ event.ts:1201 fire @ event.ts:1232 fire @ ipc.net.ts:652 l.onmessage @ localProcessExtensionHost.ts:383 log.ts:460 ERR An unknown error occurred. Please consult the log for more details. error @ log.ts:460 error @ log.ts:565 error @ logService.ts:51 oc @ workbench.ts:121 (anonymous) @ workbench.ts:102 onUnexpectedError @ errors.ts:65 bt @ errors.ts:110 $onUnexpectedError @ mainThreadErrors.ts:21 S @ rpcProtocol.ts:458 Q @ rpcProtocol.ts:443 M @ rpcProtocol.ts:373 L @ rpcProtocol.ts:299 (anonymous) @ rpcProtocol.ts:161 C @ event.ts:1201 fire @ event.ts:1232 fire @ ipc.net.ts:652 l.onmessage @ localProcessExtensionHost.ts:383 3console.ts:137 [Extension Host] VsCodeExtension: typing in progress, preserving chain ```