Skip to content

vscode server node fetch function broken after patchelf #48

Description

@listenerri

https://code.visualstudio.com/docs/remote/faq#_can-i-run-vs-code-server-on-older-linux-distributions

After pack patchelf and built glibc(new toolchain) into a docker image/container(based on centos:6.7), and export three VSCODE_SERVER_* env, vscode attach container successfully, but all fetch operation exec failed:

Error: getaddrinfo ENOTFOUND

My test Dockerfile is: https://github.com/listenerri/centos-6.7-vscode

It has been confirmed that this issue is caused by patchelf modifying the node executable program. I conducted the same test in the container of ubuntu:24.04, and the problem can be reproduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions