Skip to content

WSL2 distro can't start: the remote procedure call failed (build 20211) #5907

Closed

Description

First of all, I've seen other issues similar to this one but none mentioned the error I get.

Environment

Windows build number: 20211
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: WSL2
  • wsl --status:
Default Distribution: Ubuntu
Default Version: 2

Windows Subsystem for Linux was last updated on 04/09/2020
WSL automatic updates are on.
Kernel version: 4.19.128
  • wsl -l -v:
  NAME      STATE           VERSION
* Ubuntu    Stopped         2
  Alpine    Stopped         2

Steps to reproduce

  1. Open cmd
  2. Run wsl or wsl -d <Distribution> (both Ubuntu and Alpine fail)

WSL logs: https://aka.ms/AA9l9ap

Expected behavior

The distribution should start.

Actual behavior

The wsl command fails with the error The remote procedure call failed.. Windows Terminal additionally reports process exited with code 4294967295 (0xffffffff, -1).

Also I don't know if it's connected, but pings wouldn't work from inside WSL2 before this started happening, though dns resolution worked correctly Fixed this part using the first part of this solution.

More information

Things I've checked from other issues:

  1. I don't have KB4571756 installed.
  2. Services LxssManager and LxssManagerUser_871e1 were stopped. After starting them and running wsl, the same error happens and they go back to being stopped.
  3. Stopping the Hyper-V service from Hyper-V Manager didn't fix it, and neither did restarting it.
  4. Stopping the SharedAccess service only made it start again.
  5. Disabling and enabling WSL didn't fix it either.
  6. Running powershell as admin and starting wsl from there got me the same error.

I haven't tried:

  • Rolling back to 20206, but I don't want to if at all possible. Plus, if there's an issue with 20211, I want to have it so that a fix can be tested in my machine.

Activity

  1. licanhua commented on Sep 11, 2020

    @licanhua
    Contributor

    Possible dup of #5902

  2. mcornella commented on Sep 11, 2020

    @mcornella
    Author

    Yep, I just thought it would be worth documenting, plus many of the error messages in that issue are different. I think that issue is a megathread of many different problems that all have the similarity of closing with error code 4294967295 (0xffffffff, -1), so it might be a good idea to split it based on the real underlying problem. Feel free to close it as dup though!

  3. sashizaki commented on Sep 12, 2020

    @sashizaki

    same +1

  4. genby commented on Sep 12, 2020

    @genby

    +1

  5. mcornella commented on Sep 12, 2020

    @mcornella
    Author

    Alright after a day without WSL I gave in and rolled back to build 20206 and the thing works again. There's something wrong with 20211.

  6. klimelau commented on Sep 12, 2020

    @klimelau

    Alright after a day without WSL I gave in and rolled back to build 20206 and the thing works again. There's something wrong with 20211.

    Could you explain how I can do that? Need WSL urgently

  7. mcornella commented on Sep 12, 2020

    @mcornella
    Author

    You should have the option Go back to the previous version of Windows 10 available:
    image

  8. jin8495 commented on Sep 12, 2020

    @jin8495

    same +1

  9. adrianvaneeden commented on Sep 13, 2020

    @adrianvaneeden
  10. faymek commented on Sep 13, 2020

    @faymek

    Microsoft has acknowledged that this is an error in KB4571756. See workaround on this thread in response by Alex Paluzzi (@alexpaluzzi). If you aren't OCD like me and don't clean up your disk every five hours you shodul be able to find an older copy of the file. Luckily I had one on another laptop,

    What if I have C:\Windows\System32\VmSynthNic.dll with 389KB and C:\Windows.old\WINDOWS\System32\VmSynthNic.dll with 398KB. Not missing, but changed.

  11. comzyh commented on Sep 13, 2020

    @comzyh

    Microsoft has acknowledged that this is an error in KB4571756. See workaround on this thread in response by Alex Paluzzi (@alexpaluzzi). If you aren't OCD like me and don't clean up your disk every five hours you shodul be able to find an older copy of the file. Luckily I had one on another laptop,

    I think this is a solution to a different issue. In build 20211, I do have C:\Windows\System32\VmSynthNic.dll in place. And I tried to reregister this dll and reboot, the problem doesn't get resolved.

  12. Cherry-Ran commented on Sep 13, 2020

    @Cherry-Ran

    the same to you!

  13. onomatopellan commented on Sep 13, 2020

    @onomatopellan

    Microsoft has acknowledged that this is an error in KB4571756. See workaround on this thread in response by Alex Paluzzi (@alexpaluzzi). If you aren't OCD like me and don't clean up your disk every five hours you shodul be able to find an older copy of the file. Luckily I had one on another laptop,

    No. That update KB4571756 is a problem for people in build 19041 or 19042. This thread is for users that are running latest Windows 10 Insider Dev build which is build 20211 and has nothing to do with KB4571756.

  14. moonheart commented on Sep 14, 2020

    @moonheart

    WSL1 encountered the same problem.

    image
    image

  15. bbongcol commented on Sep 14, 2020

    @bbongcol

    same +1

  16. 34 remaining items

  17. xdrew commented on Sep 24, 2020

    @xdrew

    Ok, I got my files back from wsl, but it's not the perfect solution.
    Just took the ext4.vhdx file here c:\Users<username>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_\LocalState
    Stopped wsl on target pc.
    And then moved the file to that pc with ok build, found similar folder there and replaced original vhdx with the desired one.
    Wsl started normally. I have same ubuntu versions on both pc. Not sure if it is a required condition.

  18. DonGuych commented on Sep 24, 2020

    @DonGuych

    Not fixed in 20221 build

    And also, WSL 2 AND 1 are broken, not only WSL 2 ...

  19. ThreshHNS commented on Sep 24, 2020

    @ThreshHNS

    Ok, I got my files back from wsl, but it's not the perfect solution.
    Just took the ext4.vhdx file here c:\Users\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_\LocalState
    Stopped wsl on target pc.
    And then moved the file to that pc with ok build, found similar folder there and replaced original vhdx with the desired one.
    Wsl started normally. I have same ubuntu versions on both pc. Not sure if it is a required condition.

    Thank you! You saved my deadlines 🥇

  20. chdenat commented on Sep 24, 2020

    @chdenat

    Not fixed in 20221 build

    And also, WSL 2 AND 1 are broken, not only WSL 2 ...

    Check the thread... It will ve fixed in a couple of weeks. N
    There is no WSL changes in the last release.

    2 options :
    wait or try to rollback
    If you rollback, so do not forget to block updates temporarily amd wait for a new release with the fix.

  21. Dutch77 commented on Sep 26, 2020

    @Dutch77

    Not fixed in 20221 build
    And also, WSL 2 AND 1 are broken, not only WSL 2 ...

    Check the thread... It will ve fixed in a couple of weeks. N
    There is no WSL changes in the last release.

    2 options :
    wait or try to rollback
    If you rollback, so do not forget to block updates temporarily amd wait for a new release with the fix.

    I really, really hope it will be sooner, because there is no option to rollback two builds back.
    Is there a way to install 20206 without loosing files?

  22. chdenat commented on Sep 26, 2020

    @chdenat
  23. Dutch77 commented on Sep 26, 2020

    @Dutch77

    Christian Denat (@chdenat) It won't let you keep files. All you can do is a clean install. Already tried that :/

  24. chdenat commented on Sep 27, 2020

    @chdenat

    Christian Denat (@chdenat) It won't let you keep files. All you can do is a clean install. Already tried that :/

    What kind of files ? AFAIK it's a windows iso and installing it does not affect your files nor WSL distro.
    But you can export, by security, your distros to restore later if needed

  25. anarinsk commented on Oct 1, 2020

    @anarinsk

    This issue is fixed with build 20226 for WSL 2 + Ubuntu 20.04 distro. Thanks for the effort.

  26. FengYong07 commented on Oct 1, 2020

    @FengYong07

    This issue is fixed with build 20226 for WSL 2 + Ubuntu 20.04 distro. Thanks for the effort.

    Does it work in build 20226 for WSL 2 + Ubuntu 18.04 distro? Everytime after updating my windows 10 in Dev, I got new problems. That was nasty.

  27. BlackDragonBE commented on Jul 19, 2023

    @BlackDragonBE

    If anyone stumbles upon this page years later and has the same issue, simply kill all processes that start with "wsl" and try again.

  28. mrtcmn commented on Sep 18, 2023

    @mrtcmn

    If anyone stumbles upon this page years later and has the same issue, simply kill all processes that start with "wsl" and try again.

    It's worked. But why :)

  29. arfans22 commented on Dec 23, 2024

    @arfans22

    I'm facing the same issue on my windows 11, doing wsl --update works for me!👍🏾

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