Skip to content
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

Error: "The stub received bad data" #7570

Closed
1 of 2 tasks
sirius-fan opened this issue Oct 19, 2021 · 37 comments
Closed
1 of 2 tasks

Error: "The stub received bad data" #7570

sirius-fan opened this issue Oct 19, 2021 · 37 comments

Comments

@sirius-fan
Copy link

Version

Microsoft Windows [Version 10.0.22000.258]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.60.1

Distro Version

Ubuntu

Other Software

No response

Repro Steps

When I install "Windows Subsystem for Linux Preview" from Microsoft Store,the following problems will appear when running wsl.

$ ubuntu
The stub received bad data.

Press any key to continue...

There is no problem before "Windows Subsystem for Linux Preview" is installed,and if I uninstall it, wsl is normal again.

Expected Behavior

"Windows Subsystem for Linux Preview" and wsl that have been installed can coexist.

Actual Behavior

wsl can't start.

Diagnostic Logs

$ wsl.exe --status
Default Distribution: Ubuntu
Default Version: 1
WSL version: 0.48.2.0
Kernel version: 5.10.60.1
WSLg version: 1.0.29
Windows version: 10.0.22000.258
$ wsl -l -v
  NAME         STATE           VERSION
* Ubuntu       Stopped         2
  ArchLinux    Stopped         2
@OneBlue
Copy link
Collaborator

OneBlue commented Oct 19, 2021

/logs

@ghost
Copy link

ghost commented Oct 19, 2021

Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it.

Thank you!

@sirius-fan
Copy link
Author

wsl.etl
New folder.zip

@ghost ghost removed the needs-author-feedback label Oct 20, 2021
@benhillis
Copy link
Member

@sirius-fan - thanks for providing the trace. I do see the RPC error, but it looks like it's originating somewhere in COM. @OneBlue - looks like we may have to get some more COM tracing to see what is going wrong with this RPC interface.

@sirius-fan - do other commands work? For example wsl.exe --list or wsl.exe --shutdown?

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 20, 2021

This is interesting, I can see that the VM successfully started, then the distro successfully starts, but then we fail to create a process because of this RPC error.

@sirius-fan: Couple questions:

  • Does reinstalling the app from the store help ?
  • Where do you start wsl from ? (cmd / windows terminal / ..)
  • Does wsl start if you run wsl.exe instead of calling ubuntu.exe ?

@sirius-fan
Copy link
Author

@sirius-fan - thanks for providing the trace. I do see the RPC error, but it looks like it's originating somewhere in COM. @OneBlue - looks like we may have to get some more COM tracing to see what is going wrong with this RPC interface.

@sirius-fan - do other commands work? For example wsl.exe --list or wsl.exe --shutdown?

no problem

$ wsl.exe --list
Windows Subsystem for Linux Distributions:
Ubuntu (Default)

@sirius-fan
Copy link
Author

This is interesting, I can see that the VM successfully started, then the distro successfully starts, but then we fail to create a process because of this RPC error.

@sirius-fan: Couple questions:

  • Does reinstalling the app from the store help ?
  • Where do you start wsl from ? (cmd / windows terminal / ..)
  • Does wsl start if you run wsl.exe instead of calling ubuntu.exe ?
  • The problem still exists after reinstalling, I tried three times.
  • windows terminal , I just tried to start wsl with cmd, the same problem appeared.
  • Nope

Additional information
I used LxRunOffline to change the installation location of the distribution, I don't know if this has any effect.

@sirius-fan
Copy link
Author

I tried to convert to wsl1

$ wsl --set-version Ubuntu 1
Conversion in progress, this may take a few minutes
The operation completed successfully.

and then started smoothly.
So the problem only appears when preparing to start wsl2.

@asqw6677
Copy link

asqw6677 commented Oct 21, 2021

Also encountered this problem. Same windows version

@benhillis
Copy link
Member

@sirius-fan or @asqw6677 - if you run wsl.exe directly (not ubunu.txt) does the shell launch?

@sirius-fan
Copy link
Author

@sirius-fan or @asqw6677 - if you run wsl.exe directly (not ubunu.txt) does the shell launch?

Nope
in terminal

$ wsl
The stub received bad data.

win+R to run wsl.exe will open the window and then crash

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 26, 2021

Thanks for the info @sirius-fan.

It looks like the issue comes from COM so we need more info to diagnose this.

Can you please take a trace with the attached profile, reproduce the issue, and share logs ?
wsl-logs-with-com.zip

Instructions (in an elevated prompt):

- wpr -start wsl-with-com.wprp -filemode
- [Reproduce the issue]
- wpr -stop logs.etl

@sirius-fan
Copy link
Author

logs

com_log.zip

@OneBlue

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 26, 2021

Thanks @sirius-fan, looking at the logs, I can see:

6827 False CombaseTraceLoggingProvider ComtraceError 0 10/25/2021 18:27:20.471 " " "code:
fileName: onecore\com\combase\ndr\ndrole\handlemarshalingndr.cpp
function: NdrExtSystemHandleUnmarshal
hresult: 0x800706f7
lineNumber: 83
message: (onecore\com\combase\ndr\ndrole\handlemarshalingndr.cpp):(NdrExtSystemHandleUnmarshal):(83) Unable to unmarshal system handle. hr:0x800706f7" 83 NdrExtSystemHandleUnmarshal 8368 21404 2 00000000-0000-0000-0000-000000000000

That's interesting because I can't reproduce this so there must be something about your machine / configuration that triggers this.

Can you share the content of HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss and %userprofile.wslconfig ?

@sirius-fan
Copy link
Author

The content of registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss]
"KernelVersion"="5.10.60.1"
"RollbackKernelVersion"="5.10.16"
"SystemDistro"="C:\\ProgramData\\Microsoft\\WSL\\system.vhd"
"GraphicsVersion"="1.0.26"
"VirtioFsClassId"="{DF380B4F-9282-46B6-AAAB-E94BDD7EC5BB}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\Capabilities]
"GraphicsSupport"=dword:00000001

I did not find a file named .wslconfig in my user profile folder, I don’t remember that I ever created or configured this file.

@Liang-Dongxing
Copy link

Liang-Dongxing commented Oct 27, 2021

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss]
"DefaultVersion"=dword:00000002
"DefaultDistribution"="{c5a61e9e-9171-4bd3-b86f-1a6716eb17c1}"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{b6d94f6d-5e19-4fea-ba14-a24c16becca5}]
"State"=dword:00000001
"DistributionName"="docker-desktop"
"Version"=dword:00000002
"BasePath"="\\\\?\\C:\\Users\\Liang\\AppData\\Local\\Docker\\wsl\\distro"
"Flags"=dword:0000000f
"DefaultUid"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{bcb2b885-aed8-403a-a43e-95e2ffce97a9}]
"State"=dword:00000001
"DistributionName"="docker-desktop-data"
"Version"=dword:00000002
"BasePath"="\\\\?\\C:\\Users\\Liang\\AppData\\Local\\Docker\\wsl\\data"
"Flags"=dword:0000000f
"DefaultUid"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{c5a61e9e-9171-4bd3-b86f-1a6716eb17c1}]
"State"=dword:00000001
"DistributionName"="Ubuntu"
"Version"=dword:00000002
"BasePath"="C:\\Users\\Liang\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState"
"Flags"=dword:0000000f
"DefaultUid"=dword:000003e8
"PackageFamilyName"="CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc"

Mine is like this
%userprofile.wslconfig There is no such configuration file

@Liang-Dongxing
Copy link

My win11 system was also re-made on October 23

@Lastro10
Copy link

Lastro10 commented Oct 27, 2021 via email

@Liang-Dongxing
Copy link

Is it the problem caused by Windows Subsystem for Linux Preview
I re-installed it once again according to the method here, this time I did not install Windows Subsystem for Linux Preview
image
image

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 28, 2021

The content of registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss]
"KernelVersion"="5.10.60.1"
"RollbackKernelVersion"="5.10.16"
"SystemDistro"="C:\\ProgramData\\Microsoft\\WSL\\system.vhd"
"GraphicsVersion"="1.0.26"
"VirtioFsClassId"="{DF380B4F-9282-46B6-AAAB-E94BDD7EC5BB}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\Capabilities]
"GraphicsSupport"=dword:00000001

I did not find a file named .wslconfig in my user profile folder, I don’t remember that I ever created or configured this file.

@sirius-fan: This is the content of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss, can you share HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss as well ?

@sirius-fan
Copy link
Author

sorry,I misread it. @OneBlue

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss]
"DefaultDistribution"="{317caa60-eb7e-422c-b447-244af6ccf345}"
"DefaultVersion"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{128371B5-CB6C-42AC-A9E7-02640FB949D0}]
"DistributionName"="ArchLinux"
"BasePath"="E:\\Linux\\ArchLinux"
"State"=dword:00000001
"Version"=dword:00000002
"DefaultEnvironment"=hex(7):48,00,4f,00,53,00,54,00,54,00,59,00,50,00,45,00,3d,\
  00,78,00,38,00,36,00,5f,00,36,00,34,00,00,00,4c,00,41,00,4e,00,47,00,3d,00,\
  65,00,6e,00,5f,00,55,00,53,00,2e,00,55,00,54,00,46,00,2d,00,38,00,00,00,50,\
  00,41,00,54,00,48,00,3d,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,\
  61,00,6c,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,\
  00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,\
  73,00,72,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,\
  00,62,00,69,00,6e,00,3a,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,62,00,\
  69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,00,67,00,61,00,6d,00,65,00,73,\
  00,3a,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,\
  67,00,61,00,6d,00,65,00,73,00,00,00,54,00,45,00,52,00,4d,00,3d,00,78,00,74,\
  00,65,00,72,00,6d,00,2d,00,32,00,35,00,36,00,63,00,6f,00,6c,00,6f,00,72,00,\
  00,00,00,00
"DefaultUid"=dword:000003e8
"KernelCommandLine"="BOOT_IMAGE=/kernel init=/init ro"
"Flags"=dword:0000000f

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{317caa60-eb7e-422c-b447-244af6ccf345}]
"State"=dword:00000001
"DistributionName"="Ubuntu"
"Version"=dword:00000001
"BasePath"="E:\\Linux\\Ubuntu"
"Flags"=dword:0000000f
"DefaultUid"=dword:000003e8
"PackageFamilyName"="CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc"
"KernelCommandLine"="BOOT_IMAGE=/kernel init=/init"
"DefaultEnvironment"=hex(7):48,00,4f,00,53,00,54,00,54,00,59,00,50,00,45,00,3d,\
  00,78,00,38,00,36,00,5f,00,36,00,34,00,00,00,4c,00,41,00,4e,00,47,00,3d,00,\
  65,00,6e,00,5f,00,55,00,53,00,2e,00,55,00,54,00,46,00,2d,00,38,00,00,00,50,\
  00,41,00,54,00,48,00,3d,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,\
  61,00,6c,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,\
  00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,\
  73,00,72,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,\
  00,62,00,69,00,6e,00,3a,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,62,00,\
  69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,00,67,00,61,00,6d,00,65,00,73,\
  00,3a,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,\
  67,00,61,00,6d,00,65,00,73,00,00,00,54,00,45,00,52,00,4d,00,3d,00,78,00,74,\
  00,65,00,72,00,6d,00,2d,00,32,00,35,00,36,00,63,00,6f,00,6c,00,6f,00,72,00,\
  00,00,00,00

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 28, 2021

Thanks @sirius-fan.

Going down the rabbit hole, this error could be caused by a missing entry in winsock's protocol catalog.

Can you please share the content of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2 ?

@Liang-Dongxing
Copy link

System.InvalidOperationException:
Failed to set version to docker-desktop: exit code: -1
 stdout: �S���v�[a�{|�W
N/e�c�\Ջ�v�d\O�0
stderr: 
   在 Docker.ApiServices.WSL2.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) 位置 C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\WSL2\WslCommand.cs:行号 146
   在 Docker.Engines.WSL2.WSL2Provisioning.<ProvisionAsync>d__8.MoveNext() 位置 C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\WSL2Provisioning.cs:行号 81
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Docker.Engines.WSL2.LinuxWSL2Engine.<DoStartAsync>d__29.MoveNext() 位置 C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\LinuxWSL2Engine.cs:行号 194
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Docker.ApiServices.StateMachines.TaskExtensions.<WrapAsyncInCancellationException>d__0.MoveNext() 位置 C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\TaskExtensions.cs:行号 29
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() 位置 C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:行号 67
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() 位置 C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:行号 92

This is the preservation of docker don't know if it helps

@Liang-Dongxing
Copy link

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss]
"KernelVersion"="5.10.16"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DiskMounts]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DiskMounts\S-1-5-21-527366474-2286280436-2021602200-1001]

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss]
"DefaultVersion"=dword:00000002
"DefaultDistribution"="{24c96e3f-e41a-470d-ad06-d17e41449d73}"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{24c96e3f-e41a-470d-ad06-d17e41449d73}]
"State"=dword:00000001
"DistributionName"="Ubuntu"
"Version"=dword:00000002
"BasePath"="C:\\Users\\Liang\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState"
"Flags"=dword:0000000f
"DefaultUid"=dword:000003e8
"PackageFamilyName"="CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{5515b1ef-6c61-4c79-9128-5f20a9d21af4}]
"State"=dword:00000001
"DistributionName"="docker-desktop"
"Version"=dword:00000002
"BasePath"="\\\\?\\C:\\Users\\Liang\\AppData\\Local\\Docker\\wsl\\distro"
"Flags"=dword:0000000f
"DefaultUid"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{bcb2b885-aed8-403a-a43e-95e2ffce97a9}]
"State"=dword:00000001
"DistributionName"="docker-desktop-data"
"Version"=dword:00000002
"BasePath"="\\\\?\\C:\\Users\\Liang\\AppData\\Local\\Docker\\wsl\\data"
"Flags"=dword:0000000f
"DefaultUid"=dword:00000000


@sirius-fan
Copy link
Author

@OneBlue
You said Winsock reminds me.
I think I already know where the problem is,
This question originated from #4177
This is why this problem only appears for non-English speaking users, because we need proxy.🥲

Cause of problem

I used Nolsp.exe to solve the issue #4177 ,and about Nolsp.exe see #4177 (comment)
This issue may have re-triggered when I installed "Windows Subsystem for Linux Preview" from Microsoft Store.

The solution

Open an administrative command prompt or powershell,run

netsh winsock reset

For me, this has solved the problem and it still works after restarting the system,If it is only temporarily effective for other computers with this problem, recommended to try Nolsp.exe.
I can't reproduce this problem now.

@sirius-fan
Copy link
Author

sirius-fan commented Oct 29, 2021

@OneBlue
Registry files before and after solving the problem.
I don't know if it's useful
sock.zip

My problem is solved,thanks for your help. 😁

@xsm1997
Copy link

xsm1997 commented May 11, 2022

Hello, I can reproduce the issue in Windows 11 insider beta (22616.1) using Windows Subsystem for Linux Preview.
When I uninstall wsl preview and use Nolsp.exe, things run normally.
But after I run wsl --update and update to the latest wsl preview, it shows 'The stub received bad data' when starting wsl.
I cannot use the winsock reset method because my proxy software (ProxyCap) will stop working after doing that, and ProxyCap does not offer an update.
Can you try to solve the issue in Microsoft's side?

@OneBlue
Copy link
Collaborator

OneBlue commented May 11, 2022

Thanks for reporting this @xsm1997.

Can you try following these instructions but instead of calling NoLsp.exe for C:\windows\system32\wsl.exe, can you try calling it for store wsl.exe instead ?

For the latest version of WSL that should be C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemforLinux_0.58.3.0_x64__8wekyb3d8bbwe\wsl.exe (adjust the path to match the version of WSL you have installed)

@xsm1997
Copy link

xsm1997 commented May 12, 2022

@OneBlue I managed to get it working.

I need to call NoLsp.exe with wslservice.exe in the WindowsStore wsl2 folder additionally along with the wsl.exe.
After a reboot, wsl2 works normally.

Thanks!

@OneBlue
Copy link
Collaborator

OneBlue commented May 12, 2022

Awesome, thanks for the update @xsm1997.
Closing.

@hackern0v1c3
Copy link

@OneBlue I managed to get it working.

I need to call NoLsp.exe with wslservice.exe in the WindowsStore wsl2 folder additionally along with the wsl.exe. After a reboot, wsl2 works normally.

Thanks!

This only works for me temporarily. Every time WSL updates via the store I need to run the same NoLsp command again. Are there plans for a fix?

@yuxi-liu-wired
Copy link

How I managed to solve the problem:

> cd "C:\Program Files\WindowsApps\"

Search for some folder that looks like "MicrosoftCorporationII.WindowsSubsystemForLinux ... x64 ...". For me, it was "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.0.0_x64__8wekyb3d8bbwe"

Go in and list its files. It should contain "wsl.exe" and "wslservice.exe".

Download https://web.archive.org/web/20220728095911/http://www.proxifier.com/tmp/Test20200228/NoLsp.exe

Open a windows terminal with admin priviledge.

Kill WSL with
> taskkill -IM "wslservice.exe" /F

Run NoLsp.exe on both "wsl.exe" and "wslservice.exe". For me, it was like
> .\NoLsp.exe "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.0.0_x64__8wekyb3d8bbwe\wsl.exe"

> .\NoLsp.exe "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.0.0_x64__8wekyb3d8bbwe\wslservice.exe"

@hackern0v1c3
Copy link

hackern0v1c3 commented Dec 6, 2022

How I managed to solve the problem:

> cd "C:\Program Files\WindowsApps\"

Search for some folder that looks like "MicrosoftCorporationII.WindowsSubsystemForLinux ... x64 ...". For me, it was "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.0.0_x64__8wekyb3d8bbwe"

Go in and list its files. It should contain "wsl.exe" and "wslservice.exe".

Download https://web.archive.org/web/20220728095911/http://www.proxifier.com/tmp/Test20200228/NoLsp.exe

Open a windows terminal with admin priviledge.

Kill WSL with
> taskkill -IM "wslservice.exe" /F

Run NoLsp.exe on both "wsl.exe" and "wslservice.exe". For me, it was like
> .\NoLsp.exe "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.0.0_x64__8wekyb3d8bbwe\wsl.exe"

> .\NoLsp.exe "C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.0.0_x64__8wekyb3d8bbwe\wslservice.exe"

Yes that's how I fix it too. But then the next time WSL updates the paths change and I need to do it all over again.

@VincentFF
Copy link

@OneBlue You said Winsock reminds me. I think I already know where the problem is, This question originated from #4177 This is why this problem only appears for non-English speaking users, because we need proxy.🥲

Cause of problem

I used Nolsp.exe to solve the issue #4177 ,and about Nolsp.exe see #4177 (comment) This issue may have re-triggered when I installed "Windows Subsystem for Linux Preview" from Microsoft Store.

The solution

Open an administrative command prompt or powershell,run

netsh winsock reset

For me, this has solved the problem and it still works after restarting the system,If it is only temporarily effective for other computers with this problem, recommended to try Nolsp.exe. I can't reproduce this problem now.

Thanks. This solved my problem.

@farzadso
Copy link

@OneBlue You said Winsock reminds me. I think I already know where the problem is, This question originated from #4177 This is why this problem only appears for non-English speaking users, because we need proxy.🥲

Cause of problem

I used Nolsp.exe to solve the issue #4177 ,and about Nolsp.exe see #4177 (comment) This issue may have re-triggered when I installed "Windows Subsystem for Linux Preview" from Microsoft Store.

The solution

Open an administrative command prompt or powershell,run

netsh winsock reset

For me, this has solved the problem and it still works after restarting the system,If it is only temporarily effective for other computers with this problem, recommended to try Nolsp.exe. I can't reproduce this problem now.

If anyone is here because Proxifier automatically configured Winsock for you, this is the solution that reverts the changes that Proxifier made.

@2catycm
Copy link

2catycm commented Jan 21, 2023

This problem still exists

@2catycm
Copy link

2catycm commented Jan 21, 2023

Well, while the problem still exists, the solution works. I recently add an "Easy Connect VPN",and may be its port conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests