Repository navigation
Description
-
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:
[ 175.397844] init: (1) ERROR: LogException:30: FS: (null) Invalid argument @..\..\inc\p9protohelpers.h:122 (Name)
[ 175.402700] init: (1) ERROR: LogException:30: FS: (null) Invalid argument @..\..\inc\p9protohelpers.h:122 (Name)
[ 175.409129] init: (1) ERROR: LogException:30: FS: (null) Invalid argument @..\..\inc\p9protohelpers.h:122 (Name)
[ 175.417134] init: (1) ERROR: LogException:30: FS: (null) Invalid argument @..\..\inc\p9protohelpers.h:122 (Name)
[ 175.422563] init: (1) ERROR: LogException:30: FS: (null) Invalid argument @..\..\inc\p9protohelpers.h:122 (Name)
[26961.870773] init: (1) ERROR: LogException:30: FS: (null) Invalid argument @..\\p9handler.cpp:853 (EmplaceFid)
[26961.896837] init: (1) ERROR: LogException:30: FS: (null) Invalid argument @..\\p9handler.cpp:853 (EmplaceFid)
[26961.899632] init: (1) ERROR: LogException:30: FS: (null) Invalid argument @..\\p9handler.cpp:853 (EmplaceFid)
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)
# close all apps accessing linux files (e.g. vscode)
# shutdown WSL distribution
$ wsl --shutdown Ubuntu
# confirm WSL distribution has shut down
$ wsl -l -v
# start the WSL distributuion again
$ wsl -d Ubuntu
Activity
joemaller commentedon Sep 23, 2019
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.
benhillis commentedon Sep 23, 2019
Sven Groot (@SvenGroot) has a fix for this in review.
Bengrunt commentedon Oct 15, 2019
Hey there, experiencing the same issue.
Any idea when the fix will be out?
Thanks!
abuteler commentedon Jan 7, 2020
Same here. Although it wasn't something that started happening from the get go.
I could suspend my laptop and resume working without problem two months ago.
I started having this issue mid December.
VSCode will tell me it's unable to connect to the WSL server, as if it didn't wake up.
Yet I am able to access the ubuntu filesystem via a quickaccess I created in Windows Explorer.
Stanzilla commentedon Jan 17, 2020
Yeah same, that is happening for resume from standby and normal restarts when you use the "restore explorer windows" option
whaaaley commentedon Mar 21, 2020
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.
Stanzilla commentedon Mar 27, 2020
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. Ben Hillis (@benhillis) therealkenc can we please remove the fixed flag here? Or will this not get fixed for 2004?
therealkenc commentedon Mar 27, 2020
^--- 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.
Stanzilla commentedon Mar 27, 2020
There you go #5021
nidia95 commentedon Jan 28, 2023
I had this problem, although my wsl hanges and I hasn't been able to shutdown it with
wsl --shutdown. after two days I found out I can fix it by killing the wslservice.exe in an admin powershell:taskkill /f /im wslservice.exe.as I found here: #8529
fredhaegele commentedon Jun 30, 2023
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.
markrmiller commentedon Apr 24, 2025
Why is this closed?
In this year of 2025, this is still an everyday problem only fixed by shutting down wsl and restarting it, or rebooting the computer.
lesmo commentedon Apr 26, 2026
Why is this closed?
In this year of 2026, this is still an everyday problem only fixed by shutting down wsl and restarting it, or rebooting the computer.
#14193, #14005, #8696