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

terminal launch failure #9347

Closed
ZaitianWang opened this issue Dec 26, 2023 · 9 comments
Closed

terminal launch failure #9347

ZaitianWang opened this issue Dec 26, 2023 · 9 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@ZaitianWang
Copy link

ZaitianWang commented Dec 26, 2023

Type: Bug

I connected to my remote server and used shift+control+` to launch my terminal.

there should be an active terminal showing my host and user names and I can type, but there is nothing but a cursor. I can neither see any text nor type—the same with other terminal launching methods (including running a file).

it works hours earlier (I did not do any settings), works for non-insider vscode, and works if I use powershell outside vscode.

Extension version: 0.108.2023122115
VS Code version: Code - Insiders 1.86.0-insider (9621add46007f7a1ab37d1fce9bcdcecca62aeb0, 2023-12-20T05:36:57.756Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 4.15.0-209-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.81GB (6.89GB free)
Process Argv --crash-reporter-id c7594bd9-fc08-4c50-836d-031830d01cc2
Screen Reader no
VM 0%
Item Value
Remote SSH: 10.0.87.17
OS Linux x64 4.15.0-209-generic
CPUs AMD EPYC 7742 64-Core Processor (255 x 1798)
Memory (System) 1007.72GB (151.91GB free)
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256197
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
py29gd2263:30784851
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
a9j8j154:30646983
showlangstatbar:30737417
fixshowwlkth:30771523
showindicator:30805243
pythongtdpath:30726887
i26e3531:30792625
welcomedialog:30812478
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
pythonmpswarning:30901777
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
aa_t_chat:30882232
cp7184c:30925681

@ZaitianWang
Copy link
Author

7826e9411a2e3e5f4309a03251fbceb
like this

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Dec 26, 2023
@ZaitianWang
Copy link
Author

ZaitianWang commented Dec 26, 2023

log [21:59:09.659] Log Level: 2 [21:59:09.668] SSH Resolver called for "ssh-remote+", attempt 1 [21:59:09.668] "remote.SSH.useLocalServer": false [21:59:09.669] "remote.SSH.useExecServer": true [21:59:09.669] "remote.SSH.showLoginTerminal": false [21:59:09.669] "remote.SSH.remotePlatform": {"":"linux","":"linux","":"linux"} [21:59:09.669] "remote.SSH.path": undefined [21:59:09.669] "remote.SSH.configFile": undefined [21:59:09.669] "remote.SSH.useFlock": true [21:59:09.670] "remote.SSH.lockfilesInTmp": false [21:59:09.670] "remote.SSH.localServerDownload": auto [21:59:09.670] "remote.SSH.remoteServerListenOnSocket": false [21:59:09.670] "remote.SSH.showLoginTerminal": false [21:59:09.670] "remote.SSH.defaultExtensions": [] [21:59:09.672] "remote.SSH.loglevel": 2 [21:59:09.672] "remote.SSH.enableDynamicForwarding": true [21:59:09.672] "remote.SSH.enableRemoteCommand": false [21:59:09.673] "remote.SSH.serverPickPortsFromRange": {} [21:59:09.673] "remote.SSH.serverInstallPath": {} [21:59:09.677] VS Code version: 1.86.0-insider [21:59:09.677] Remote-SSH version: [email protected] [21:59:09.677] win32 x64 [21:59:09.684] SSH Resolver called for host: [21:59:09.684] Setting up SSH remote "" [21:59:09.688] Using commit id "9621add46007f7a1ab37d1fce9bcdcecca62aeb0" and quality "insider" for server [21:59:09.690] Install and start server if needed [21:59:09.691] Checking ssh with "D:\Java\jdk-15.0.2\bin\ssh.exe -V" [21:59:09.693] Got error from ssh: spawn D:\Java\jdk-15.0.2\bin\ssh.exe ENOENT [21:59:09.693] Checking ssh with "C:\Python39\ssh.exe -V" [21:59:09.694] Got error from ssh: spawn C:\Python39\ssh.exe ENOENT [21:59:09.694] Checking ssh with "C:\Python39\Scripts\ssh.exe -V" [21:59:09.695] Got error from ssh: spawn C:\Python39\Scripts\ssh.exe ENOENT [21:59:09.695] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V" [21:59:09.696] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT [21:59:09.696] Checking ssh with "C:\WINDOWS\ssh.exe -V" [21:59:09.697] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT [21:59:09.698] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V" [21:59:09.699] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT [21:59:09.700] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V" [21:59:09.701] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [21:59:09.701] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [21:59:09.740] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

[21:59:09.744] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 53252 "" bash
[21:59:09.745] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[21:59:10.493] > �]0;C:\WINDOWS\System32\cmd.exe�
[21:59:10.495] Got some output, clearing connection timeout
[21:59:10.839] > 2efbaf6f7313: running
[21:59:10.867] > Found existing installation at ~/.vscode-server-insiders...

Starting VS Code CLI... "/.vscode-server-insiders/code-insiders
-9621add46007f7a1ab37d1fce9bcdcecca62aeb0" command-shell --cli-data-dir "
/.vscode-server-insiders/cli" --on-port --parent-process-id 22315 &> "
/.vscode-server-insiders/.cli.9621add46007f7a1ab37d1fce9bcdcecc
a62aeb0.log" < /dev/null
printenv:
SSH_CONNECTION= 53254 22
LANG=en_US.UTF-8
XDG_SESSION_ID=79946
USER=
PWD=

HOME=~
SSH_CLIENT= 53254 22
MAIL=/var/mail/
SHELL=/bin/bash
SHLVL=2
VSCODE_AGENT_FOLDER=~/.vscode-server-insiders
LOGNAME=
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1022/bus
XDG_RUNTIME_DIR=/run/user/1022
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
:/usr/local/games:/snap/bin
_=/usr/bin/printenv
Removing old logfile at ~/.vscode-server-insiders/.cli.9621add46
007f7a1ab37d1fce9bcdcecca62aeb0.log
Spawned remote CLI: 22335
Waiting for server log...
[21:59:10.897] > Waiting for server log...
[21:59:10.982] > 2efbaf6f7313: start
SSH_AUTH_SOCK====
DISPLAY====
listeningOn==127.0.0.1:32825==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1022==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==77==
execServerToken==a11a1a11-1a1a-1aa1-111a-111a11111111==
2efbaf6f7313: end
[21:59:10.983] Received install output:
SSH_AUTH_SOCK====
DISPLAY====
listeningOn==127.0.0.1:32825==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1022==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==77==
execServerToken==a11a1a11-1a1a-1aa1-111a-111a11111111==

[21:59:10.983] Remote server is listening on port 32825
[21:59:10.983] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":32825},"osReleaseId":"ubuntu","arch":"x86_64","sshAuthSock":"","display":"","tmpDir":"/run/user/1022","platform":"linux","execServerToken":"a11a1a11-1a1a-1aa1-111a-111a11111111"},"serverStartTime":77,"installUnpackCode":""}
[21:59:10.986] Starting forwarding server. local port 53256 -> socksPort 53252 -> remotePort 32825
[21:59:10.987] Forwarding server listening on port 53256
[21:59:10.987] Waiting for ssh tunnel to be ready
[21:59:10.988] [Forwarding server port 53256] Got connection 0
[21:59:10.988] Tunneled port 32825 to local port 53256
[21:59:10.988] Resolved "ssh-remote+" to "port 53256"
[21:59:10.989] Initizing new exec server for ssh-remote+
[21:59:10.989] Resolving exec server at port 53256
[21:59:11.023] [Forwarding server port 53256] Got connection 1
[21:59:11.076] Exec server for ssh-remote+ created and cached
[21:59:11.078] ------

[21:59:11.104] [server] Checking ~/.vscode-server-insiders/cli/servers/Insiders-9621add46007f7a1ab37d1fce9bcdcecca62aeb0/log.txt and ~/.vscode-server-insiders/cli/servers/Insiders-9621add46007f7a1ab37d1fce9bcdcecca62aeb0/pid.txt for a running server...
[21:59:11.145] [server] Found running server (pid=11133)

@TokuiNico
Copy link

I also encountered the same problem.

@ghost
Copy link

ghost commented Dec 28, 2023

Yep having that problem too, with dev contianers:

Container server: innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /vscode/vscode-server-insiders/bin/linux-x64/9621add46007f7a1ab37d1fce9bcdcecca62aeb0-insider/node_modules/node-pty/lib/unixTerminal.js
- /vscode/vscode-server-insiders/bin/linux-x64/9621add46007f7a1ab37d1fce9bcdcecca62aeb0-insider/node_modules/node-pty/lib/index.js
- /tmp/vscode-remote-containers-server-b0a48b83-99e4-4532-81a8-2eaa1300d71f.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/vscode/vscode-server-insiders/bin/linux-x64/9621add46007f7a1ab37d1fce9bcdcecca62aeb0-insider/node_modules/node-pty/lib/unixTerminal.js:34:15)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/vscode/vscode-server-insiders/bin/linux-x64/9621add46007f7a1ab37d1fce9bcdcecca62aeb0-insider/node_modules/node-pty/lib/unixTerminal.js',
    '/vscode/vscode-server-insiders/bin/linux-x64/9621add46007f7a1ab37d1fce9bcdcecca62aeb0-insider/node_modules/node-pty/lib/index.js',
    '/tmp/vscode-remote-containers-server-b0a48b83-99e4-4532-81a8-2eaa1300d71f.js'
  ]
}

@roblourens
Copy link
Member

@ZaitianWang are you successfully connected, ie can you open files on your remote?

@ZaitianWang
Copy link
Author

@ZaitianWang are you successfully connected, ie can you open files on your remote?

yes. opening files is fine

@meganrogge
Copy link

does changing terminal.integrated.gpuAcceleration help?

@meganrogge meganrogge added the info-needed Issue requires more information from poster label Jan 3, 2024
@ZaitianWang
Copy link
Author

does changing terminal.integrated.gpuAcceleration help?

none of auto, on, off, canvas helps

@meganrogge
Copy link

/duplicate 201129

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 3, 2024
@microsoft microsoft locked and limited conversation to collaborators Feb 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

6 participants