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 distro failing to startup with code 4294967295 #5092
Your Windows build number: (Type ver at a Windows Command Prompt)
19609
What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
Was browsing my Ubuntu WSL2 instance's filesystem using the new File Explorer WSL distro integration
What's wrong / what should be happening instead:
Suddenly, File Explorer could no longer connect to the distro.
Then tried connecting to distro via Windows Terminal, but got:
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.
[process exited with code 4294967295]
Reacted by Jean-Cédric Huet, Pedro Lamas, Jan Bronicki, Charles Alva, Tim Tomczek, Alexey Mak, balagurrr, Melissa Kipp, Markus Zhang, Mariusz Dugin and 93 more
Reacted by Umar Farooq, Param Siddharth, gema-arta, elvisisvan, Serhii Rohoza, Paulo Ricardo, Michiel, Gaspard Charles and Ivar Holmlund
Solve "process exited with code 4294967295" , run netsh winsock reset as Administrator, then reboot your computer.
The result like below:
❯ netsh winsock reset
Sucessfully reset the Winsock Catalog.
You must restart the computer in order to complete the reset.
Reacted by WingDust, Lei Zhilong, Paul Bargaoanu, Mohamed Khattab, Jan Bronicki, Hayden Woods, Tim Saunders, Leslie, Austin Zhou, Vivien and 268 more
Reacted by Kuznetsov Evgeniy, Dariusz Nowak, fharook shaik, Pedro Bezerra, Daniel Nashokin, Goeun Kim, Erman Nghonda, Joseph Young, oqlaalrefai, BiswasRabi and 52 more
Reacted by Alain Kaiser, abramq, Tiago Almeida, Max Lourenço Castelo Branco, Adário Muatelembe and ken-cdit
Reacted by Moises Perez, Cardin Lee, J Elliott, Bob, Jonas, Aris Chow, Olaoluwa (Ola) Mustapha, Aaron Carneiro, Siddhant Khare, sachin kn and 21 more
Reacted by Hayder Sharhan, Austin Zhou, Max Milazzo, Vivien, Christopher Jamme de Lagoutine, Jacob Belewich, Cardin Lee, Jon Ball, Matthew Lin, Aneesh Saripalli and 46 more
Reacted by OLIVIER Z., Alain Kaiser, abramq, AbidKhairyAK, FloUz-ai, Aurélien Delogu, Dan Sadatian, Sumit Kute, Bradley Howlett, Renier de Bruyn and 12 more
Reacted by Sang2306, Alain Kaiser, abramq, Arjen P. de Vries, Tiago Almeida, Renier de Bruyn and Carlos VInicius
Solve "process exited with code 4294967295" , run netsh winsock reset as Administrator, then reboot your computer.
The result like below:
❯ netsh winsock reset
Sucessfully reset the Winsock Catalog.
You must restart the computer in order to complete the reset.
Does not resolve the issue.
Reacted by Lev Shagalov, Vitalii Tokarchyn, DANIELS-ROTH Stan, Roman Zipp, Dane Balia, Bryan Richards, Luis Chaves Rodriguez, bk, Dynamic2603, PavelSosin-320 and 132 more
Reacted by Mark, Manoel Lopes, Willian Silva, rhiskey, Augustine Foday Ngobie, Eyeofthequeen, Daniel Nascimento, Yassine-S, amirmsj1374, venkat-ar and 2 more
Reacted by Param Siddharth, ayon06, Alain Kaiser, janekathambi101, Sabas Mendivil, onenoteperpage, Erin, Frenz86 and haoranfan
I had a customer's VPN client installed on my machine (Cisco AnyConnect VPN), the customer's installation package also installed dnscrypt. Uninstalling this has resolved the issue on my machine, confirming other threads that indicate the issue is usually related to network issues... particularly port 53.
Reacted by Pouya Miralayi, Mohammadreza Alihoseiny, Johnny Zhao, @ssbrar, Ulan Yisaev, Luc Cleutjens, Xinrui and LQ
1.) I'm just working and I close the terminal or ubuntu. Then I'm locked out of it
2.) I have my computer running for more than 36 hours then it does this? It could be coincidental however it is unlikely. Please not I'm not checking directly at 36 hours. It's just an estimate
Nothing fixes it. None of the above stuff mentioned has fixed it, neither have any other forum pages.
The only solution for me is to leave my PC running and every few hours to come back and check to see if it's fixed or still broken.
I just tried to open vhdx file in C:\Users\TrueAlex\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState
and my Ubuntu isn't working anymore :( even after reboot.
WSL2 works fine on 19640, but fails with same code on 19645. I already had my WSL2 set up, but this update failed it. Checking for updates on 19645 resulted in nothing, even though release notes mentioned we should get kernel with Windows Update.
Reacted by Ketan bhardwaj, Darma Kotama, I Nyoman, AlenBadel, Othmane Ouirdy, Sebastian Zieja, BaerMitUmlaut, Kaizhe Hu, Gorin Roman, aihuali213, Fadi Habboubati and 39 more
Reacted by Larson Carter, luoxhei, taghive-chuck, Aaron Jorgensen, boba-maker, Etienne Tremblay, Ozzy Deng, Luis Chaves Rodriguez, Jesse Peek, Dynamic2603 and 45 more
Reacted by Elvis Henrique Pereira, Sebastian Zieja, Willian Silva, quick707, Evan, adel alatawi, Henrique and Pink Panther
Reacted by Carlos A. Blanco, Rohit Roy Chowdhury, Gabriel Lavoura and Jared
Reacted by Evan, Param Siddharth, André Miani, Henrique, Alilouzizi and Pink Panther
Reacted by OLIVIER Z., Willian Silva, AbidKhairyAK, Henrique, Alilouzizi and Pink Panther
I was seeing the same issue and managed to fix it (at least for now!)
I opened the Resource Monitor and checked the "Listening Ports" so I could see what processes were using port 53, and found dockerd.exe and svchost.exe.
As there are too many instances of svchost.exe I used the PID to find the process on Task Manager, right-clicked and selected "Go to Service" and found out that it was "SharedAccess" (ICS).
At this point I killed dockerd.exe and stopped SharedAccess service (that immediately started again) and that was enough for me to get WSL distro running again!
Reacted by Gerardo Baez, Simon Debbarma, Matt Jernigan, skorov, Alfonso, Michael Denny, Ricardo Ambrogi, Chinmay kale, Jean-Cédric Huet, Sam Lin and 21 more
Reacted by Joseph Young, Vsevolod Semin, Thiago Jarilho Zardo and Eduardo Quezada
Reacted by Simon Debbarma, Matt Jernigan, Michael Denny, Marcello Telles, Sam Lin, cosimoth, Nadine Wischmeier, eg, Felipe V. Freitas, Rohit Bhirud and 1 more
Reacted by Simon Debbarma, Matt Jernigan, Michael Denny, Chinmay kale, Sam Lin, cosimoth, Max Milazzo, Nadine Wischmeier, eg, Vignesh T.V. and 5 more
Reacted by Simon Debbarma, Matt Jernigan, Sam Lin, Katherine Eaton, Nadine Wischmeier, eg and Samuel Alves
Pedro Lamas (@pedrolamas), thanks for posting what worked for you! I don't have Docker for Windows installed (so no dockerd.exe), but managed to work around the "process exited with code 4294967295" by simply stopping SharedAccess as you mentioned.
I can't believe WSL team is taking so long with this issue, which clearly is happening to many users AND is preventing us from doing our work.
Reacted by Pedro Lamas, Simon Debbarma, Matt Jernigan, Jonas Lara, PavelSosin-320, Henrijs Sprogis, Rubén David Pérez Cantillo, Andrew Fazzio, Meta, Param Siddharth and 8 more
This error appears when I finish working and close the lid of my laptop at night.
In the morning I get this error, but I can't continue working without an overload in the IDE
win11 24
Reacted by Jordan, S3riousSam, Jan Kranzen and Maxime Fafard
Reacted by Michał Brzeziński, João Vitor Martins Neto, ntatarskiy, fatweeb, KwongTN, Matheus Alves, Vladlen Chubarov, Shubh A Chudasama, Devon Sawatsky, ElliotKetchup and 6 more
I'm having this issue randomly too.
Each time I have it, if I still have a terminal running on WSL, to avoid restarting WSL or rebooting I run the following commands to free/compact caches.
echo 3 | sudo tee /proc/sys/vm/drop_caches
echo 1 | sudo tee /proc/sys/vm/compact_memory
It works everytime but you have to keep a running terminal inside WSL.
Today morning I working fine (all my tools are Linux based, so in Windows I using mostly Outlook only, but company have M$ infrastructure ...), I go to meeting and after meeting I discovered, that all my opened terminals have same catastrophic error message ...
After half wasted day my colleagues give me a hint for downgrading and this hint helped me.
Upgraded WSL version 3.0.1.0 not working, but previous version 2.7.14.0 is working fine (I just downloaded the older version and only runned installation for downgrading).
Well, nice advertisement for Linux world from billion dollars company ... The problem exist 6 years !!! I not have words ...
Today morning I working fine (all my tools are Linux based, so in Windows I using mostly Outlook only, but company have M$ infrastructure ...), I go to meeting and after meeting I discovered, that all my opened terminals have same catastrophic error message ...
After half wasted day my colleagues give me a hint for downgrading and this hint helped me.
Upgraded WSL version 3.0.1.0 not working, but previous version 2.7.14.0 is working fine (I just downloaded the older version and only runned installation for downgrading).
Well, nice advertisement for Linux world from billion dollars company ... The problem exist 6 years !!! I not have words ...
It's a generic message caused by lots of things. To equate your recent problem to one reported 6 years ago is a logical fallacy.
It's a generic message caused by lots of things. To equate your recent problem to one reported 6 years ago is a logical fallacy.
Can you please share, how can I differ problem with error code 4294967295 with problem with error code 4294967295 after 6 years of collecting workarounds?
But first I am curious, why this generic message exist after 6 years of developing? I know, that developers are also only humans, but instead of generate common error message "something goes somewhere wrong, sorry, try to restart", generating something more meaningful for users, or generate some dump, which can be possible to upload somewhere as a material for investigation ...
Yop, offtopic. Lets focusing to solution, not for workarounds (downgrade is only workaround, because updating to problematic version can occurring anytime)!
Activity
therealkenc commentedon Apr 15, 2020
#4364 #4929
holazt commentedon Apr 18, 2020
Solve "process exited with code 4294967295" , run
netsh winsock resetas Administrator, then reboot your computer.The result like below:
kaevans commentedon Apr 21, 2020
Does not resolve the issue.
kaevans commentedon May 28, 2020
I had a customer's VPN client installed on my machine (Cisco AnyConnect VPN), the customer's installation package also installed dnscrypt. Uninstalling this has resolved the issue on my machine, confirming other threads that indicate the issue is usually related to network issues... particularly port 53.
leizhilong commentedon Jun 1, 2020
works for me, Thanks
larson-carter commentedon Jun 11, 2020
I'm having this issue in a variety of situations.
1.) I'm just working and I close the terminal or ubuntu. Then I'm locked out of it
2.) I have my computer running for more than 36 hours then it does this? It could be coincidental however it is unlikely. Please not I'm not checking directly at 36 hours. It's just an estimate
Nothing fixes it. None of the above stuff mentioned has fixed it, neither have any other forum pages.
The only solution for me is to leave my PC running and every few hours to come back and check to see if it's fixed or still broken.
forecho commentedon Jun 15, 2020
#4904 (comment)
larson-carter commentedon Jun 15, 2020
蔡正海 (@forecho) That does not fix it.
truealex81 commentedon Jun 17, 2020
I just tried to open vhdx file in C:\Users\TrueAlex\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState
and my Ubuntu isn't working anymore :( even after reboot.
KazeZlat commentedon Jun 17, 2020
WSL2 works fine on 19640, but fails with same code on 19645. I already had my WSL2 set up, but this update failed it. Checking for updates on 19645 resulted in nothing, even though release notes mentioned we should get kernel with Windows Update.
Had to roll back to 19640 for now.
truealex81 commentedon Jun 17, 2020
I'm solved this with:
Reboot, and then:
pedrolamas commentedon Jun 29, 2020
I was seeing the same issue and managed to fix it (at least for now!)
I opened the Resource Monitor and checked the "Listening Ports" so I could see what processes were using port 53, and found dockerd.exe and svchost.exe.
As there are too many instances of svchost.exe I used the PID to find the process on Task Manager, right-clicked and selected "Go to Service" and found out that it was "SharedAccess" (ICS).
At this point I killed dockerd.exe and stopped SharedAccess service (that immediately started again) and that was enough for me to get WSL distro running again!
gerardojbaez commentedon Jun 29, 2020
Pedro Lamas (@pedrolamas), thanks for posting what worked for you! I don't have Docker for Windows installed (so no dockerd.exe), but managed to work around the "process exited with code 4294967295" by simply stopping SharedAccess as you mentioned.
I can't believe WSL team is taking so long with this issue, which clearly is happening to many users AND is preventing us from doing our work.
220 remaining items
86236291 commentedon May 27, 2025
pomazanbohdan commentedon May 28, 2025
This error appears when I finish working and close the lid of my laptop at night.
In the morning I get this error, but I can't continue working without an overload in the IDE
win11 24
valter-silva-au commentedon Jun 24, 2025
Here's how to completely remove WSL2 and reinstall it with Ubuntu 24.04 (powered by Perplexity):
Remove WSL2 Completely
Step 1: Unregister All Distributions
First, check what distributions are currently installed and remove them:
Repeat the unregister command for each distribution shown[1][2].
Step 2: Uninstall WSL Apps
Step 3: Disable WSL Features
Step 4: Clean Residual Files
Check and delete any remaining WSL-related folders in:
C:\Users\\AppData\Local\Packages\(look for Ubuntu or WSL folders)C:\Program Files\(look for WSL-related directories)[4]Reinstall WSL2 with Ubuntu 24.04
Step 1: Enable Required Features
Step 2: Install WSL2
Open PowerShell or Command Prompt as Administrator and run:
This installs the latest version of WSL[7][8].
Step 3: Set WSL2 as Default
Step 4: Update WSL
Step 5: Install Ubuntu 24.04
Check available distributions first:
Then install Ubuntu 24.04 specifically:
Step 6: Complete Setup
When prompted, create a username and password for your Ubuntu installation[3][9][10].
Verify Installation
Check that Ubuntu 24.04 is installed and running on WSL2:
You should see Ubuntu-24.04 listed with VERSION 2[8][3].
To access your Ubuntu installation, simply run:
Or launch it from the Start Menu[10].
This process ensures a clean removal of all WSL components and a fresh installation with only Ubuntu 24.04.
[1] https://superuser.com/questions/1746522/remove-wsl2-files-after-distro-uninstall-on-windows-11
[2] https://learn.microsoft.com/en-us/windows/wsl/faq
[3] https://dev.to/prastha/install-ubuntu-on-wsl-2-3fei
[4] https://answers.microsoft.com/en-us/windows/forum/all/i-cant-uninstall-wsl-from-windows-11/b884feff-d93f-4e3f-9012-97b87aab3576
[5] https://www.elevenforum.com/t/uninstall-windows-subsystem-for-linux-wsl-in-windows-11.10802/
[6] https://gist.github.com/4wk-/889b26043f519259ab60386ca13ba91b
[7] https://documentation.ubuntu.com/wsl/stable/howto/install-ubuntu-wsl2/
[8] https://learn.microsoft.com/en-us/windows/wsl/install
[9] https://www.youtube.com/watch?v=pX4SBoS_5aY
[10] https://www.youtube.com/watch?v=Cn1DYQwGY8o
[11] https://learn.microsoft.com/en-us/windows/wsl/install-manual
[12] https://askubuntu.com/questions/1261664/how-to-uninstall-the-wsl-installation-of-ubuntu-20-04-from-windows-10
[13] https://unix.stackexchange.com/questions/781583/install-ubuntu-24-04-via-wsl-in-windows-10-from-iso-file-in-a-specific-folder
[14] #11515
[15] https://www.reddit.com/r/bashonubuntuonwindows/comments/1e8qw5r/installing_ubuntu_with_wsl2_succeeds_then_wsl/
[16] https://www.reddit.com/r/WindowsHelp/comments/1ga3olr/how_can_i_completely_uninstall_wsl_and/
[17] https://www.youtube.com/watch?v=xftSZRA7exc
[18] https://ubuntu.com/desktop/wsl
ZackALXcodes commentedon Mar 19, 2026
Can't you just download a VMware Workstation Player, get a ubuntu disc, make a virtual machine with the ubuntu disc, and work on there?
ec-max commentedon Mar 20, 2026
From a WSL2 perspective, no. No you can't.
You are welcome. 😏
aynuayex commentedon Apr 19, 2026
here is my chat with gemini that has helped me solve this error
check it here: https://gemini.google.com/share/886894074e8d
wintercounter commentedon Jun 3, 2026
Same started to happen after installing the following Window update:
Windows 11 Insider Preview Quality Update (26300.8493)irfandyj commentedon Jun 11, 2026
Guys, I just restarted my laptop without doing any commands and it works.
Was it simply because of that? Would the above comments fix things up once and for all or was it the restart that actually matters?
jeremie-durand commentedon Aug 6, 2026
I fixed it only by restarting my computer. Will see if it comes back.
etshy commentedon Sep 1, 2026
I'm having this issue randomly too.
Each time I have it, if I still have a terminal running on WSL, to avoid restarting WSL or rebooting I run the following commands to free/compact caches.
It works everytime but you have to keep a running terminal inside WSL.
LHozzan commentedon Sep 30, 2026
Today morning I working fine (all my tools are Linux based, so in Windows I using mostly Outlook only, but company have M$ infrastructure ...), I go to meeting and after meeting I discovered, that all my opened terminals have same
catastrophicerror message ...After half wasted day my colleagues give me a hint for downgrading and this hint helped me.
Upgraded WSL version
3.0.1.0not working, but previous version2.7.14.0is working fine (I just downloaded the older version and only runned installation for downgrading).Well, nice advertisement for Linux world from billion dollars company ... The problem exist 6 years !!! I not have words ...
pedromundo commentedon Sep 30, 2026
You mean trillions :)
ec-max commentedon Sep 30, 2026
It's a generic message caused by lots of things. To equate your recent problem to one reported 6 years ago is a logical fallacy.
LHozzan commentedon Sep 30, 2026
Can you please share, how can I differ problem with
error code 4294967295with problem witherror code 4294967295after 6 years of collecting workarounds?But first I am curious, why this generic message exist after 6 years of developing? I know, that developers are also only humans, but instead of generate common error message "something goes somewhere wrong, sorry, try to restart", generating something more meaningful for users, or generate some dump, which can be possible to upload somewhere as a material for investigation ...
Yop, offtopic. Lets focusing to solution, not for workarounds (downgrade is only workaround, because updating to problematic version can occurring anytime)!
Mustafafathi commentedon Nov 10, 2026
S C:\Users\Dev> wsl --shutdown
PS C:\Users\Dev> wsl --install --web-download -d Ubuntu-22.04
Downloading: Ubuntu 22.04 LTS
Installing: Ubuntu 22.04 LTS
Distribution successfully installed. It can be launched via 'wsl.exe -d Ubuntu-22.04'
Launching Ubuntu-22.04...
Provisioning the new WSL instance Ubuntu-22.04
This might take a while...
Create a default Unix user account: