microsoft / microsoft/vscode-remote-release

Custom glibc: Patchelf permission denied

Open
#11,287 2 comments 0 reactions 1 assignee View on GitHub

@deepak1556 is already working on this.

Since Nov 7, 2025.

code-server
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Type: Bug

  1. Set the remoteUser to a non root user or have the default user set to a non root user
  2. Follow the offical guide on building and patching the vscode server https://github.com/microsoft/vscode-docs/blob/main/docs/remote/faq.md#can-i-run-vs-code-server-on-older-linux-distributions
  3. This makes the patching fail due to the following error: "patchelf: open: Permission denied"

I believe this issue is comming from the fact that the vscode volume is the one being directly patched instead of the linked one in the home folder. The /vscode folder is being owned by root and unless run as sudo it cannot be patched.

I have tested that changing the user to root makes it work. I have tried multiple ways of chown'ing on the /vscode folder in the remote ("postcreate" etc) but i have not been successful with it.

Extension version: 0.120.0
VS Code version: Code 1.102.3 (488a1f239235055e34e673291fb8d8c810886f81, 2025-07-29T03:00:23.339Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 6.6.87.2-microsoft-standard-WSL2

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.