Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Remote-SSH Bug]: Error: AttachConsole failed, could not find pty on pty host #201029

Open
2 of 3 tasks
winstliu opened this issue Aug 18, 2023 · 9 comments
Open
2 of 3 tasks
Assignees
Labels
ssh under-discussion Issue is under discussion for relevance, priority, approach windows VS Code on Windows issues

Comments

@winstliu
Copy link
Member

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It connects successfully

->

No response

Expected Behavior

No error spew in the "Remote - SSH" log.

Steps To Reproduce

On connecting to a remote Windows host, I am now seeing console spew indicating that getConsoleProcessList(shellPid) fails with "Error: AttachConsole failed" and some "Could not find pty on pty host" errors.

Remote-SSH Log

Remote-SSH Log

[16:05:38.340] Log Level: 2
[16:05:38.384] VS Code version: 1.82.0-insider
[16:05:38.384] Remote-SSH version: [email protected]
[16:05:38.385] win32 x64
[16:05:38.388] SSH Resolver called for "ssh-remote+wave_analysis", attempt 1
[16:05:38.389] "remote.SSH.useLocalServer": false
[16:05:38.389] "remote.SSH.showLoginTerminal": false
[16:05:38.390] "remote.SSH.remotePlatform": {"wave_analysis":"windows","one_click":"windows","publics":"windows","prime":"windows","azure_devops":"windows","wave_analysis_linux_test":"linux"}
[16:05:38.390] "remote.SSH.path": undefined
[16:05:38.390] "remote.SSH.configFile": undefined
[16:05:38.390] "remote.SSH.useFlock": true
[16:05:38.390] "remote.SSH.lockfilesInTmp": false
[16:05:38.391] "remote.SSH.localServerDownload": auto
[16:05:38.391] "remote.SSH.remoteServerListenOnSocket": false
[16:05:38.391] "remote.SSH.showLoginTerminal": false
[16:05:38.392] "remote.SSH.defaultExtensions": []
[16:05:38.392] "remote.SSH.loglevel": 2
[16:05:38.392] "remote.SSH.enableDynamicForwarding": true
[16:05:38.392] "remote.SSH.enableRemoteCommand": false
[16:05:38.393] "remote.SSH.serverPickPortsFromRange": {}
[16:05:38.393] "remote.SSH.serverInstallPath": {}
[16:05:38.407] SSH Resolver called for host: wave_analysis
[16:05:38.407] Setting up SSH remote "wave_analysis"
[16:05:38.419] Using commit id "501baeb5e07b5a404f862d922bacb93771d91331" and quality "insider" for server
[16:05:38.427] Install and start server if needed
[16:05:38.453] Checking ssh with "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\ssh.exe -V"
[16:05:38.465] Got error from ssh: spawn C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\ssh.exe ENOENT
[16:05:38.466] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[16:05:38.471] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[16:05:38.472] Checking ssh with "C:\Windows\ssh.exe -V"
[16:05:38.477] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[16:05:38.478] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[16:05:38.481] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[16:05:38.482] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[16:05:38.486] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[16:05:38.487] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[16:05:38.766] > OpenSSH_for_Windows_8.6p1, 
[16:05:38.767] > LibreSSL 3.4.3

[16:05:38.777] Remote command length: 4809/8192 characters
[16:05:38.777] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 56762 "wave_analysis" powershell
[16:05:38.784] Terminal shell path: C:\Windows\System32\cmd.exe
[16:05:45.669] > Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows�]0;C:\Windows\System32\cmd.exe�
[16:05:45.670] Got some output, clearing connection timeout
[16:05:45.712] > PS C:\Users\winstonliu> 
> PS C:\Users\winstonliu> $uuid="b3a211a33b5b"
> PS C:\Users\winstonliu> "${uuid}: running"
> b3a211a33b5b: running
> PS C:\Users\winstonliu> "b3a211a33b5b: pauseLog"
> b3a211a33b5b: pauseLog
[16:05:46.654] > 
[16:05:47.160] > Looking for existing CLI in C:\Users\winstonliu\.vscode-server-insiders
[16:05:47.202] > 
> Found installed CLI
> Starting cli: & 'C:\Users\winstonliu\.vscode-server-insiders\code-insiders-501ba
> aeb5e07b5a404f862d922bacb93771d91331.exe' command-shell --cli-data-dir 'C:\Users\
> \winstonliu\.vscode-server-insiders\cli' --on-port --require-token 3f59eb4538a6 *
> *> 'C:\Users\winstonliu\AppData\Local\Temp\tmp3949.tmp'
[16:05:47.238] > 
[16:05:47.683] > b3a211a33b5b: start
> SSH_AUTH_SOCK====
> listeningOn==60783==
> osReleaseId==windows==
> osVersion==10.0.22000==
> arch==x64==
> platform==windows==
> unpackResult====
> didLocalDownload==False==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime==63==
> b3a211a33b5b: end
[16:05:47.685] Received install output: 
SSH_AUTH_SOCK====
listeningOn==60783==
osReleaseId==windows==
osVersion==10.0.22000==
arch==x64==
platform==windows==
unpackResult====
didLocalDownload==False==
downloadTime====
installTime====
extInstallTime====
serverStartTime==63==

[16:05:47.687] Remote server is listening on port 60783
[16:05:47.687] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":60783},"osReleaseId":"windows","arch":"x64","sshAuthSock":"","platform":"windows"},"serverStartTime":63,"installUnpackCode":""}
[16:05:47.704] Starting forwarding server. local port 56774 -> socksPort 56762 -> remotePort 60783
[16:05:47.706] Forwarding server listening on port 56774
[16:05:47.707] Waiting for ssh tunnel to be ready
[16:05:47.711] [Forwarding server port 56774] Got connection 0
[16:05:47.715] Tunneled port 60783 to local port 56774
[16:05:47.716] Resolved "ssh-remote+wave_analysis" to "port 56774"
[16:05:47.732] Resolving exec server at port 56774
[16:05:47.821] > 
> 9180, watching 5500
[16:05:47.841] [Forwarding server port 56774] Got connection 1
[16:05:48.222] Exec server connection established
[16:05:48.254] ------




[16:05:48.367] [server] Checking C:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\log.txt and C:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\pid.txt for a running server...
[16:05:48.441] [server] Installing and setting up Visual Studio Code Server...
[16:05:48.442] [server] Server setup complete
[16:05:48.443] [server] Starting server...
[16:05:48.443] [server] Starting server with command... Command { std: "cmd" "/Q" "/C" "C:\\Users\\winstonliu\\.vscode-server-insiders\\cli\\servers\\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\\server\\bin\\code-server-insiders.cmd" "--connection-token=remotessh" "--accept-server-license-terms" "--start-server" "--enable-remote-auto-shutdown" "--socket-path=\\\\.\\pipe\\code-insiders-dbef124c-c97f-4916-bb58-6b8505dc4223", kill_on_drop: false }
[16:05:49.250] [server] *
[16:05:49.252] [server] * Visual Studio Code Server
[16:05:49.252] [server] *
[16:05:49.252] [server] * By using the software, you agree to
[16:05:49.253] [server] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
[16:05:49.253] [server] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
[16:05:49.254] [server] *
[16:05:49.254] [server] Server bound to \\.\pipe\code-insiders-dbef124c-c97f-4916-bb58-6b8505dc4223
[16:05:49.254] [server] Extension host agent listening on \\.\pipe\code-insiders-dbef124c-c97f-4916-bb58-6b8505dc4223
[16:05:49.255] [server] parsed location: "\\\\.\\pipe\\code-insiders-dbef124c-c97f-4916-bb58-6b8505dc4223"
[16:05:49.255] [server] 
[16:05:49.271] [server] Server started
[16:05:49.854] [server] [19:05:49] 
[16:05:49.918] [server] 
[16:05:49.919] [server] 
[16:05:49.919] [server] 
[16:05:49.985] [server] [19:05:49] Extension host agent started.
[16:05:50.522] [server] [19:05:50] [<unknown>][74557edb][ManagementConnection] New connection established.
[16:05:50.525] [server] [19:05:50] [<unknown>][a38f18a8][ExtensionHostConnection] New connection established.
[16:05:50.551] [server] [19:05:50] [<unknown>][a38f18a8][ExtensionHostConnection] <7560> Launched Extension Host Process.
[16:05:52.866] [server] [19:05:52] WSL is not installed, so could not detect WSL profiles
[16:05:58.500] [server] c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[16:05:58.503] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[16:05:58.504] [server]                          ^
[16:05:58.506] [server] 
[16:05:58.506] [server] Error: AttachConsole failed
[16:05:58.507] [server] Node.js v18.15.0
[16:05:58.508] [server] c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[16:05:58.508] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[16:05:58.509] [server]                          ^
[16:05:58.509] [server] 
[16:05:58.509] [server]     at Object.<anonymous> (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17:26)
[16:05:58.510] [server] 
[16:05:58.510] [server] Node.js v18.15.0
[16:05:58.511] [server] c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[16:05:58.511] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[16:05:58.512] [server]                          ^
[16:05:58.513] [server] 
[16:05:58.515] [server] Error: AttachConsole failed
[16:05:58.516] [server] 
[16:05:58.517] [server] c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[16:05:58.517] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[16:05:58.517] [server]                          ^
[16:05:58.518] [server] 
[16:05:58.519] [server] Error: AttachConsole failed
[16:05:58.520] [server]     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
[16:05:58.520] [server]     at Module.load (node:internal/modules/cjs/loader:1117:32)
[16:05:58.521] [server]     at Module._load (node:internal/modules/cjs/loader:958:12)
[16:05:58.522] [server]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
[16:05:58.523] [server]     at node:internal/main/run_main_module:23:47
[16:05:58.524] [server] 
[16:05:58.524] [server] Node.js v18.15.0
[16:05:59.872] [server] rejected promise not handled within 1 second: CodeExpectedError: Could not find pty on pty host
[16:05:59.876] [server] stack trace: CodeExpectedError: Could not find pty on pty host
[16:05:59.883] [server]     at m.P (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:28:7536)
[16:05:59.884] [server]     at m.updateTitle (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:28:2697)
[16:05:59.885] [server]     at W.<computed> (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:27:22755)
[16:05:59.887] [server]     at c.q (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:15:4661)
[16:05:59.888] [server] [19:05:59] Error [CodeExpectedError]: Could not find pty on pty host
[16:05:59.892] [server]     at m.P (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:28:7536)
[16:05:59.893] [server]     at m.updateTitle (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:28:2697)
[16:05:59.894] [server]     at W.<computed> (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:27:22755)
[16:05:59.896] [server] rejected promise not handled within 1 second: CodeExpectedError: Could not find pty on pty host
[16:05:59.899] [server] stack trace: CodeExpectedError: Could not find pty on pty host
[16:05:59.901] [server]     at m.P (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:28:7536)
[16:05:59.902] [server]     at m.updateIcon (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:28:2748)
[16:05:59.902] [server]     at W.<computed> (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:27:22755)
[16:05:59.903] [server]     at Object.call (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:17:4866)
[16:05:59.903] [server]     at c.s (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:15:5150)
[16:05:59.904] [server]     at c.q (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:15:4661)
[16:05:59.904] [server]     at n.value (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:15:4066)
[16:05:59.905] [server]     at w (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:10:1902)
[16:05:59.905] [server]     at w.fire (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:10:2119)
[16:05:59.908] [server]     at process.q (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:8:27274)
[16:05:59.909] [server]     at process.emit (node:events:513:28)
[16:05:59.910] [server]     at emit (node:internal/child_process:937:14)
[16:05:59.911] [server]     at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
[16:05:59.912] [server] [19:05:59] Error [CodeExpectedError]: Could not find pty on pty host
[16:05:59.913] [server]     at m.P (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:28:7536)
[16:05:59.925] [server]     at m.updateIcon (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:28:2748)
[16:05:59.926] [server]     at W.<computed> (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:27:22755)
[16:05:59.926] [server]     at Object.call (c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\server\out\vs\platform\terminal\node\ptyHostMain.js:17:4866)
[16:10:49.939] [server] New EH opened, aborting shutdown
[16:10:49.978] [server] [19:10:50] New EH opened, aborting shutdown

Anything else?

No response

@winstliu
Copy link
Member Author

Hmm, now the server refuses to connect with this error:

[16:51:09.453] [server] Checking C:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\log.txt and C:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\pid.txt for a running server...
[16:51:09.525] [server] Installing and setting up Visual Studio Code Server...
[16:51:09.531] [server] Server setup complete
[16:51:09.532] [server] Starting server...
[16:51:09.533] [server] Starting server with command... Command { std: "cmd" "/Q" "/C" "C:\\Users\\winstonliu\\.vscode-server-insiders\\cli\\servers\\Insiders-501baeb5e07b5a404f862d922bacb93771d91331\\server\\bin\\code-server-insiders.cmd" "--connection-token=remotessh" "--accept-server-license-terms" "--start-server" "--enable-remote-auto-shutdown" "--socket-path=\\\\.\\pipe\\code-insiders-c8dbc4f8-7cad-48f4-99a4-341e3f26a194", kill_on_drop: false }
[16:51:09.574] [server] *
[16:51:09.580] [server] * Visual Studio Code Server
[16:51:09.580] [server] *
[16:51:09.581] [server] * By using the software, you agree to
[16:51:09.581] [server] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
[16:51:09.582] [server] Server bound to \\.\pipe\code-insiders-c8dbc4f8-7cad-48f4-99a4-341e3f26a194
[16:51:09.583] [server] Extension host agent listening on \\.\pipe\code-insiders-c8dbc4f8-7cad-48f4-99a4-341e3f26a194
[16:51:09.583] [server] parsed location: "\\\\.\\pipe\\code-insiders-c8dbc4f8-7cad-48f4-99a4-341e3f26a194"
[16:51:09.583] [server] 
[16:51:09.583] [server] Server started
[16:51:09.731] [server] [19:51:09] 
[16:51:09.831] [server] 
[16:51:09.831] [server] 
[16:51:09.831] [server] 
[16:51:09.832] [server] [19:51:09] Extension host agent started.
[16:51:10.042] [server] [19:51:10] [<unknown>][7d18a414][ManagementConnection] Unknown reconnection token (never seen).

@roblourens
Copy link
Member

Does this still happen with the latest?

@roblourens roblourens added the info-needed Issue requires more information from poster label Dec 12, 2023
@winstliu
Copy link
Member Author

Yes, I still see this (the original error about "AttachConsole failed"). Here's the relevant part of the log:

[14:24:11.606] [server] [17:24:06] Extension host agent started.
[14:24:11.992] [server] [17:24:07] [<unknown>][8d46b9ea][ExtensionHostConnection] New connection established.
[14:24:12.312] [server] [17:24:07] [<unknown>][8d46b9ea][ExtensionHostConnection] <1796> Launched Extension Host Process.
[14:24:12.374] [server] [17:24:07] [<unknown>][15472374][ManagementConnection] New connection established.
[14:24:15.777] [server] [17:24:11] WSL is not installed, so could not detect WSL profiles
[14:24:17.350] [server] c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-37fe2d06d65db4b50303c5f5e8ca589a50f2287a\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[14:24:17.351] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[14:24:17.351] [server]                          ^
[14:24:17.351] [server] 
[14:24:17.352] [server] Error: AttachConsole failed
[14:24:17.352] [server]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
[14:24:17.352] [server]     at node:internal/main/run_main_module:23:47
[14:24:17.352] [server] 
[14:24:17.353] [server] Node.js v18.17.1
[14:24:17.762] [server] c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-37fe2d06d65db4b50303c5f5e8ca589a50f2287a\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[14:24:17.763] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[14:24:17.763] [server]                          ^
[14:24:17.764] [server] 
[14:24:17.764] [server]     at Module._compile (node:internal/modules/cjs/loader:1256:14)
[14:24:17.765] [server] 
[14:24:17.766] [server] Node.js v18.17.1
[14:24:21.417] [server] c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-37fe2d06d65db4b50303c5f5e8ca589a50f2287a\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[14:24:21.418] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[14:24:21.418] [server]                          ^
[14:24:21.418] [server] 
[14:24:21.418] [server]     at Module._compile (node:internal/modules/cjs/loader:1256:14)
[14:24:21.418] [server] 
[14:24:21.418] [server] Node.js v18.17.1
[14:24:21.420] [server] c:\Users\winstonliu\.vscode-server-insiders\cli\servers\Insiders-37fe2d06d65db4b50303c5f5e8ca589a50f2287a\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[14:24:21.420] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[14:24:21.421] [server]                          ^
[14:24:21.421] [server] 
[14:24:21.421] [server] Error: AttachConsole failed
[14:24:21.421] [server]     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[14:24:21.421] [server]     at Module.load (node:internal/modules/cjs/loader:1119:32)
[14:24:21.421] [server]     at Module._load (node:internal/modules/cjs/loader:960:12)
[14:24:21.421] [server]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
[14:24:21.421] [server]     at node:internal/main/run_main_module:23:47
[14:24:21.422] [server] 
[14:24:21.422] [server] Node.js v18.17.1
[14:24:21.498] Opening exec server for ssh-remote+wave_analysis

Version: 1.86.0-insider (user setup)
Commit: 37fe2d0
Date: 2023-12-15T05:36:59.071Z
Electron: 27.1.3
ElectronBuildId: 25612240
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22635

@roblourens roblourens assigned connor4312 and unassigned roblourens Dec 15, 2023
@connor4312
Copy link
Member

I don't think this is really related to remote SSH, it looks like a native issue, perhaps a side-effect of recent version updates.

@connor4312 connor4312 transferred this issue from microsoft/vscode-remote-release Dec 15, 2023
@connor4312 connor4312 assigned deepak1556 and Tyriar and unassigned connor4312 Dec 15, 2023
@deepak1556
Copy link
Collaborator

Based on the logs might be a regression from microsoft/node-pty#510, should bump node-pty and check whether microsoft/node-pty#626 addresses the issue.

@vscodenpa
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
@winstliu
Copy link
Member Author

Hello! I disagree with the triage bot here :).

@deepak1556 deepak1556 reopened this Jan 3, 2024
@deepak1556 deepak1556 added under-discussion Issue is under discussion for relevance, priority, approach windows VS Code on Windows issues and removed info-needed Issue requires more information from poster labels Jan 3, 2024
@Sectimus
Copy link

@50Wliu I've been following several reports of this issue and this is the only report that the triage bot has yet to close automatically. It's like if they close their eyes and we go away, the problem is fixed!

@Tyriar Tyriar removed their assignment Dec 19, 2024
@veritas501
Copy link

connect to remote windows server happens:

[11:12:07.906] [server] c:\Users\Administrator\.vscode-server\cli\servers\Stable-138f619c86f1199955d53b4166bef66ef252935c\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[11:12:07.906] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[11:12:07.906] [server]                          ^
[11:12:07.906] [server] 
[11:12:07.906] [server] Error: AttachConsole failed
[11:12:07.906] [server] 
[11:12:07.907] [server] Node.js v20.18.1
[11:12:14.176] [server] c:\Users\Administrator\.vscode-server\cli\servers\Stable-138f619c86f1199955d53b4166bef66ef252935c\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[11:12:14.176] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[11:12:14.176] [server]                          ^
[11:12:14.177] [server] 
[11:12:14.177] [server] Error: AttachConsole failed
[11:12:14.177] [server] 
[11:12:14.177] [server] Node.js v20.18.1
[11:12:14.650] [server] c:\Users\Administrator\.vscode-server\cli\servers\Stable-138f619c86f1199955d53b4166bef66ef252935c\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[11:12:14.650] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[11:12:14.650] [server]                          ^
[11:12:14.650] [server] 
[11:12:14.650] [server] Error: AttachConsole failed
[11:12:14.650] [server] 
[11:12:14.650] [server] Node.js v20.18.1
[11:12:15.122] [server] c:\Users\Administrator\.vscode-server\cli\servers\Stable-138f619c86f1199955d53b4166bef66ef252935c\server\node_modules\node-pty\lib\conpty_console_list_agent.js:17
[11:12:15.122] [server] var consoleProcessList = getConsoleProcessList(shellPid);
[11:12:15.122] [server]                          ^
[11:12:15.122] [server] 
[11:12:15.122] [server]     at Module.load (node:internal/modules/cjs/loader:1288:32)
[11:12:15.122] [server] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ssh under-discussion Issue is under discussion for relevance, priority, approach windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

8 participants