Skip to content

WSL2-Error: A connection attempt failed on Windows 19555.1001 #4860

Closed

Description

After updating to Windows 19555 I get the following error, when starting WSL:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

PS C:\Users\add> wsl -l
Windows Subsystem for Linux Distributions:
Ubuntu-19.10 (Default)
docker-desktop
docker-desktop-data
PS C:\Users\add> wsl -d Ubuntu-19.10
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
PS C:\Users\add> wsl -d docker-desktop
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
PS C:\Users\add>

Update

I wanted to try this workaround on a fresh Alpine, #4371 (comment) but neither /bin nor /sbin were symlinks.

Activity

  1. changed the title [-]WSL2-Error: A connection attempt failed on Windows 19555[/-] [+]WSL2-Error: A connection attempt failed on Windows 19555.1001[/+] on Jan 31, 2020
  2. olafkfreund commented on Jan 31, 2020

    @olafkfreund

    Same problem here. All the WSL1 instances are working.

  3. gel-mashup commented on Jan 31, 2020

    @gel-mashup

    i got this bug, i am using ubuntu 18.04 distro and i cant seem to start wsl2 instance

  4. FabienD commented on Jan 31, 2020

    @FabienD

    Hi,

    +1, VSCode can't established connection.

    • VSCode Version: 1.42.0-insiders or stable 1.41.1
    • Local OS Version: Microsoft Windows [Version 10.0.19555.1001]
    • Remote OS Version: Ubuntu 18.04
    • Remote Extension/Connection Type: WSL
    • WSL Version: 2
  5. FabienD commented on Jan 31, 2020

    @FabienD

    Hi,

    For me, uninstalled / re-install openssh-server on the linux host fix the connection issue.

    cf. https://docs.microsoft.com/fr-fr/windows/wsl/troubleshooting

  6. benhillis commented on Jan 31, 2020

    @benhillis
    Member

    Thanks, we are debugging this internally - trying to figure out why only some users are hitting this.

  7. briandenicola commented on Jan 31, 2020

    @briandenicola

    i was hitting the same issue with my v2 distro then i successfully converted it back to v1. I can now access the distro. Took about an hour to convert down but at least it's a viable workaround until the issue is resolved.

    PS C:\Users\brian> wsl --list -v
    NAME STATE VERSION

    • Ubuntu-18.04 Stopped 2
      PS C:\Users\brian> wsl --set-version Ubuntu-18.04 1
      PS C:\Users\brian> wsl --list -v
      NAME STATE VERSION
    • Ubuntu-18.04 Running 1
      PS C:\Users\brian>wsl
      brian@brian_pc:~$
  8. ad-on-is commented on Jan 31, 2020

    @ad-on-is
    Author

    i was hitting the same issue with my v2 distro then i successfully converted it back to v1. I can now access the distro. Took about an hour to convert down but at least it's a viable workaround until the issue is resolved.

    PS C:\Users\brian> wsl --list -v
    NAME STATE VERSION

    • Ubuntu-18.04 Stopped 2
      PS C:\Users\brian> wsl --set-version Ubuntu-18.04 1
      PS C:\Users\brian> wsl --list -v
      NAME STATE VERSION
    • Ubuntu-18.04 Running 1
      PS C:\Users\brian>wsl
      brian@brian_pc:~$

    Sorry, but this is absolutely no workaround. There are obvious reasons why we use v2 and not v1.

  9. briandenicola commented on Jan 31, 2020

    @briandenicola

    i was hitting the same issue with my v2 distro then i successfully converted it back to v1. I can now access the distro. Took about an hour to convert down but at least it's a viable workaround until the issue is resolved.
    PS C:\Users\brian> wsl --list -v
    NAME STATE VERSION

    • Ubuntu-18.04 Stopped 2
      PS C:\Users\brian> wsl --set-version Ubuntu-18.04 1
      PS C:\Users\brian> wsl --list -v
      NAME STATE VERSION
    • Ubuntu-18.04 Running 1
      PS C:\Users\brian>wsl
      brian@brian_pc:~$

    Sorry, but this is absolutely no workaround. There are obvious reasons why we use v2 and not v1.

    I'm not sure why the down vote on my comment. I should made myself clear in that post I'm speaking for myself and not in any official capacity from Microsoft. I was trying to be helpful to the community to folks who need to have their wsl distros up and functional.

    v2 is vastly better than v1. We all love v2 but if it's a matter between up but limping along versus being down then I'll take being up while the issue is being worked on.

  10. ad-on-is commented on Jan 31, 2020

    @ad-on-is
    Author

    Thanks, we are debugging this internally - trying to figure out why only some users are hitting this.

    There's really some strategic solution needed here regarding Windows 10 Updates and especially WSL.

    What I mean is, yes, we opted for the Fast Ring and we know what risks we are taking as Beta-Testers. But WSL2 has become a crucial part of our work environment.
    Iin fact, so crucial, that we do rely more on a stable working WSL than we do on a stable Windows itself. We spend more time in WSL, Terminal and VSCode than we do with Explorer or [insert any other fancy-shmency Windows feature here].

    So please, for the sake of our work and time, can you guys at MS be more careful with such updates. We really love WSL, and are looking forward to all the new features you're going to provide us with. And most importantly, we are truly thankful for that.🤘

  11. ad-on-is commented on Jan 31, 2020

    @ad-on-is
    Author

    i was hitting the same issue with my v2 distro then i successfully converted it back to v1. I can now access the distro. Took about an hour to convert down but at least it's a viable workaround until the issue is resolved.
    PS C:\Users\brian> wsl --list -v
    NAME STATE VERSION

    • Ubuntu-18.04 Stopped 2
      PS C:\Users\brian> wsl --set-version Ubuntu-18.04 1
      PS C:\Users\brian> wsl --list -v
      NAME STATE VERSION
    • Ubuntu-18.04 Running 1
      PS C:\Users\brian>wsl
      brian@brian_pc:~$

    Sorry, but this is absolutely no workaround. There are obvious reasons why we use v2 and not v1.

    I'm not sure why the down vote on my comment. I should made myself clear in that post I'm speaking for myself and not in any official capacity from Microsoft. I was trying to be helpful to the community to folks who need to have their wsl distros up and functional.

    v2 is vastly better than v1. We all love v2 but if it's a matter between up but limping along versus being down then I'll take being up while the issue is being worked on.

    Since the title already says "WSL2-Error..." there's really no need to suggest a workaround for converting to v1.

    It's not about which one is better. There are features that v1 can do but v2 can't, and vice versa. Depending on these features and based on our needs, we have distros running as v1 or v2, simultaneously.

  12. therealkenc commented on Jan 31, 2020

    @therealkenc

    For folks who can get into their WSL 2 shell on 19555, but are experiencing the "VS Code Remote - WSL" problem mentioned above (looks like screencap), you can work-around by using "VS Code Remote SSH".

    image

  13. nunix commented on Jan 31, 2020

    @nunix

    quick questions:
    do you use a custom kernel?
    what does your .wslconfig looks like?
    your distro 19-10 is custom tight? do you face the same issue with a store one?

    I know the team is debugging, but I got some time this error when playing around with the kernel 🤔

  14. ad-on-is commented on Jan 31, 2020

    @ad-on-is
    Author

    quick questions:
    do you use a custom kernel?
    what does your .wslconfig looks like?
    your distro 19-10 is custom tight? do you face the same issue with a store one?

    I know the team is debugging, but I got some time this error when playing around with the kernel

    I've already reverted Windows back to the previous version. It's the official WSL-Ubuntu downloaded from the Ubuntu-Website, nothing custom and also no custom kernel here.

  15. JMBBunch commented on Jan 31, 2020

    @JMBBunch

    I updated to Windows 10 Pro Insider Preview 19555.rs_prerelease.200127-0900 this morning. I first noticed the above issues with WSL when opening VSCode after the update (same problem with VSCode x64 v1.41.0 and 1.41.1 and I also did update its Remote - WSL extension to 0.41.7).

    I have nothing of importance in my WSL so upon experiencing these symptoms (and trying the SSL-related fix mentioned above which did not help), I figured I'd get rid of the Ubuntu 18.04 LTS distro I have installed and have a fresh go at it.

    Upon opening the WSL window to finish the installation, I get this:
    image

    In case I didn't paste that in right, the upshot is the new installation prompts for a new default user account, as expected. I created one ("ubuntu") and it said the password was updated successfully, but then it came back with a connection attempt failure, which looks a lot like the same problem in my previously-working setup even though that error was within VSCode's terminal window and this one is in the WSL command window: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."

    As you can see in the screenshot, I thought I'd try a different name just in case, but the same error came up and came back to another new UNIX username prompt.

    In case it matters, after I updated Win10, I also installed (for the first time) the new cross-platform Powershell (6.2.4 x64). It was then I discovered VSCode couldn't open WSL.

  16. 104 remaining items

  17. harem234 commented on Mar 21, 2021

    @harem234

    this worked for me
    on WSL 2

    wsl -d Debian

  18. hazardland commented on Mar 30, 2021

    @hazardland

    Yeah guys, after installing VSCode daemon in WSL (by running code . in wsl) wsl stopped accepting connections something strange really happens, thanks to guys in this topic

    wsl --shutdown
    wsl
    

    helped

  19. qhaas commented on Apr 8, 2021

    @qhaas

    Ubuntu 20.04 in WSL2 on Windows 10 Pro for Workstations V20H2

    > wsl --shutdown
    > wsl
    A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
    
  20. Source61 commented on Aug 17, 2021

    @Source61

    Unfortunately none of these worked for me. I got this issue right after using diskpart to compact / reduce file disk since I was running out of disk space and my wsl Debian installation had a 10GB useless file so I deleted it and closed wsl but that didn't help, so I ran diskpart. The disk was successfully compacted after attaching in read-only mode, then I detached and tried to run wsl and got this. I've tried wsl --shutdown, it didn't help. I also tried reattaching drive with diskpart, but then running wsl gave me an error that the disk was already being used by a different application :/

  21. Vontei commented on Feb 17, 2022

    @Vontei

    Hi, checking in because I do not see any resolution and the linked issue has been locked.
    Rebooting my system did not work (I'm sure everyone here has tried it). Still stuck and development has halted. So much so that this keeps happening and competitor machines are being considered.

    Are there any known solutions to restarting/reconnecting at this time?
    Do we know the cause?

  22. codertjay commented on Feb 22, 2022

    @codertjay

    I fixed mine by moving windows app then searched for ubuntu
    i clicked on reset app after that i ran the app and it worked

  23. Umoren commented on Mar 23, 2022

    @Umoren
    wsl --shutdown
    wsl

    worked for me
    Ubuntu 20.04

  24. ankitgoel739674 commented on Jul 13, 2022

    @ankitgoel739674

    After updating to Windows 19555 I get the following error, when starting WSL:

    A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

    PS C:\Users\add> wsl -l
    Windows Subsystem for Linux Distributions:
    Ubuntu-19.10 (Default)
    docker-desktop
    docker-desktop-data
    PS C:\Users\add> wsl -d Ubuntu-19.10
    A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
    PS C:\Users\add> wsl -d docker-desktop
    A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
    PS C:\Users\add>
    

    Update

    I wanted to try this workaround on a fresh Alpine, #4371 (comment) but neither /bin nor /sbin were symlinks.

    For me this issue is resolved by starting LxssManager service :--
    Steps to start "LxssManager" service are as follows:

    1. Press "Windows + R" key to open Run dialog.
    2. Type "services.msc" and press "Ok".
    3. In services list look for "LxssManager" service and start the service.

    Now, open windows powershell as administrator and type below commands
    PS C:\WINDOWS\system32> wsl -l -v
    NAME STATE VERSION
    _ Ubuntu-18.04 Running 2_*
    docker-desktop-data Stopped 2
    docker-desktop Stopped 2

    If you find state as "Stopped" for your linux distro (ie; ubuntu-18.04, ubuntu 20.04, etc) then type below command

    PS C:\WINDOWS\system32> wsl -d

    For example:
    PS C:\WINDOWS\system32> wsl -d Ubuntu-18.04

    This will help to start your linux distro.

    Please reach out me if facing any issue on below mail id

    [email protected]

  25. chriscodex commented on Nov 25, 2022

    @chriscodex

    After an VSC update in WSL2 Ubuntu 22.04 distro, WSL2 started to fail and showed me this error. I coudn't be able to fix it. So I unistalled and reinstalled Ubuntu 22.04 in WSL2. It worked again, but I lost all my configuration.

  26. Iano-theDev commented on Feb 20, 2023

    @Iano-theDev

    wsl --shutdown
    then restart wsl
    that worked for me... on ubntu 20.04

  27. VasLem commented on Nov 22, 2023

    @VasLem

    I am able to reproduce this error with WSL2 and Ubuntu 20.04:
    A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
    Error code: Wsl/Service/0x8007274c

  28. biberesser commented on Feb 7, 2024

    @biberesser

    Same problem using IntelliJ+Git on projects inside WSL2. (also running: ssh-agent, Docker)
    Error code: Wsl/Service/0x8007274c

    Happens around once or twice a week.
    (Windows 11, Ubuntu 20.04)

    workaround: restart WSL2:
    wsl --shutdown
    wsl

  29. pradiptaagus commented on Mar 26, 2024

    @pradiptaagus

    After figuring out what is happen I got the solution as follows

    1. Open services manager by press Windows + R and type services.msc and press OK.
    2. Find LxssManager and stop it.
    3. Open the CMD or Powershell and type wsl -l -v, it will shows the list of installed distributions. For me, I got Ubuntu.
    4. Now run the desired distribution by command wsl -d Ubuntu.
  30. savemetenminutes commented on Nov 25, 2024

    @savemetenminutes

    Why is this issue closed? This is constantly happening and has been ever since WSL2 came out. It's blatantly obvious that after running WSL2 with memory demanding processeses inside, such as the Docker Desktop WSL2 integration with multiple containers and several open consoles - this issue manifests without fail. Shutting down or restarting WSL2, while being a proprietary "fix" for Microsoft products (especially Windows), is still like saying "it is what it is - deal with it" in a ridiculing and mockful manner. It is quite naive to offer a "solution" that involves shutting down a huge project, which depends on a Docker Compose stack with 20-30 containers, kill the Docker Desktop, shutdown WSL2, obviously quit all processes, which depend on this ecosystem like IDE integrations and consoles, start this whole circus again from scratch, just to hit the same problem 5 minutes later.

  31. nicoladj77 commented on Dec 4, 2025

    @nicoladj77

    Milen (@savemetenminutes) I don't understand if this means that I should give more ram to the WSL2? I have this issue while giving 12GB of ram to the WSL2, how much does it need? Agree with you that this is not a solved issue

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