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

VSCode 1.88 remote connecting to Ubuntu 18.04 got "Missing GLIBC >= 2.28!" again #210033

Closed
zeroxia opened this issue Apr 10, 2024 · 18 comments
Closed
Assignees
Labels
info-needed Issue requires more information from poster ssh

Comments

@zeroxia
Copy link

zeroxia commented Apr 10, 2024

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.88
  • OS Version: Windows 10

Steps to Reproduce:

  1. Launch VSCode
  2. Use Remote-SSH extension to connect to a Ubuntu 18.04 host. It does warn

VSCode does show a popup window warning this:

The remote host may not meet VS Code Server's prerequisites for glibc and libstdc++

But then it downloads this binary package: ~/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c

Testing it on command line:

$ cd ~/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c
$ ./node
./node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by ./node)

Connecting to a WSL guest of Ubuntu 18.04, it downloads the same binary, so also failed with GLIBC_2.28 not found.

Downgrade to 1.87.2 both scenarios work without problem.

Remote-SSH logs with 1.88 (failed case):

[17:27:34.945] Log Level: 2
[17:27:34.957] SSH Resolver called for "ssh-remote+os16u18", attempt 1
[17:27:34.957] "remote.SSH.useLocalServer": false
[17:27:34.958] "remote.SSH.useExecServer": false
[17:27:34.958] "remote.SSH.showLoginTerminal": false
[17:27:34.958] "remote.SSH.remotePlatform": {"os16u18":"linux","z790":"linux"}
[17:27:34.958] "remote.SSH.path": undefined
[17:27:34.958] "remote.SSH.configFile": undefined
[17:27:34.959] "remote.SSH.useFlock": true
[17:27:34.959] "remote.SSH.lockfilesInTmp": false
[17:27:34.959] "remote.SSH.localServerDownload": auto
[17:27:34.959] "remote.SSH.remoteServerListenOnSocket": false
[17:27:34.959] "remote.SSH.showLoginTerminal": false
[17:27:34.959] "remote.SSH.defaultExtensions": []
[17:27:34.959] "remote.SSH.loglevel": 2
[17:27:34.959] "remote.SSH.enableDynamicForwarding": true
[17:27:34.960] "remote.SSH.enableRemoteCommand": false
[17:27:34.960] "remote.SSH.serverPickPortsFromRange": {}
[17:27:34.960] "remote.SSH.serverInstallPath": {}
[17:27:34.963] VS Code version: 1.88.0
[17:27:34.963] Remote-SSH version: [email protected]
[17:27:34.963] win32 x64
[17:27:34.969] SSH Resolver called for host: os16u18
[17:27:34.969] Setting up SSH remote "os16u18"
[17:27:34.977] Using commit id "5c3e652f63e798a5ac2f31ffd0d863669328dc4c" and quality "stable" for server
[17:27:34.984] Install and start server if needed
[17:27:34.993] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[17:27:34.997] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[17:27:34.998] Checking ssh with "C:\Windows\ssh.exe -V"
[17:27:35.000] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[17:27:35.000] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[17:27:35.001] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[17:27:35.001] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[17:27:35.002] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[17:27:35.003] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[17:27:35.132] > OpenSSH_for_Windows_8.1p1, Libre
[17:27:35.133] > SSL 3.0.2

[17:27:35.140] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 53279 os16u18 bash
[17:27:35.143] Terminal shell path: C:\Windows\System32\cmd.exe
[17:27:35.808] > �]0;C:\Windows\System32\cmd.exe�
[17:27:35.808] Got some output, clearing connection timeout
[17:27:36.540] > 4df7261f7066: running
[17:27:36.906] > Missing GLIBC >= 2.28!

Found version ldd (Ubuntu GLIBC 2.27-3ubuntu1.6) 2.27
4df7261f7066$$1$$
[17:27:36.953] > Acquiring lock on /home/<HIDDEN_USER_NAME>/.vscode-server/bin/5c3e652f63e798a5ac2f31
ffd0d863669328dc4c/vscode-remote-lock.<HIDDEN_USER_NAME>.5c3e652f63e798a5ac2f31ffd0d
863669328dc4c
[17:27:36.992] > Installing to /home/<HIDDEN_USER_NAME>/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0
d863669328dc4c...
[17:27:37.009] > 4df7261f7066%%1%%
[17:27:37.160] > Downloading with wget
[17:27:44.059] > Download complete
[17:27:44.084] > 4df7261f7066%%2%%
tar --version:
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
[17:27:56.024] > Checking /home/<HIDDEN_USER_NAME>/.vscode-server/.5c3e652f63e798a5ac2f31ffd0d8636693
28dc4c.log and /home/<HIDDEN_USER_NAME>/.vscode-server/.5c3e652f63e798a5ac2f31ffd0d8
63669328dc4c.pid for a running server
[17:27:56.182] > Starting VS Code Server... "/home/<HIDDEN_USER_NAME>/.vscode-server/bin/5c3e652f63e7
98a5ac2f31ffd0d863669328dc4c/bin/code-server" --start-server --host=127.0.0.1 --
accept-server-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-l
evel off &> "/home/<HIDDEN_USER_NAME>/.vscode-server/.5c3e652f63e798a5ac2f31ffd0d8
63669328dc4c.log" < /dev/null
The VS Code Server log file is /home/<HIDDEN_USER_NAME>/.vscode-server/.5c3e652f63e7
98a5ac2f31ffd0d863669328dc4c.log
printenv:
[17:27:56.190] >
USER=<HIDDEN_USER_NAME>
SCHROOT_GROUP=users
PWD=/home/<HIDDEN_USER_NAME>
HOME=/home/<HIDDEN_USER_NAME>
SCHROOT_ALIAS_NAME=u1804
SCHROOT_GID=100
SCHROOT_UID=1000
SCHROOT_USER=<HIDDEN_USER_NAME>
SHELL=/bin/bash
SHLVL=1
SCHROOT_SESSION_ID=u18
SCHROOT_COMMAND=bash
VSCODE_AGENT_FOLDER=/home/<HIDDEN_USER_NAME>/.vscode-server
LOGNAME=<HIDDEN_USER_NAME>
PATH=/usr/local/bin:/usr/bin:/bin
SCHROOT_CHROOT_NAME=u1804
_=/usr/bin/printenv
OLDPWD=/home/<HIDDEN_USER_NAME>/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d86
3669328dc4c
rm: cannot remove '/home/<HIDDEN_USER_NAME>/.vscode-server/.5c3e652f63e798a5ac2f31ff
d0d863669328dc4c.token': No such file or directory
[17:27:56.219] >
[17:27:56.273] > Spawned remote server: 112951
Waiting for server log...
[17:27:56.296] >
[17:27:56.312] > Waiting for server log...
[17:27:56.357] > Waiting for server log...
[17:27:56.392] > Waiting for server log...
[17:27:56.425] > Waiting for server log...
[17:27:56.475] > Waiting for server log...
[17:27:56.494] > Waiting for server log...
[17:27:56.505] >
[17:27:56.529] > Waiting for server log...
[17:27:56.559] > Waiting for server log...
[17:27:56.594] > Waiting for server log...
[17:27:56.625] > Waiting for server log...
[17:27:56.664] > Waiting for server log...
[17:27:56.700] > Waiting for server log...
[17:27:56.737] > Waiting for server log...
[17:27:56.762] > Waiting for server log...
[17:27:56.795] > Waiting for server log...
[17:27:56.831] > Waiting for server log...
[17:27:56.863] > Waiting for server log...
[17:27:56.910] > Waiting for server log...
[17:27:56.946] > Waiting for server log...
[17:27:56.982] > Waiting for server log...
[17:27:57.014] > Waiting for server log...
[17:27:57.030] > Waiting for server log...
[17:27:57.045] >
[17:27:57.062] > Waiting for server log...
[17:27:57.108] > Waiting for server log...
[17:27:57.142] > Waiting for server log...
[17:27:57.175] > Waiting for server log...
[17:27:57.213] > Waiting for server log...
[17:27:57.242] > Waiting for server log...
[17:27:57.277] > Waiting for server log...
[17:27:57.310] > Waiting for server log...
[17:27:57.343] > Waiting for server log...
[17:27:57.377] > Waiting for server log...
[17:27:57.409] > Waiting for server log...
[17:27:57.444] > Waiting for server log...
[17:27:57.476] > Waiting for server log...
[17:27:57.510] > Waiting for server log...
[17:27:57.542] > Waiting for server log...
[17:27:57.579] > Waiting for server log...
[17:27:57.614] > Waiting for server log...
[17:27:57.629] >
[17:27:57.646] > Waiting for server log...
[17:27:57.676] > Waiting for server log...
[17:27:57.725] > Waiting for server log...
[17:27:57.749] > Waiting for server log...
[17:27:57.786] > Waiting for server log...
[17:27:57.813] > Waiting for server log...
[17:27:57.858] > Waiting for server log...
[17:27:57.892] > Waiting for server log...
[17:27:57.927] > Waiting for server log...
[17:27:57.960] > Waiting for server log...
[17:27:57.992] > Waiting for server log...
[17:27:58.026] > Waiting for server log...
[17:27:58.058] > Waiting for server log...
[17:27:58.093] > Waiting for server log...
[17:27:58.123] > Waiting for server log...
[17:27:58.160] > Waiting for server log...
[17:27:58.175] >
[17:27:58.197] > Waiting for server log...
[17:27:58.243] > Waiting for server log...
[17:27:58.262] > Waiting for server log...
[17:27:58.282] >
[17:27:58.296] > Waiting for server log...
[17:27:58.345] > Waiting for server log...
[17:27:58.363] > Waiting for server log...
[17:27:58.380] >
[17:27:58.398] > Waiting for server log...
[17:27:58.442] > Waiting for server log...
[17:27:58.464] > Waiting for server log...
[17:27:58.479] >
[17:27:58.496] > Waiting for server log...
[17:27:58.560] > Waiting for server log...
[17:27:58.568] > Waiting for server log...
[17:27:58.597] > Waiting for server log...
[17:27:58.643] > Waiting for server log...
[17:27:58.667] > Waiting for server log...
[17:27:58.706] > Waiting for server log...
[17:27:58.744] > Waiting for server log...
[17:27:58.776] > Waiting for server log...
[17:27:58.810] > Waiting for server log...
[17:27:58.844] > Waiting for server log...
[17:27:58.883] > Waiting for server log...
[17:27:58.916] > Waiting for server log...
[17:27:58.949] > Waiting for server log...
[17:27:58.974] > Waiting for server log...
[17:27:59.011] > Waiting for server log...
[17:27:59.049] > Waiting for server log...
[17:27:59.089] > Waiting for server log...
[17:27:59.111] > Waiting for server log...
[17:27:59.124] >
[17:27:59.147] > Waiting for server log...
[17:27:59.181] > Waiting for server log...
[17:27:59.210] > Waiting for server log...
[17:27:59.243] > Waiting for server log...
[17:27:59.264] >
[17:27:59.281] > Waiting for server log...
[17:27:59.310] > Waiting for server log...
[17:27:59.360] > Waiting for server log...
[17:27:59.381] > Waiting for server log...
[17:27:59.427] > Waiting for server log...
[17:27:59.452] > Waiting for server log...
[17:27:59.481] > Waiting for server log...
[17:27:59.498] >
[17:27:59.514] > Waiting for server log...
[17:27:59.562] > Waiting for server log...
[17:27:59.594] > Waiting for server log...
[17:27:59.615] > Waiting for server log...
[17:27:59.660] > Waiting for server log...
[17:27:59.694] > Waiting for server log...
[17:27:59.727] > Waiting for server log...
[17:27:59.773] > Waiting for server log...
[17:27:59.798] > Waiting for server log...
[17:27:59.827] > Waiting for server log...
[17:27:59.861] > Waiting for server log...
[17:27:59.896] > Waiting for server log...
[17:27:59.927] > Waiting for server log...
[17:27:59.961] > Waiting for server log...
[17:27:59.999] > Waiting for server log...
[17:28:00.027] > Waiting for server log...
[17:28:00.061] > Waiting for server log...
[17:28:00.076] >
[17:28:00.098] > Waiting for server log...
[17:28:00.127] > Waiting for server log...
[17:28:00.148] >
[17:28:00.158] > Waiting for server log...
[17:28:00.195] > Waiting for server log...
[17:28:00.215] >
[17:28:00.232] > Waiting for server log...
[17:28:00.261] > Waiting for server log...
[17:28:00.274] >
[17:28:00.298] > Waiting for server log...
[17:28:00.332] > Waiting for server log...
[17:28:00.348] >
[17:28:00.365] > Waiting for server log...
[17:28:00.396] > Waiting for server log...
[17:28:00.444] > Waiting for server log...
[17:28:00.464] > Waiting for server log...
[17:28:00.509] > Waiting for server log...
[17:28:00.534] > Waiting for server log...
[17:28:00.566] > Waiting for server log...
[17:28:00.582] >
[17:28:00.616] > Waiting for server log...
[17:28:00.645] > Waiting for server log...
[17:28:00.683] > Waiting for server log...
[17:28:00.714] > Waiting for server log...
[17:28:00.747] > Waiting for server log...
[17:28:00.781] > Waiting for server log...
[17:28:00.813] > Waiting for server log...
[17:28:00.846] > Waiting for server log...
[17:28:00.879] > Waiting for server log...
[17:28:00.913] > Waiting for server log...
[17:28:00.946] > Waiting for server log...
[17:28:00.978] > Waiting for server log...
[17:28:01.012] > Waiting for server log...
[17:28:01.046] > Waiting for server log...
[17:28:01.079] > Waiting for server log...
[17:28:01.113] > Waiting for server log...
[17:28:01.146] > Waiting for server log...
[17:28:01.180] > Waiting for server log...
[17:28:01.213] > Waiting for server log...
[17:28:01.246] > Waiting for server log...
[17:28:01.279] > Waiting for server log...
[17:28:01.312] > Waiting for server log...
[17:28:01.361] > Waiting for server log...
[17:28:01.394] > Waiting for server log...
[17:28:01.429] > Waiting for server log...
[17:28:01.464] > Waiting for server log...
[17:28:01.496] > Waiting for server log...
[17:28:01.530] > Waiting for server log...
[17:28:01.563] > Waiting for server log...
[17:28:01.596] > Waiting for server log...
[17:28:01.630] > Waiting for server log...
[17:28:01.663] > Waiting for server log...
[17:28:01.697] > Waiting for server log...
[17:28:01.730] > Waiting for server log...
[17:28:01.762] > Waiting for server log...
[17:28:01.796] > Waiting for server log...
[17:28:01.815] >
[17:28:01.832] > Waiting for server log...
[17:28:01.862] > Waiting for server log...
[17:28:01.912] > Waiting for server log...
[17:28:01.932] > Waiting for server log...
[17:28:01.949] >
[17:28:01.966] > Waiting for server log...
[17:28:02.011] > Waiting for server log...
[17:28:02.034] > Waiting for server log...
[17:28:02.063] > Waiting for server log...
[17:28:02.081] >
[17:28:02.124] > Waiting for server log...
[17:28:02.133] > Waiting for server log...
[17:28:02.149] >
[17:28:02.182] > Waiting for server log...
[17:28:02.199] > Waiting for server log...
[17:28:02.216] >
[17:28:02.233] > Waiting for server log...
[17:28:02.265] > Waiting for server log...
[17:28:02.284] >
[17:28:02.300] > Waiting for server log...
[17:28:02.346] > Waiting for server log...
[17:28:02.380] > Waiting for server log...
[17:28:02.412] > Waiting for server log...
[17:28:02.445] > Waiting for server log...
[17:28:02.474] >
Waiting for server log...
[17:28:02.514] > Waiting for server log...
[17:28:02.546] > Waiting for server log...
[17:28:02.579] > Waiting for server log...
[17:28:02.616] > Waiting for server log...
[17:28:02.637] >
[17:28:02.653] > Waiting for server log...
[17:28:02.684] > Waiting for server log...
[17:28:02.718] > Waiting for server log...
[17:28:02.746] > Waiting for server log...
[17:28:02.780] > Waiting for server log...
[17:28:02.813] > Waiting for server log...
[17:28:02.854] > Waiting for server log...
[17:28:02.881] > Waiting for server log...
[17:28:02.913] > Waiting for server log...
[17:28:02.950] > Waiting for server log...
[17:28:02.980] > Waiting for server log...
[17:28:03.014] > Waiting for server log...
[17:28:03.047] > Waiting for server log...
[17:28:03.080] > Waiting for server log...
[17:28:03.114] > Waiting for server log...
[17:28:03.147] > Waiting for server log...
[17:28:03.180] > Waiting for server log...
[17:28:03.199] >
[17:28:03.219] > Waiting for server log...
[17:28:03.265] > Waiting for server log...
[17:28:03.285] > Waiting for server log...
[17:28:03.300] >
[17:28:03.331] > Waiting for server log...
[17:28:03.364] > Waiting for server log...
[17:28:03.397] > Waiting for server log...
[17:28:03.431] > Waiting for server log...
[17:28:03.465] > Waiting for server log...
[17:28:03.497] > Waiting for server log...
[17:28:03.534] > Waiting for server log...
[17:28:03.564] > Waiting for server log...
[17:28:03.602] > Waiting for server log...
[17:28:03.631] > Waiting for server log...
[17:28:03.664] > Waiting for server log...
[17:28:03.697] > Waiting for server log...
[17:28:03.730] > Waiting for server log...
[17:28:03.783] > Waiting for server log...
[17:28:03.819] > Waiting for server log...
[17:28:03.834] > Waiting for server log...
[17:28:03.849] >
[17:28:03.866] > Waiting for server log...
[17:28:03.898] > Waiting for server log...
[17:28:03.946] > Waiting for server log...
[17:28:03.966] > Waiting for server log...
[17:28:03.978] >
[17:28:04.001] > Waiting for server log...
[17:28:04.034] > Waiting for server log...
[17:28:04.068] > Waiting for server log...
[17:28:04.114] > Waiting for server log...
[17:28:04.136] > Waiting for server log...
[17:28:04.181] > Waiting for server log...
[17:28:04.214] > Waiting for server log...
[17:28:04.251] > Waiting for server log...
[17:28:04.267] > Waiting for server log...
[17:28:04.317] > Waiting for server log...
[17:28:04.348] > Waiting for server log...
[17:28:04.381] > Waiting for server log...
[17:28:04.416] > Waiting for server log...
[17:28:04.448] > Waiting for server log...
[17:28:04.482] > Waiting for server log...
[17:28:04.518] > Waiting for server log...
[17:28:04.552] > Waiting for server log...
[17:28:04.582] > Waiting for server log...
[17:28:04.615] > Waiting for server log...
[17:28:04.649] > Waiting for server log...
[17:28:04.687] > Waiting for server log...
[17:28:04.716] > Waiting for server log...
[17:28:04.752] > Waiting for server log...
[17:28:04.786] > Waiting for server log...
[17:28:04.821] > Waiting for server log...
[17:28:04.851] > Waiting for server log...
[17:28:04.882] > Waiting for server log...
[17:28:04.915] > Waiting for server log...
[17:28:04.949] > Waiting for server log...
[17:28:04.981] > Waiting for server log...
[17:28:05.019] > Waiting for server log...
[17:28:05.060] > Waiting for server log...
[17:28:05.083] > Waiting for server log...
[17:28:05.115] > Waiting for server log...
[17:28:05.132] >
[17:28:05.151] > Waiting for server log...
[17:28:05.182] > Waiting for server log...
[17:28:05.188] >
[17:28:05.237] > Waiting for server log...
[17:28:05.271] > Waiting for server log...
[17:28:05.299] > Waiting for server log...
[17:28:05.319] > Waiting for server log...
[17:28:05.366] > Waiting for server log...
[17:28:05.400] > Waiting for server log...
[17:28:05.432] > Waiting for server log...
[17:28:05.466] > Waiting for server log...
[17:28:05.502] > Waiting for server log...
[17:28:05.553] > Waiting for server log...
[17:28:05.569] > Waiting for server log...
[17:28:05.598] > Waiting for server log...
[17:28:05.632] > Waiting for server log...
[17:28:05.666] > Waiting for server log...
[17:28:05.697] > Waiting for server log...
[17:28:05.736] > Waiting for server log...
[17:28:05.770] > Waiting for server log...
[17:28:05.803] > Waiting for server log...
[17:28:05.833] > Waiting for server log...
[17:28:05.867] > Waiting for server log...
[17:28:05.899] > Waiting for server log...
[17:28:05.931] > Waiting for server log...
[17:28:05.966] > Waiting for server log...
[17:28:06.002] > Waiting for server log...
[17:28:06.036] > Waiting for server log...
[17:28:06.082] > Waiting for server log...
[17:28:06.115] > Waiting for server log...
[17:28:06.150] > Waiting for server log...
[17:28:06.183] > Waiting for server log...
[17:28:06.215] > Waiting for server log...
[17:28:06.253] > Waiting for server log...
[17:28:06.287] > Waiting for server log...
[17:28:06.316] > Waiting for server log...
[17:28:06.349] > Waiting for server log...
[17:28:06.383] > Waiting for server log...
[17:28:06.416] > Waiting for server log...
[17:28:06.449] > Waiting for server log...
[17:28:06.486] > Waiting for server log...
[17:28:06.521] > Waiting for server log...
[17:28:06.548] > Waiting for server log...
[17:28:06.584] > Waiting for server log...
[17:28:06.616] > Waiting for server log...
[17:28:06.650] > Waiting for server log...
[17:28:06.684] > Waiting for server log...
[17:28:06.733] > Waiting for server log...
[17:28:06.753] > Waiting for server log...
[17:28:06.788] > Waiting for server log...
[17:28:06.820] > Waiting for server log...
[17:28:06.866] > Waiting for server log...
[17:28:06.899] > Waiting for server log...
[17:28:06.934] > Waiting for server log...
[17:28:06.987] > Waiting for server log...
[17:28:07.016] > Waiting for server log...
[17:28:07.055] > Waiting for server log...
[17:28:07.085] > Waiting for server log...
[17:28:07.116] > Waiting for server log...
[17:28:07.151] > Waiting for server log...
[17:28:07.183] > Waiting for server log...
[17:28:07.216] > Waiting for server log...
[17:28:07.255] > Waiting for server log...
[17:28:07.287] > Waiting for server log...
[17:28:07.337] > Waiting for server log...
[17:28:07.383] > Waiting for server log...
[17:28:07.402] > Waiting for server log...
[17:28:07.418] >
[17:28:07.436] > Waiting for server log...
[17:28:07.482] > Waiting for server log...
[17:28:07.517] > Waiting for server log...
[17:28:07.536] > Waiting for server log...
[17:28:07.571] > Waiting for server log...
[17:28:07.586] >
[17:28:07.603] > Waiting for server log...
[17:28:07.651] > Waiting for server log...
[17:28:07.686] > Waiting for server log...
[17:28:07.709] > Waiting for server log...
[17:28:07.754] > Waiting for server log...
[17:28:07.787] > Waiting for server log...
[17:28:07.821] > Waiting for server log...
[17:28:07.852] > Waiting for server log...
[17:28:07.884] > Waiting for server log...
[17:28:07.904] >
[17:28:07.934] > Waiting for server log...
[17:28:07.953] > Waiting for server log...
[17:28:08.002] > Waiting for server log...
[17:28:08.035] > Waiting for server log...
[17:28:08.068] > Waiting for server log...
[17:28:08.100] > Waiting for server log...
[17:28:08.134] > Waiting for server log...
[17:28:08.167] > Waiting for server log...
[17:28:08.201] > Waiting for server log...
[17:28:08.234] > Waiting for server log...
[17:28:08.268] > Waiting for server log...
[17:28:08.317] > Waiting for server log...
[17:28:08.351] > Waiting for server log...
[17:28:08.384] > Waiting for server log...
[17:28:08.418] > Waiting for server log...
[17:28:08.452] > Waiting for server log...
[17:28:08.485] > Waiting for server log...
[17:28:08.518] > Waiting for server log...
[17:28:08.551] > Waiting for server log...
[17:28:08.584] > Waiting for server log...
[17:28:08.617] > Waiting for server log...
[17:28:08.636] >
[17:28:08.653] > Waiting for server log...
[17:28:08.701] > Waiting for server log...
[17:28:08.736] > Waiting for server log...
[17:28:08.768] > Waiting for server log...
[17:28:08.801] > Waiting for server log...
[17:28:08.836] > Waiting for server log...
[17:28:08.868] > Waiting for server log...
[17:28:08.918] > Waiting for server log...
[17:28:08.938] > Waiting for server log...
[17:28:08.954] >
[17:28:08.998] > Waiting for server log...
Waiting for server log...
[17:28:09.052] > Waiting for server log...
[17:28:09.085] > Waiting for server log...
[17:28:09.119] > Waiting for server log...
[17:28:09.152] > Waiting for server log...
[17:28:09.172] >
[17:28:09.187] > Waiting for server log...
[17:28:09.219] > Waiting for server log...
[17:28:09.251] > Waiting for server log...
[17:28:09.285] > Waiting for server log...
[17:28:09.318] > Waiting for server log...
[17:28:09.351] > Waiting for server log...
[17:28:09.385] > Waiting for server log...
[17:28:09.404] >
[17:28:09.420] > Waiting for server log...
[17:28:09.452] > Waiting for server log...
[17:28:09.470] >
[17:28:09.488] > Waiting for server log...
[17:28:09.535] > Waiting for server log...
[17:28:09.569] > Waiting for server log...
[17:28:09.603] > Waiting for server log...
[17:28:09.635] > Waiting for server log...
[17:28:09.668] > Waiting for server log...
[17:28:09.702] > Waiting for server log...
[17:28:09.737] > Waiting for server log...
[17:28:09.768] > Waiting for server log...
[17:28:09.803] > Waiting for server log...
[17:28:09.835] > Waiting for server log...
[17:28:09.870] > Waiting for server log...
[17:28:09.887] >
[17:28:09.904] > Waiting for server log...
[17:28:09.952] > Waiting for server log...
[17:28:09.985] > Waiting for server log...
[17:28:10.019] > Waiting for server log...
[17:28:10.052] > Waiting for server log...
[17:28:10.086] > Waiting for server log...
[17:28:10.119] > Waiting for server log...
[17:28:10.153] > Waiting for server log...
[17:28:10.187] > Waiting for server log...
[17:28:10.220] > Waiting for server log...
[17:28:10.252] > Waiting for server log...
[17:28:10.287] > Waiting for server log...
[17:28:10.304] >
[17:28:10.321] > Waiting for server log...
[17:28:10.352] > Waiting for server log...
[17:28:10.402] > Waiting for server log...
[17:28:10.436] > Waiting for server log...
[17:28:10.455] > Waiting for server log...
[17:28:10.502] > Waiting for server log...
[17:28:10.537] > Waiting for server log...
[17:28:10.589] > Waiting for server log...
[17:28:10.607] > Waiting for server log...
[17:28:10.621] >
[17:28:10.654] > Waiting for server log...
[17:28:10.687] > Waiting for server log...
[17:28:10.719] > Waiting for server log...
[17:28:10.739] > Waiting for server log...
[17:28:10.786] > Waiting for server log...
[17:28:10.820] > Waiting for server log...
[17:28:10.869] > Waiting for server log...
[17:28:10.884] > Waiting for server log...
[17:28:10.901] >
[17:28:10.921] > Waiting for server log...
[17:28:10.954] > Waiting for server log...
[17:28:10.987] > Waiting for server log...
[17:28:11.036] > Waiting for server log...
[17:28:11.055] > Waiting for server log...
[17:28:11.071] >
[17:28:11.088] > Waiting for server log...
[17:28:11.120] > Waiting for server log...
[17:28:11.143] >
[17:28:11.157] > Waiting for server log...
[17:28:11.191] >
*

[17:28:11.200] >

Server did not start successfully. Full server log at /home/<HIDDEN_USER_NAME>/.vsco
de-server/.5c3e652f63e798a5ac2f31ffd0d863669328dc4c.log >>>
/home/<HIDDEN_USER_NAME>/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c
/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required
by /home/<HIDDEN_USER_NAME>/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328
dc4c/node)
<<< End of server log
4df7261f7066: start
[17:28:11.209] >
exitCode==32==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==7108==
installTime==11928==
extInstallTime====
serverStartTime==15001==
4df7261f7066: end
[17:28:11.210] Received install output:
exitCode==32==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==7108==
installTime==11928==
extInstallTime====
serverStartTime==15001==

[17:28:11.212] Resolver error: Error: The VS Code Server failed to start
at g.ServerInstallError (c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:499668)
at d (c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:493011)
at t.handleInstallOutput (c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:495281)
at t.tryInstall (c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:620589)
at async c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:580447
at async t.withShowDetailsEvent (c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:583753)
at async k (c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:577412)
at async t.resolve (c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:581124)
at async c:\Users<HIDDEN_USERNAME>.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:847283
[17:28:11.216] ------

[17:28:13.135] "install" terminal command done
[17:28:13.136] Install terminal quit with output:

Remote-SSH logs with 1.87.2 (successful case):

[17:39:05.599] Log Level: 2
[17:39:05.608] SSH Resolver called for "ssh-remote+os16u18", attempt 1
[17:39:05.609] "remote.SSH.useLocalServer": false
[17:39:05.609] "remote.SSH.useExecServer": false
[17:39:05.609] "remote.SSH.showLoginTerminal": false
[17:39:05.610] "remote.SSH.remotePlatform": {"os16u18":"linux","z790":"linux"}
[17:39:05.610] "remote.SSH.path": undefined
[17:39:05.610] "remote.SSH.configFile": undefined
[17:39:05.610] "remote.SSH.useFlock": true
[17:39:05.610] "remote.SSH.lockfilesInTmp": false
[17:39:05.611] "remote.SSH.localServerDownload": auto
[17:39:05.611] "remote.SSH.remoteServerListenOnSocket": false
[17:39:05.611] "remote.SSH.showLoginTerminal": false
[17:39:05.611] "remote.SSH.defaultExtensions": []
[17:39:05.611] "remote.SSH.loglevel": 2
[17:39:05.611] "remote.SSH.enableDynamicForwarding": true
[17:39:05.611] "remote.SSH.enableRemoteCommand": false
[17:39:05.612] "remote.SSH.serverPickPortsFromRange": {}
[17:39:05.612] "remote.SSH.serverInstallPath": {}
[17:39:05.615] VS Code version: 1.87.2
[17:39:05.616] Remote-SSH version: [email protected]
[17:39:05.616] win32 x64
[17:39:05.624] SSH Resolver called for host: os16u18
[17:39:05.624] Setting up SSH remote "os16u18"
[17:39:05.634] Using commit id "863d2581ecda6849923a2118d93a088b0745d9d6" and quality "stable" for server
[17:39:05.640] Install and start server if needed
[17:39:05.648] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[17:39:05.650] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[17:39:05.650] Checking ssh with "C:\Windows\ssh.exe -V"
[17:39:05.652] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[17:39:05.652] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[17:39:05.654] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[17:39:05.654] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[17:39:05.655] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[17:39:05.655] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[17:39:05.805] > OpenSSH_for_Windows_8.1p1, Lib
[17:39:05.805] > reSSL 3.0.2

[17:39:05.814] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 63822 os16u18 bash
[17:39:05.819] Terminal shell path: C:\Windows\System32\cmd.exe
[17:39:07.380] > �]0;C:\Windows\System32\cmd.exe�
[17:39:07.381] Got some output, clearing connection timeout
[17:39:08.035] > 217df585aa34: running
[17:39:08.163] > Missing GLIBC >= 2.28!

Found version ldd (Ubuntu GLIBC 2.27-3ubuntu1.6) 2.27
217df585aa34$$1$$
[17:39:08.256] > Acquiring lock on /home/<HIDDEN_USERNAME>/.vscode-server/bin/863d2581ecda6849923a21
18d93a088b0745d9d6/vscode-remote-lock.<HIDDEN_USERNAME>.863d2581ecda6849923a2118d93
a088b0745d9d6
[17:39:08.261] > Installing to /home/<HIDDEN_USERNAME>/.vscode-server/bin/863d2581ecda6849923a2118d9
3a088b0745d9d6...
217df585aa34%%1%%
Downloading with wget
[17:39:09.578] > Download complete
[17:39:09.609] > 217df585aa34%%2%%
tar --version:
[17:39:09.635] > tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
[17:39:11.731] > Checking /home/<HIDDEN_USERNAME>/.vscode-server/.863d2581ecda6849923a2118d93a088b07
45d9d6.log and /home/<HIDDEN_USERNAME>/.vscode-server/.863d2581ecda6849923a2118d93a
088b0745d9d6.pid for a running server
[17:39:11.744] > Starting VS Code Server... "/home/<HIDDEN_USERNAME>/.vscode-server/bin/863d2581ecda
6849923a2118d93a088b0745d9d6/bin/code-server" --start-server --host=127.0.0.1 --
accept-server-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-l
evel off &> "/home/<HIDDEN_USERNAME>/.vscode-server/.863d2581ecda6849923a2118d93a
088b0745d9d6.log" < /dev/null
The VS Code Server log file is /home/<HIDDEN_USERNAME>/.vscode-server/.863d2581ecda
6849923a2118d93a088b0745d9d6.log
printenv:
USER=<HIDDEN_USERNAME>
SCHROOT_GROUP=users
PWD=/home/<HIDDEN_USERNAME>
HOME=/home/<HIDDEN_USERNAME>
SCHROOT_ALIAS_NAME=u1804
SCHROOT_GID=100
SCHROOT_UID=1000
SCHROOT_USER=<HIDDEN_USERNAME>
SHELL=/bin/bash
SHLVL=1
SCHROOT_SESSION_ID=u18
SCHROOT_COMMAND=bash
VSCODE_AGENT_FOLDER=/home/<HIDDEN_USERNAME>/.vscode-server
LOGNAME=<HIDDEN_USERNAME>
PATH=/usr/local/bin:/usr/bin:/bin
SCHROOT_CHROOT_NAME=u1804
_=/usr/bin/printenv
OLDPWD=/home/<HIDDEN_USERNAME>/.vscode-server/bin/863d2581ecda6849923a2118d93a0
88b0745d9d6
rm: cannot remove '/home/<HIDDEN_USERNAME>/.vscode-server/.863d2581ecda6849923a2118
d93a088b0745d9d6.token': No such file or directory
Spawned remote server: 118308
Waiting for server log...
[17:39:11.788] > Waiting for server log...
[17:39:11.828] > Waiting for server log...
[17:39:11.861] > Waiting for server log...
[17:39:11.900] > Waiting for server log...
[17:39:11.931] > Waiting for server log...
[17:39:11.965] > Waiting for server log...
[17:39:11.998] > Waiting for server log...
[17:39:12.032] > Waiting for server log...
[17:39:12.082] > Waiting for server log...
[17:39:12.100] > Waiting for server log...
[17:39:12.149] > Waiting for server log...
[17:39:12.182] >
*

[17:39:12.201] >

217df585aa34: start
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==46009==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==1393==
installTime==2120==
extInstallTime====
serverStartTime==436==
connectionToken==111aa111-a1a1-1a11-1a1a-a1111a11111a==
217df585aa34: end
[17:39:12.202] Received install output:
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==46009==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==1393==
installTime==2120==
extInstallTime====
serverStartTime==436==
connectionToken==111aa111-a1a1-1a11-1a1a-a1111a11111a==

[17:39:12.202] Remote server is listening on port 46009
[17:39:12.202] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":46009},"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/tmp","platform":"linux","connectionToken":"111aa111-a1a1-1a11-1a1a-a1111a11111a"},"downloadTime":1393,"installTime":2120,"serverStartTime":436,"installUnpackCode":"success"}
[17:39:12.212] Starting forwarding server. local port 63826 -> socksPort 63822 -> remotePort 46009
[17:39:12.215] Forwarding server listening on port 63826
[17:39:12.215] Waiting for ssh tunnel to be ready
[17:39:12.220] Tunneled port 46009 to local port 63826
[17:39:12.220] Resolved "ssh-remote+os16u18" to "port 63826"
[17:39:12.222] [Forwarding server port 63826] Got connection 0
[17:39:12.232] ------

[17:39:12.282] [Forwarding server port 63826] Got connection 1
[17:39:12.413] [Forwarding server port 63826] Got connection 2
[17:39:16.656] Opening exec server for ssh-remote+os16u18
[17:39:16.668] Initizing new exec server for ssh-remote+os16u18
[17:39:16.699] Using commit id "863d2581ecda6849923a2118d93a088b0745d9d6" and quality "stable" for server
[17:39:16.701] Install and start server if needed
[17:39:16.716] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 63835 os16u18 bash
[17:39:16.719] Terminal shell path: C:\Windows\System32\cmd.exe
[17:39:17.124] > �]0;C:\Windows\System32\cmd.exe�
[17:39:17.124] Got some output, clearing connection timeout
[17:39:17.499] > e59dd3b8e8d9: running

Installing to /home/<HIDDEN_USERNAME>/.vscode-server...
[17:39:17.532] > e59dd3b8e8d9%%1%%
Downloading with wget
[17:39:18.384] > Download complete
[17:39:18.407] > e59dd3b8e8d9%%2%%
tar --version:
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
[17:39:18.740] > code 1.87.2 (commit 863d2581ecda6849923a2118d93a088b0745d9d6)
Starting VS Code CLI... "/home/<HIDDEN_USERNAME>/.vscode-server/code-863d2581ecda68
49923a2118d93a088b0745d9d6" command-shell --cli-data-dir "/home/<HIDDEN_USERNAME>/.
vscode-server/cli" --on-port --parent-process-id 118676 &> "/home/<HIDDEN_USERNAME>
/.vscode-server/.cli.863d2581ecda6849923a2118d93a088b0745d9d6.log" < /dev/null
printenv:
USER=<HIDDEN_USERNAME>
SCHROOT_GROUP=users
PWD=/home/<HIDDEN_USERNAME>
HOME=/home/<HIDDEN_USERNAME>
SCHROOT_ALIAS_NAME=u1804
SCHROOT_GID=100
SCHROOT_UID=1000
SCHROOT_USER=<HIDDEN_USERNAME>
SHELL=/bin/bash
SHLVL=1
SCHROOT_SESSION_ID=u18
SCHROOT_COMMAND=bash
VSCODE_AGENT_FOLDER=/home/<HIDDEN_USERNAME>/.vscode-server
LOGNAME=<HIDDEN_USERNAME>
PATH=/usr/local/bin:/usr/bin:/bin
SCHROOT_CHROOT_NAME=u1804
OLDPWD=/home/<HIDDEN_USERNAME>/.vscode-server
_=/usr/bin/printenv
Spawned remote CLI: 118766
[17:39:18.763] >
Waiting for server log...
[17:39:18.779] >
[17:39:18.794] > Waiting for server log...
[17:39:18.833] > e59dd3b8e8d9: start
SSH_AUTH_SOCK====
DISPLAY====
listeningOn==127.0.0.1:35845==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==873==
installTime==347==
serverStartTime==82==
execServerToken==a1111111-a111-1aa1-a111-111a11aa1aa1==
e59dd3b8e8d9: end
[17:39:18.834] Received install output:
SSH_AUTH_SOCK====
DISPLAY====
listeningOn==127.0.0.1:35845==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==873==
installTime==347==
serverStartTime==82==
execServerToken==a1111111-a111-1aa1-a111-111a11aa1aa1==

[17:39:18.834] Remote server is listening on port 35845
[17:39:18.834] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":35845},"osReleaseId":"ubuntu","arch":"x86_64","sshAuthSock":"","display":"","tmpDir":"/tmp","platform":"linux","execServerToken":"a1111111-a111-1aa1-a111-111a11aa1aa1"},"downloadTime":873,"installTime":347,"serverStartTime":82,"installUnpackCode":"success"}
[17:39:18.840] Starting forwarding server. local port 63842 -> socksPort 63835 -> remotePort 35845
[17:39:18.842] Forwarding server listening on port 63842
[17:39:18.842] Waiting for ssh tunnel to be ready
[17:39:18.845] Tunneled port 35845 to local port 63842
[17:39:18.845] Resolved "ssh-remote+os16u18" to "port 63842"
[17:39:18.845] Resolving exec server at port 63842
[17:39:18.848] [Forwarding server port 63842] Got connection 0
[17:39:18.853] [Forwarding server port 63842] Got connection 1
[17:39:18.857] >
[17:39:18.943] Exec server for ssh-remote+os16u18 created and cached
[17:39:18.966] Opening exec server for ssh-remote+os16u18
[17:39:18.987] Verified and reusing cached exec server for ssh-remote+os16u18

@u1735067
Copy link

If it can help: make sure you use the latest remote-ssh version (Remote-SSH version: [email protected]), I got bite by this too. After, I got stuck at "Downloading VS Code Server ...", it took ~5 minutes for the download to start. Now it's ok.

@code-ghalib
Copy link

Updating Remote-SSH to v0.110.1 does not fix this and seems like a regression. If this is intentional, it is contrary to the Feb 2025 deadline communicated here:
https://code.visualstudio.com/docs/remote/faq#_can-i-run-vs-code-server-on-older-linux-distributions

@zeroxia
Copy link
Author

zeroxia commented Apr 11, 2024

On Ubuntu 18.04, I built the glibc-2.28 and install it to /opt/glibc-2.28, just like this post describes:

Reference: https://stackoverflow.com/a/77247394/2298014

When you do building, you should do it in a standalone "build" directory:

mkdir ~/src
cd ~/src

wget 'https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz'
tar xzf glibc-2.28.tar.gz

mkdir glibc-2.28-build
cd glibc-2.28-build
../glibc-2.28/configure --prefix=/opt/glibc-2.28

make

# make sure you can write to /opt/glibc-2.28
make install

Then after installing the package "patchelf":

# version "5c3e652f63e798a5ac2f31ffd0d863669328dc4c" is currently remote-ssh downloads and it depends on GLIBC_2.28
cd ~/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c
cp node node_bak
patchelf --set-interpreter /opt/glibc-2.28/lib/ld-linux-x86-64.so.2 --set-rpath /opt/glibc-2.28/lib:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu node

# Now it runs:
./node
v18.18.2

With this patch, v1.88 is working with my setup for now.

But this is obviously very cumbersome and fragile. Next time vscode server updates, you need to do patchelf for the new "node" binary.

And it is sad to know after Feb 2025, the systems with < GLIBC_2.28 will be unsupported.

@deepak1556
Copy link
Collaborator

@zeroxia based on the logs you are using an older ssh extension, can you update to the latest and see if the issue persists. We have updated how the server is downloaded in v1.88 as part of #206790 and it will only work with extension version >= 0.110

@deepak1556 deepak1556 added the info-needed Issue requires more information from poster label Apr 12, 2024
@deepak1556
Copy link
Collaborator

@code-ghalib can you share the logs from ssh extension.

@code-ghalib
Copy link

@deepak1556 there were no logs in the extension host folder because it looks like it was the dev containers extension that failed - updating that to v0.354.0 has fixed the issue, thanks!

@roobnloo
Copy link

Can confirm that v0.354.0 of dev containers extension fixed things for me as well!

@zeroxia
Copy link
Author

zeroxia commented Apr 15, 2024

@zeroxia based on the logs you are using an older ssh extension, can you update to the latest and see if the issue persists. We have updated how the server is downloaded in v1.88 as part of #206790 and it will only work with extension version >= 0.110

My VS Code can't see v0.110, it only sees v0.109 as the latest.

Do I need to "switch to prerelease version"?

@deepak1556
Copy link
Collaborator

Can you check if you have extension updates disabled in your settings ?

@zeroxia
Copy link
Author

zeroxia commented Apr 17, 2024

Can you check if you have extension updates disabled in your settings ?

I've managed to update to remote-ssh extension v0.110.1, now connecting via SSH to a Ubuntu 18.04 host is working. Thanks.

The problem of connecting to WSL guest which runs Ubuntu 18.04 still exists.

WSL extension version: v0.88.0

Error message:

[2024-04-17 03:09:37.020] .vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by  .vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node)

@deepak1556
Copy link
Collaborator

/cc @aeschli for the wsl extension

@bad-ed
Copy link

bad-ed commented Apr 17, 2024

Have the same issues. Vscode version 1.88.1. Updated "Remote - SSH" extension to 0.110.1. Didn't help
Dump from Output window:

[14:47:50.018] [server] /home/ednem/.vscode-server/cli/servers/Stable-e170252f762678dec6ca2cc69aba1570769a5d39/server/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/ednem/.vscode-server/cli/servers/Stable-e170252f762678dec6ca2cc69aba1570769a5d39/server/node)

Downgrading to 1.87.2 did help

@bradermanhitachirail
Copy link

I am seeing this issue on VSCode 1.88.1, portable installation, connecting to a RHEL 7.2 VM via the ssh-remote extension. This issue does not happen on VSCode 1.87.2. Remote - SSH extension version is v0.110.1. VSCode does not appear to recognize the need to use the legacy server and tries to run the one with GLIBC versions that are incompatible:

Server did not start successfully. Full server log at /login/radermb/.vscode-ser
ver/.e170252f762678dec6ca2cc69aba1570769a5d39.log >>>
/workspace/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node: /li
b64/libm.so.6: version GLIBC_2.27' not found (required by /workspace/.vscode-se rver/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node) /workspace/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node: /li b64/libc.so.6: version GLIBC_2.25' not found (required by /workspace/.vscode-se
rver/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node)
/workspace/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node: /li
b64/libc.so.6: version GLIBC_2.28' not found (required by /workspace/.vscode-se rver/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node) /workspace/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node: /li b64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by /workspace/.vs
code-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node)
/workspace/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node: /li
b64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by /workspace/. vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node) /workspace/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node: /li b64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /workspace/.
vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/node)

@nsercproject
Copy link

I am experiencing this issue on Ubuntu 18.04.06 LTS running on a PC (AMD Ryzen 7 5700G with Radeon Graphics) attempting to install the Debian package recommended in the VS Code website where the Application leads you after checking for updates. All official references and procedures. No remote installation or access, all local to my PC.

Should I open a new bug report?

$ sudo dpkg -i code_1.88.1-1712771838_amd64.deb 
Selecting previously unselected package code.
(Reading database ... 254481 files and directories currently installed.)
Preparing to unpack code_1.88.1-1712771838_amd64.deb ...
Unpacking code (1.88.1-1712771838) ...
dpkg: dependency problems prevent configuration of code:
 code depends on libc6 (>= 2.28); however:
  Version of libc6:amd64 on system is 2.27-3ubuntu1.6.
 code depends on libgssapi-krb5-2 (>= 1.17); however:
  Version of libgssapi-krb5-2:amd64 on system is 1.16-2ubuntu0.4.
 code depends on libxkbfile1 (>= 1:1.1.0); however:
  Version of libxkbfile1:amd64 on system is 1:1.0.9-2.

dpkg: error processing package code (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for shared-mime-info (1.9-2) ...
Errors were encountered while processing:
 code

@aeschli aeschli assigned connor4312 and unassigned aeschli Apr 29, 2024
@aeschli aeschli added the ssh label Apr 29, 2024
@tmchartrand
Copy link

see also #211718 - seems like this probably depends on mismatched extension versions, but was still frustrating to deal with!

@xuefeng-cvr
Copy link

On Ubuntu 18.04, I built the glibc-2.28 and install it to /opt/glibc-2.28, just like this post describes:

Reference: https://stackoverflow.com/a/77247394/2298014

When you do building, you should do it in a standalone "build" directory:

mkdir ~/src
cd ~/src

wget 'https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz'
tar xzf glibc-2.28.tar.gz

mkdir glibc-2.28-build
cd glibc-2.28-build
../glibc-2.28/configure --prefix=/opt/glibc-2.28

make

# make sure you can write to /opt/glibc-2.28
make install

Then after installing the package "patchelf":

# version "5c3e652f63e798a5ac2f31ffd0d863669328dc4c" is currently remote-ssh downloads and it depends on GLIBC_2.28
cd ~/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c
cp node node_bak
patchelf --set-interpreter /opt/glibc-2.28/lib/ld-linux-x86-64.so.2 --set-rpath /opt/glibc-2.28/lib:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu node

# Now it runs:
./node
v18.18.2

With this patch, v1.88 is working with my setup for now.

But this is obviously very cumbersome and fragile. Next time vscode server updates, you need to do patchelf for the new "node" binary.

And it is sad to know after Feb 2025, the systems with < GLIBC_2.28 will be unsupported.

Works for me.

VScode version: 1.89.1
Ubuntu version: 18.04

Copy link

Hey @deepak1556 @connor4312, this issue might need further attention.

@zeroxia, you can help us out by closing this issue if the problem no longer exists, or adding more information.

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!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster ssh
Projects
None yet
Development

No branches or pull requests