WSL: WSL2 and Docker Desktop crashed
Windows Version
10.0.22631.2715
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
5.15.133.1-1
Distro Version
Debian
Other Software
Docker Desktop 4.25.1 (128006)
Repro Steps
- WSL started, everything is ok
- Start Docker Desktop, show “Docker Engine stopped”,
- When I create new tab of linux(wsl), I get error and wsl cannot start
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS\system32
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0\
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS\System32\OpenSSH\
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\dotnet\
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate J:\Git\bin
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate K:\ffmpeg-master-latest-win64-gpl-shared\bin
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files (x86)\ZeroTier\One\
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\Tailscale\
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Users\94189\.cargo\bin
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Users\94189\AppData\Local\Microsoft\WindowsApps
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Users\94189\AppData\Local\JetBrains\Toolbox\scripts
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate K:\Microsoft VS Code\bin
<3>WSL (322) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (322) ERROR: UtilTranslatePathList:2853: Failed to translate L:\Administrator\AppData\Local\GitHubDesktop\bin
distrod 0.1.7
USAGE:
-bash [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-l, --log-level <log-level> Log level in the env_logger format. Simple levels: trace, debug, info(default), warn,
error
SUBCOMMANDS:
create
disable
enable
exec
help Prints this message or the help of the given subcommand(s)
start
stop
another situation:
- WSL started
- Start Docker Desktop Service manually
- Start Docker Desktop with Administrator
- Docker Engine is running, but when I run
docker ps, returnCannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? - Then create new tab of linux(wsl),same as first situatin, and Docker Desktop show
Docker Desktp - Unexpected WSL error
Everything is ok yesterday, I don’t known what happened? Maybe Windows updated?
Expected Behavior
Actual Behavior
C:\Users\94189>wsl
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: CreateProcessParseCommon:708: Failed to translate C:\Users\94189
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS\system32
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0\
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\WINDOWS\System32\OpenSSH\
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\dotnet\
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate J:\Git\bin
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate K:\ffmpeg-master-latest-win64-gpl-shared\bin
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files (x86)\ZeroTier\One\
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\Tailscale\
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Users\94189\.cargo\bin
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Users\94189\AppData\Local\Microsoft\WindowsApps
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Users\94189\AppData\Local\JetBrains\Toolbox\scripts
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate K:\Microsoft VS Code\bin
<3>WSL (364) ERROR: No such file or directory @D:/a/1/s/src/linux/mountutil\mountutilcpp.h:17 (MountEnum)
<3>WSL (364) ERROR: UtilTranslatePathList:2853: Failed to translate L:\Administrator\AppData\Local\GitHubDesktop\bin
distrod 0.1.7
USAGE:
-bash [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-l, --log-level <log-level> Log level in the env_logger format. Simple levels: trace, debug, info(default), warn,
error
SUBCOMMANDS:
create
disable
enable
exec
help Prints this message or the help of the given subcommand(s)
start
stop
Diagnostic Logs
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 12
- Comments: 18
My steps to fix this:
sudo /opt/distrod/bin/distrod disableYou will need to edit the wsl.conf file to ensure systemd starts up on boot.
Add these lines to the /etc/wsl.conf (note you will need to run your editor with sudo privileges, e.g: sudo nano /etc/wsl.conf):
Then: Go into powershell and
wsl.exe --shutdownRestart your wsl in your terminal, seems good now!
I think the easiest way to fix this is to do go into wsl once (still works for me after wsl --shutdown) then run
sudo /opt/distrod/bin/distrod disableas mentioned and then switch away from distrod (permanently?) because it’s not really needed anymore. Instead use the native systemd support that Windows added for wsl: https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/#:~:text=release page.-,Set the systemd flag set in your WSL distro settings,-You will needThis works for me so far, not sure yet if the distrod disablement sticks around after a windows restart.
I’ve found I could avoid the problem by disabling Distrod; i.e. launch the Distrod instance, and
sudo /opt/distrod/bin/distrod disablein the Linux shell.No distrod in my case, so this does not work for me, I’m afraid.
I got similar issue since yesterday. In my case when I open VS code from WSL.
Same thing, I also use Arch Linux with Distrod.
The suggestion from here works for me.
Add the following to .wslconfig:
After rebooting the laptop (just wsl --shutdown was not sufficient for me) I can start VS Code (both from the exe or the wsl terminal) & Docker desktop without issues. Don’t know what are the repercussions for disabling virtio9p but things seem to work okay for me.
Thanks @httpete, followed the steps you posted, fixed my issue.
Hi I’m an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
Closed similar issues:
You can give me feedback by thumbs upping or thumbs downing this comment.