-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running shutdown
from within Linux with systemd enabled breaks population of Windows PATH entries
#10727
Comments
Hello, have you found a solution? I have encountered the same issue. |
I seem to have a similar issue - I don't remember forcing a shutdown, but I did have systemd enabled and subsequently ran I described my issue a bit more in #9360 (comment). It seems like adding this to
I'm not sure what the implications are of this config, but at least in my case, this seems to have allowed /mnt/c to get populated and I'm no longer seeing these errors. I'm not sure what would have caused the underlying problem, though - it would be great to resolve that fully! |
I had the same problem on the latest version of wsl 2.0.9 and win 11 22h2, using Debian and seems this error is triggered by the fact c drive is not being mounted, and then these path's are not available. I removed everything and installed package 2.0.0 for wsl, and here the problem is the same. To replicate it, after installation just perform wsl --shutdown Debian and then open it again, and you will have the errors related to the paths, and also C: drive is not mounted. You need to perform multiple times wsl --shutdown Debian or --terminate, and then works for some time, but then after reboot, happens again. I think i will move to 1.2.5.0 until this will be resolved |
I am also running WSL 2.0.9 and Windows 11 22h2. I tried everything above and still have the issue intermittently. I've been running WSL 2 since it came out and only recently ran into this issue. I'm not convinced downgrading to WSL 1 is the best solution... |
It seems like virtio9p has been disabled by default in the latest release - https://github.com/microsoft/WSL/releases/tag/2.0.11 At least in the other thread about a similar issue, several people reported that disabling virtio9p helped out (#9360 (comment)), so for anyone stumbling across this issue when searching for "UtilTranslatePathList", maybe upgrading to the latest version of WSL2 will help out. It seems like this issue is being worked on actively! I'm not sure what's going on for other people in this thread, though, if disabling virtio9p didn't solve it =/ Maybe try upgrading to the latest version of WSL 2 anyway and see? |
I have the same problem. Killing all wsl* processes, including wslservice.exe solved the problem for me. |
Did somebody tried to run wsl explicitly with admin rights? On my side i never had problems running it like this. If i open it without admin rights the problem is happening randomly, sometime after reboot, c drive is mounted, other times is not. When is not mounting it, i'm just trying wsl --terminate Debian, and after, it just opens without any problem, but are times when maybe neither this is not working. If somebody know how to debug, or what kind of logging i should enable please let me know. |
Windows Version
23580.1000
WSL Version
2.0.6.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133
Distro Version
Debian (unstable, custom distro)
Other Software
No response
Repro Steps
systemd
enabled (I tested and this does work on other ones than my Debian install)sudo shutdown -h now
as one would on a "normal" Linux machineExpected Behavior
Actual Behavior
$PATH
does not contain Windows entries. Example errors are below - there is one for each windows PATH entry:<3>WSL (244) ERROR: UtilTranslatePathList:2853: Failed to translate C:\Program Files\PowerShell\7\
Diagnostic Logs
WslLogs-2023-11-08_15-12-33.zip
The text was updated successfully, but these errors were encountered: