You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WSL2-Error: A connection attempt failed on Windows 19555.1001 #4860
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.
Reacted by Van Gorden, Mats Dreyer, Kevin Ashton, Rodrigo Scomação do Nascimento, Taylor Mulder, Umachandar Jayachandran, Yannick Mamudo, Tristan Struthers, Sebastián Gómez, Zippaaa and 50 more
Reacted by Adis Durakovic, Antoine Webanck, Vagner Luz do Carmo, Paul Pietkiewicz, Van Gorden, Kang Huaishuai, DANIELS-ROTH Stan, Sandro Locati, Yitong Dang, Derek Gaffney and 5 more
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
Thanks, we are debugging this internally - trying to figure out why only some users are hitting this.
Reacted by Yannick Mamudo, Troy Forster, Michel Promonet, Adam Wale, zrq8, Brad Mccormack, Abdul Mohamed, Kevin Pham, Fariborz Ghavamian, Rodrigo Caus and 2 more
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
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
Sorry, but this is absolutely no workaround. There are obvious reasons why we use v2 and not v1.
Reacted by Umachandar Jayachandran, Aaron Kulbe, Zippaaa, Kip Obenauf, Ray Bennett, Gaëtan Faramaz, Troy Forster, Eduard, Christophe Lemonnier, Jonathan Fraser and 18 more
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
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.
Reacted by Michael DePouw, Gianni Angelozzi, Dan Costa, cklotzjr, Christophe Lemonnier, Alejandro R Buteler, Kelvin Wuite, Ethan Moffat, Brad Mccormack, Kevin Pham and 12 more
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.🤘
Reacted by danylchuk, Ben Coleman, Kip Obenauf, Umachandar Jayachandran, allegrogiken, Michael Chiche, Jiacheng, Troy Forster, Darrell, Eduard and 56 more
Reacted by Andrii Dieiev, xa0082249956, Marat Radchenko, Nils Lundquist and Hendry Lee
Reacted by Kip Obenauf, Arley Henostroza, allegrogiken, phil, Vincent Pena, Rajiv Ramakrishnan, Eduardo Pereira, Adam Wale, Evan Roggenkamp, Alejandro R Buteler and 12 more
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
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.
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".
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 🤔
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.
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:
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.
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
Reacted by Erdum Adnan and Helder Geovane Gomes de Lima
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.
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 :/
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?
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:
Press "Windows + R" key to open Run dialog.
Type "services.msc" and press "Ok".
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
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.
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
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.
Reacted by webpartisan, Michael Kopf, Andrey Gorbunov, Oswin, Shivaibhav Dewangan, Ben Fox-Moore, Phieu Dinh, Audra Stump, ShaunOfTheLive, long-trinh-rvc and 1 more
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
Activity
[-]WSL2-Error: A connection attempt failed on Windows 19555[/-][+]WSL2-Error: A connection attempt failed on Windows 19555.1001[/+]olafkfreund commentedon Jan 31, 2020
Same problem here. All the WSL1 instances are working.
gel-mashup commentedon Jan 31, 2020
i got this bug, i am using ubuntu 18.04 distro and i cant seem to start wsl2 instance
FabienD commentedon Jan 31, 2020
Hi,
+1, VSCode can't established connection.
FabienD commentedon Jan 31, 2020
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
benhillis commentedon Jan 31, 2020
Thanks, we are debugging this internally - trying to figure out why only some users are hitting this.
briandenicola commentedon Jan 31, 2020
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
PS C:\Users\brian> wsl --set-version Ubuntu-18.04 1
PS C:\Users\brian> wsl --list -v
NAME STATE VERSION
PS C:\Users\brian>wsl
brian@brian_pc:~$
ad-on-is commentedon Jan 31, 2020
Sorry, but this is absolutely no workaround. There are obvious reasons why we use v2 and not v1.
briandenicola commentedon Jan 31, 2020
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.
ad-on-is commentedon Jan 31, 2020
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.🤘
ad-on-is commentedon Jan 31, 2020
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.
therealkenc commentedon Jan 31, 2020
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".
nunix commentedon Jan 31, 2020
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 🤔
ad-on-is commentedon Jan 31, 2020
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.
JMBBunch commentedon Jan 31, 2020
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:

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.
104 remaining items
harem234 commentedon Mar 21, 2021
this worked for me
on WSL 2
wsl -d Debian
hazardland commentedon Mar 30, 2021
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 topichelped
qhaas commentedon Apr 8, 2021
Ubuntu 20.04 in WSL2 on Windows 10 Pro for Workstations V20H2
Source61 commentedon Aug 17, 2021
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 :/
Vontei commentedon Feb 17, 2022
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?
codertjay commentedon Feb 22, 2022
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
Umoren commentedon Mar 23, 2022
worked for me
Ubuntu 20.04
ankitgoel739674 commentedon Jul 13, 2022
For me this issue is resolved by starting LxssManager service :--
Steps to start "LxssManager" service are as follows:
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]
chriscodex commentedon Nov 25, 2022
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.
Iano-theDev commentedon Feb 20, 2023
wsl --shutdown
then restart wsl
that worked for me... on ubntu 20.04
VasLem commentedon Nov 22, 2023
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
biberesser commentedon Feb 7, 2024
Same problem using IntelliJ+Git on projects inside WSL2. (also running: ssh-agent, Docker)
Error code: Wsl/Service/0x8007274cHappens around once or twice a week.
(Windows 11, Ubuntu 20.04)
workaround: restart WSL2:
wsl --shutdownwslpradiptaagus commentedon Mar 26, 2024
After figuring out what is happen I got the solution as follows
Windows + Rand typeservices.mscand press OK.LxssManagerand stop it.wsl -l -v, itwill shows the list of installed distributions. For me, I got Ubuntu.wsl -d Ubuntu.savemetenminutes commentedon Nov 25, 2024
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.
nicoladj77 commentedon Dec 4, 2025
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