Skip to content
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

[WLS2] Network share not accessible after boot/resume from standby #5021

Closed
Stanzilla opened this issue Mar 27, 2020 · 17 comments
Closed

[WLS2] Network share not accessible after boot/resume from standby #5021

Stanzilla opened this issue Mar 27, 2020 · 17 comments
Labels

Comments

@Stanzilla
Copy link

Please use the following bug reporting template to help produce issues which are actionable and reproducible, including all command-line steps necessary to induce the failure condition. Please fill out all the fields! Issues with missing or incomplete issue templates will be closed.

If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.

Important: Do not open GitHub issues for Windows crashes (BSODs) or security issues. Please direct all Windows crashes and security issues to secure@microsoft.com. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".\

See our contributing instructions for assistance.

Please fill out the below information:

  • Your Windows build number: Microsoft Windows [Version 10.0.19041.172]

  • What you're doing and what's happening:

  • Map WSL as a network drive via 9P.
  • Open Explorer Windows to that network drive, browse some folders
  • Restart your PC / put it to sleep and wake again
  • What's wrong / what should be happening instead:

Windows should restore those explorer folders on login, instead if errors with "could not reconnect all network drives and closes your explorer windows.

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).

  • For WSL launch issues, please collect detailed logs.

@Stanzilla
Copy link
Author

Here's the error that comes up
image

@Stanzilla
Copy link
Author

This is still an issue with build 19041.264

@aadibajpai
Copy link

Bump, I get this issue on restart as well.

@donhector
Copy link

In my case, when I'm working in the wsl2 (ubuntu 20.04.2 from the MS Store) and then my machine goes to sleep (ie: during coffee break), when the machine wakes up, my wls2 distro is no longer listed as "running" and I have to manually start it again so the tools that were connected to the wsl2 pre-sleep (ie: VsCode for example) can reconnect to the wsl2 after the wake up. Quite annoying.

My build is 19042.804

@ThadHouse
Copy link

Bump. Any update on this issue? Nothing seems to help.

@Stanzilla
Copy link
Author

Sadly not, they've also been super silent about it when asked on Twitter. I assume it's just a Windows issue and not actually WSL but it's really really really annoying.

cc @craigloewen-msft

@jamieburchell
Copy link

I get this after restarting Windows. The mapped drive is inaccessible. I either have to restart again or from cmd do a wsl --shutdown then wsl to start it again.

@Stanzilla
Copy link
Author

@craigloewen-msft any chance this could get fixed in Windows 11? Windows 10 would be nice but I understand most dev has been moved to 11 already?

@craigloewen-msft
Copy link
Member

The main challenge that we've had here is reproing it. I've been using this setup on my machine and tried to repro it over the past few days but haven't had any success. I'm on Windows 10 build 22000. Any other tips on reproing this problem?

@jamieburchell
Copy link

jamieburchell commented Sep 14, 2021

Sometimes when I launch WSL, I get error messages about the file system being read-only. I see those because my .bashrc sets various things up which complain. Not sure if it's related. I can't recall if that happens at the same time the mapped drive is inaccessible. Again the "fix" is to shutdown WSL and start it again.

@Dylan-Brotherston
Copy link

I am also experiencing this issue. Build 19044.1266
I have found that it doesn't happen immediately after a reboot.
Either it takes some amount of time after a reboot or some number of resumes before this issues takes effect.

@Stanzilla
Copy link
Author

I have to say, it has not happened to me again after applying the group policy linked above, can you try it as well and see if it works for you?

@Stanzilla
Copy link
Author

Stanzilla commented Nov 5, 2021

Damn, issue is now back, even with that GP enabled, on Windows 11 22000.282

@jamieburchell
Copy link

If I attempt to delete a folder stored in WSL of many files from Windows, nine times out of ten Windows Explorer will hang and the entire OS grinds to a halt. I need to logout or reboot, and nearly every time WSL then fails to start until I issue a wsl --shutdown first. The platform just seems really unstable.

@kamcknig
Copy link

kamcknig commented May 3, 2022

This happens to me as well. To get it to work I can simply open a terminal and start wsl back up and immediately everything works.

Windows 11 Home build 22000

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants