Skip to content

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

Closed

Description

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 [email protected]. 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.

Activity

  1. Stanzilla commented on Apr 15, 2020

    @Stanzilla
    Author

    Here's the error that comes up
    image

  2. Stanzilla commented on Jun 1, 2020

    @Stanzilla
    Author

    This is still an issue with build 19041.264

  3. aadibajpai commented on Sep 19, 2020

    @aadibajpai

    Bump, I get this issue on restart as well.

  4. donhector commented on Mar 5, 2021

    @donhector

    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

  5. ThadHouse commented on Mar 18, 2021

    @ThadHouse

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

  6. Stanzilla commented on Mar 19, 2021

    @Stanzilla
    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 Craig Loewen (@craigloewen-msft)

  7. jamieburchell commented on Aug 25, 2021

    @jamieburchell

    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.

  8. Stanzilla commented on Sep 12, 2021

    @Stanzilla
    Author

    Craig Loewen (@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?

  9. craigloewen-msft commented on Sep 14, 2021

    @craigloewen-msft
    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?

  10. jamieburchell commented on Sep 14, 2021

    @jamieburchell

    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.

  11. Dylan-Brotherston commented on Oct 14, 2021

    @Dylan-Brotherston

    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.

  12. Stanzilla commented on Oct 14, 2021

    @Stanzilla
    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?

  13. Stanzilla commented on Nov 5, 2021

    @Stanzilla
    Author

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

  14. jamieburchell commented on Nov 18, 2021

    @jamieburchell

    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.

  15. kamcknig commented on May 3, 2022

    @kamcknig

    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

  16. microsoft-github-policy-service commented on Feb 1, 2024

    @microsoft-github-policy-service
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions