microsoft / microsoft/vscode-remote-release
Custom glibc: Patchelf permission denied
@deepak1556 is already working on this.
Since Nov 7, 2025.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Type: Bug
- Set the remoteUser to a non root user or have the default user set to a non root user
- 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
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.