-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL can't start: Error 0x803b0017 #10483
Comments
@keith-horton, |
The trace shows the network HNS created is in a bad state. Running this should at least unblock you: hnsdiag delete networks B95D0C5E-57D4-412B-B571-18A81A16E005 Network : B95D0C5E-57D4-412B-B571-18A81A16E005 If that works, I can look to handle this error in WSL (HCN_E_DEGRADED_OPERATION) |
@keith-horton I've tried it on 3 occacions now, all it seems to do is get stuck. |
Sorry about this. Are you saying that running the above hnsdiag delete networks command would not unblock HNS - WSL would still fail to start with that error? |
Can you look in your wslconfig file, or in the registry? It looks like this is trying to create a NAT but specifying a specific IP address for the container: 172.29.70.154. Possibly look under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\lxss --> if there are registry values for "NatNetwork" and/or "NatGatewayIpAddress". If so, can you remove those and retry? |
@keith-horton -- FWIW, I was encountering a similar issue out of the blue today, and this fixed it for me without a reboot. Other things I tried first (which didn't fix it) were:
Background: I returned after a few days away, and found all my WSL2 terminals closed. I was unable to launch WSL2 (although WSL1 worked OK). No Windows updates or reboots had taken place while I was gone, although it looks like WSL itself may have been updated from 2.0.9 to 2.1.4 last night. From the event log:
My error trying to launch WSL2:
My environment:
|
I've tried deleting those records.
I Apologise for the late reply, I haven't been using WSL as I was tired of running into this issue every few days and was just hoping to run into an update that would fix it for me. |
@utkarshsethi , were you able to find the HNS Network, and delete it? e.g. 'list networks' to find the GUID for the "WSL" network. then specify that GUID to delete it. Can you confirm if after deleting the HNS Network, if WSL can start? C:\Windows\System32>hnsdiag list networks Network : B95D0C5E-57D4-412B-B571-18A81A16E005 C:\Windows\System32>hnsdiag delete networks B95D0C5E-57D4-412B-B571-18A81A16E005 C:\Windows\System32>hnsdiag list networks C:\Windows\System32> |
This is still an issue in the exact same manner. hnsdiag to delete the WSL network just hangs the terminal, and does not cause a fix either. deleting reg entries doesn't produce any effect either. I get the exact same error at completely random times. The only way it seems to work again is to do multiple restarts and hope it works now. |
Windows Version
Microsoft Windows [Version 10.0.22621.2283]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
No response
Other Software
No response
Repro Steps
after every few days, it runs into this, and the only way to fix it is to restart Windows, which is really tiresome at this point.
Having to restart Windows because WSL refuses to boot is unacceptable. It will be working 10 minutes ago but will refuse to open the next time you need it.
related issues seem to be: #10150
Expected Behavior
WSl should run.
Actual Behavior
Diagnostic Logs
WslLogs-2023-09-17_11-49-12.zip
The text was updated successfully, but these errors were encountered: