-
Notifications
You must be signed in to change notification settings - Fork 822
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
[WSL 2] Cannot access \\wsl$ after waking computer from sleep #4311
Comments
Maybe the same issue: I have a Windows Explorer window open showing files from my WSL Ubuntu file system. Computer goes to sleep. Wake the computer, I get this error modal from Windows Explorer (one for every window which was viewing WSL files):
I dismiss the dialog, and everything works correctly after a moment. |
@SvenGroot has a fix for this in review. |
Hey there, experiencing the same issue. Thanks! |
Same here. Although it wasn't something that started happening from the get go. |
Yeah same, that is happening for resume from standby and normal restarts when you use the "restore explorer windows" option |
I have "Restore previous folder windows at login", disabled and this still happens. It's really frustrating. It seems to work fine if I start WSL immediately after I turn on my PC. |
Yeah if you are fast enough to call wsl.exe directly which causes the VM to boot then restoring network drives and explorer folders etc does not fail. @benhillis @therealkenc can we please remove the fixed flag here? Or will this not get fixed for 2004? |
^--- File under a new issue if there is a well formed repro for remaining or related issues. The OP stated:
Given the timing of the fixinbound tag (September) it is safe to assume (unless/until someone says otherwise) that whatever fix was applied with respect to the above error, it will ship in 2004. |
There you go #5021 |
I had this problem, although my wsl hanges and I hasn't been able to shutdown it with as I found here: #8529 |
Why is this closed? In this year of 2023, this is still an everyday problem only fixed by shutting down wsl and restarting it, or rebooting the computer. |
Your Windows build number: Microsoft Windows [Version 10.0.18936.1000]
(This was also happening for me on build 18917)
What you're doing and what's happening:
I put computer to sleep overnight.
After waking my computer I cannot access my Linux files via
\\wsl$\Ubuntu
.Explorer fails with the message:
\\wsl$\Ubuntu is not accessible.
This happens often (but not every time) after waking computer from a long overnight sleep.
I ran
dmesg
and I got these errors in the log:Is there any additional information I can provide to help?
(NOTE: This issue is superficially similar to #4027 and #4260 except accessing
\\wsl$\...
usually works. It just fails after some amount of time, usually after waking the computer from sleep.)(hopefully temporary) Workaround for people experiencing this issue:
It's possible to temporarily restore file integration without having to restart your whole machine by restarting the WSL distribution (I'm only running one distribution so I don't know if you have to shutdown and restart all distributions to restart the 9P server).
(just make sure to close all applications that are accessing Linux files (e.g. vscode) before restarting the WSL distribution)
The text was updated successfully, but these errors were encountered: