microsoft / microsoft/vscode-linux-build-agent

vscode server node fetch function broken after patchelf

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
44
Forks
45
Avg merge
2d 3h
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked test Dockerfile and reproduce the failed fetch in the CentOS 6.7 container and Ubuntu 24.04 container. Read the patchelf 0.18.0 release and x86_64-gcc-8.5.0-glibc-2.28 configuration linked in the issue, then compare the patched Node executable with an unmodified one. Done means the VS Code server's fetch operations no longer fail with getaddrinfo ENOTFOUND.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, linux, node.js
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.