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

Incorrect GLIBC version detected #10688

Closed
6 tasks done
gtirloni opened this issue Feb 8, 2025 · 4 comments
Closed
6 tasks done

Incorrect GLIBC version detected #10688

gtirloni opened this issue Feb 8, 2025 · 4 comments
Assignees
Labels
code-server Issues on the VS Code Server. *duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH

Comments

@gtirloni
Copy link

gtirloni commented Feb 8, 2025

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.useLocalServer setting
  • 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

[17:45:39.753] > ready: 611fd4e32f0c
[17:45:39.754] > Linux 6.13.0-next-20250203 #1 SMP PREEMPT_DYNAMIC Mon Feb  3 10:22:01 -03 2025
[17:45:39.754] Platform: linux
[17:45:39.754] > /bin/bash
[17:45:39.755] Parent Shell: bash
[17:45:39.755] Parent Shell pid: 86154
[17:45:39.755] Waiting for subshell to start
[17:45:39.756] > 168495
[17:45:39.756] stdout -> '168495'
[17:45:39.756] sub-process detected
[17:45:39.760] > 611fd4e32f0c: running
> Script executing under PID: 168495
[17:45:39.765] > Installing to /home/user/.vscode-server...
[17:45:39.767] > 611fd4e32f0c%%1%%
> Downloading with wget
[17:45:39.768] > wget is from busybox: no
[17:45:39.774] > Detected that this version of wget does not support '--no-config'. Will not ignore wget default configuration files.
[17:45:39.774] stderr> Program 'wget' is not available or does not appear to support flag '--no-config'
[17:45:40.616] > Download complete
[17:45:40.618] > 611fd4e32f0c%%2%%
[17:45:40.619] > tar --version: tar (GNU tar) 1.35
> Copyright (C) 2023 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <https://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:45:40.752] > code 1.96.4 (commit cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba)
[17:45:40.753] > Starting VS Code CLI...
[17:45:40.755] > Spawned remote CLI: 168566
[17:45:40.757] > Waiting for server log...
[17:45:40.789] stderr> main: line 415: kill: (168566) - No such process
[17:45:40.789] > Exec server process not found
> [2025-02-08 17:45:41] error This machine does not meet Visual Studio Code Server's prerequisites, expected either...
>   - find GLIBC >= v2.28.0 (but found v0.9000.0 instead) for GNU environments
>   - find /lib/ld-musl-x86_64.so.1, which is required to run the Visual Studio Code Server in musl environments
[17:45:40.791] > 611fd4e32f0c: start
> exitCode==207==
> listeningOn====
> osReleaseId==fedora==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult==success==
> didLocalDownload==0==
> downloadTime==849==
> installTime==130==
> serverStartTime====
> execServerToken==111aa11a-aaa1-1111-1111-111a1111111a==
> platformDownloadPath==cli-alpine-x64==
> SSH_AUTH_SOCK====
> DISPLAY====
> 611fd4e32f0c: end
[17:45:40.791] Received install output:
exitCode==207==
listeningOn====
osReleaseId==fedora==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==849==
installTime==130==
serverStartTime====
execServerToken==111aa11a-aaa1-1111-1111-111a1111111a==
platformDownloadPath==cli-alpine-x64==
SSH_AUTH_SOCK====
DISPLAY====

[17:45:40.792] Terminating local server
[17:45:40.796] Resolver error: Error: The remote host does not meet the prerequisites for running VS Code Server
	at v.ServerInstallError (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:737466)
	at f (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:732360)
	at t.handleInstallOutput (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:733587)
	at e (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:788277)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async /Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:810995
	at async t.withShowDetailsEvent (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:814686)
	at async /Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:784989
	at async T (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:783044)
	at async t.resolveWithLocalServer (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:784541)
	at async R (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:807871)
	at async t.resolve (/Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:812087)
	at async /Users/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.117.0/out/extension.js:2:1097500
[17:45:40.801] ------




[17:45:40.802]  ---------- [Session Summary] -----------
[17:45:40.802] [LinuxPrereqs]: The remote host may not meet VS Code Server's prerequisites for glibc and libstdc++ (The remote host does not meet the prerequisites for running VS Code Server)
[17:45:40.802]  ----------------------------------------

Expected Behavior

Install on Linux server

Actual Behavior

Fails to detect correct glibc version

Steps To Reproduce

  1. Install Fedora 42 or rawhide with glibc-2.40.9000
  2. Try to connect to the remote Linux server
  3. See error about glibc version

Anything else?

https://sourceware.org/glibc/wiki/FAQ#How_can_I_find_out_which_version_of_glibc_I_am_using_in_the_moment.3F

$ rpm -qa | grep glibc | sort
glibc-2.40.9000-35.fc42.x86_64
glibc-all-langpacks-2.40.9000-35.fc42.x86_64
glibc-common-2.40.9000-35.fc42.x86_64
glibc-devel-2.40.9000-35.fc42.x86_64
glibc-gconv-extra-2.40.9000-35.fc42.x86_64

$ cat gnu_get_libc_version.c
#include <stdio.h>
#include <gnu/libc-version.h>

int main(void) {
    printf("gnu_get_libc_version = %s\n", gnu_get_libc_version());
    return 0;
}

$ ./gnu_get_libc_version
gnu_get_libc_version = 2.40.9000

$ /usr/lib64/libc.so.6
GNU C Library (GNU libc) development release version 2.40.9000.
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 15.0.1 20250125 (Red Hat 15.0.1-0).
libc ABIs: UNIQUE IFUNC ABSOLUTE
Minimum supported kernel: 3.2.0
For bug reporting instructions, please see:
<https://www.gnu.org/software/libc/bugs.html>.

Related: #10089

@gtirloni gtirloni added the ssh Issue in vscode-remote SSH label Feb 8, 2025
@joshspicer joshspicer assigned deepak1556 and unassigned joshspicer Feb 10, 2025
@joshspicer
Copy link
Member

@deepak1556 this user hit

[17:45:40.802] [LinuxPrereqs]: The remote host may not meet VS Code Server's prerequisites for glibc and libstdc++ (The remote host does not meet the prerequisites for running VS Code Server)

@joshspicer joshspicer added the code-server Issues on the VS Code Server. label Feb 10, 2025
@joshspicer
Copy link
Member

joshspicer commented Feb 10, 2025

@gtirloni you're on version 0.117.0 of Remote SSH, right? (Looks like it got cut off in the log). Does the issue reproduce if you go back one version?

@deepak1556
Copy link

/duplicate microsoft/vscode#230370

Please test with v1.97 version of the client.

@vs-code-engineering vs-code-engineering bot added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 10, 2025
Copy link

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. 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 Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-server Issues on the VS Code Server. *duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants