microsoft / microsoft/vscode-remote-release
[Remote-Container Bug] After a reboot and reopening the last workspace, the container fails to reattach due to missing /run/user/1000/wayland-0 mount
@chrmarti is already working on this.
Since Jul 25, 2024.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
The problem I am facing is that my dev-containers automatically contain a wayland bind mount:
{
"Type": "bind",
"Source": "/run/user/1000/wayland-0",
"Destination": "/tmp/vscode-wayland-f52c3e63-d089-4a0f-aeda-ee401c2ec501.sock",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
which is fine by itself. But under some to me unknown circumstances it can happen after a complete reboot, that in WSL2 the wayland socket in /run/user/1000/ is missing (although it exists in /mnt/wslg/runtime-dir/). This causes the existing container to fail when I try to reopen vscode which had this mount previously attached. I then either have to reopen the folder in WSL and rebuild the container or actually shutdown WSL (wsl --shutdown) and restart it which usually makes the wayland socket reappear.
Not sure if this is actually something that can be done in vscode-remote or if this is a WSL issue. I will probably also open an issue in WSL.
- VSCode Version: 1.91.1
- Local OS Version: Windows 10
- Remote OS Version: WSL2/Debian
- Remote Extension/Connection Type: Containers over WSL
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.