microsoft / microsoft/vscode-remote-release
VS Code Server startet nicht auf Alpine Linux HomeAssistantOS (fehlende fcntl64-Funktion)
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
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.useLocalServersetting - 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 asked @remote-ssh and it helped, but I still want to report this bug
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 Auszug
Server did not start successfully. Full server log at /root/.vscode-server/.<commit-id>.log >>>
Error relocating /data/.vscode-server/bin/<commit-id>/node: fcntl64: symbol not found
Expected Behavior
Beschreibung: (formuliert von Copilot nach gemeinsamer Fehlersuche)
Ich habe versucht, die Remote-SSH-Erweiterung zu verwenden, um mich mit einem Host zu verbinden, der auf Alpine Linux basiert. Die Verbindung schlägt fehl, da der VS Code Server nicht gestartet werden kann. Der Fehler scheint auf die fehlende Unterstützung der fcntl64-Funktion in musl (der Standard-C-Bibliothek von Alpine Linux) zurückzuführen zu sein.
Schritte zur Reproduktion:
Installieren Sie die Remote-SSH-Erweiterung in VS Code.
Stellen Sie eine Verbindung zu einem Remote-Host her, der auf Alpine Linux basiert.
Beobachten Sie, dass der VS Code Server nicht gestartet werden kann.
Erwartetes Verhalten:
Der VS Code Server sollte erfolgreich auf dem Remote-Host gestartet werden, auch wenn dieser auf Alpine Linux basiert.
Tatsächliches Verhalten:
Die Verbindung schlägt fehl, und die folgende Fehlermeldung wird angezeigt:
Error relocating /data/.vscode-server/bin//node: fcntl64: symbol not found
Relevante Logs:
Hier ist ein Auszug aus dem Log:
Server did not start successfully. Full server log at /root/.vscode-server/..log >>>
Error relocating /data/.vscode-server/bin//node: fcntl64: symbol not found
Umgebung:
VS Code Version: 1.104.0
Remote-SSH Version: 0.120.0
Betriebssystem des Remote-Hosts: Alpine Linux
Architektur des Remote-Hosts: x86_64
SSH-Client: OpenSSH_9.6p1
Lokales Betriebssystem: Windows 10 (win32 x64)
Bereits getestete Workarounds:
Aktivieren von "remote.SSH.useLocalServer": true → Keine Verbesserung.
Installation von gcompat auf dem Remote-Host → Keine Verbesserung.
Versuch, glibc zu installieren → Nicht möglich, da dies das Home Assistant OS beschädigen würde.
Nutzung von "remote.SSH.useExecServer": true → Keine Verbesserung.
Zusätzliche Hinweise:
Alpine Linux verwendet musl anstelle von glibc, was zu Inkompatibilitäten führt.
Es wäre hilfreich, wenn der VS Code Server so angepasst werden könnte, dass er auf musl-basierten Systemen funktioniert, oder wenn ein alternativer Modus bereitgestellt wird, der diese Abhängigkeit umgeht.
Erwartete Lösung:
Bitte prüfen Sie, ob der VS Code Server so angepasst werden kann, dass er auf musl-basierten Systemen wie Alpine Linux funktioniert, oder ob ein alternativer Ansatz möglich ist, um die Abhängigkeit von glibc zu umgehen.
Vielen Dank!
Actual Behavior
Die Verbindung schlägt fehl, und die folgende Fehlermeldung wird angezeigt:
Error relocating /data/.vscode-server/bin//node: fcntl64: symbol not found
Steps To Reproduce
Installieren Sie die Remote-SSH-Erweiterung in VS Code.
Stellen Sie eine Verbindung zu einem Remote-Host her, der auf Alpine Linux basiert,
bei mir HomeAssistantOS.
Beobachten Sie, dass der VS Code Server nicht gestartet werden kann.
Erwartetes Verhalten:
Der VS Code Server sollte erfolgreich auf dem Remote-Host gestartet werden, auch wenn dieser auf Alpine Linux basiert.
Anything else?
No response
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.
Research direction
No source file or test is named. Start by reproducing the connection on Alpine Linux/Home Assistant OS and inspect the full server log at /root/.vscode-server/.log, focusing on the fcntl64 relocation error. Done means the VS Code Server starts successfully on the musl-based host without requiring glibc.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, vscode
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100