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

WslRegisterDistribution failed with error: 0x80041001 #8330

Closed
1 of 2 tasks
shadowrayTV opened this issue Apr 25, 2022 · 16 comments
Closed
1 of 2 tasks

WslRegisterDistribution failed with error: 0x80041001 #8330

shadowrayTV opened this issue Apr 25, 2022 · 16 comments

Comments

@shadowrayTV
Copy link

shadowrayTV commented Apr 25, 2022

Version

Microsoft Windows [Version 10.0.19044.1645]

WSL Version

  • WSL 1
  • WSL 2

Kernel Version

5.10.102.1

Distro Version

Was using Ubuntu for Windows, current issue happens on all distros

Other Software

WSL Update is showing the DISK1 error, tried running wsl_update_x64.msi again, said i already have a newer version running.

possible failure due interaction with / effects of RyzenAdj/RyzenController? i'm unsure about this, as the error persisted when i uninstalled RyzenController, but started happening around the time i first installed it.

Repro Steps

open any distro through it's windows app / open using command prompt or pwershell / open any app that relies on WSL functionality (eg. VS code)

Expected Behavior

WSL and distro launch like normal

Actual Behavior

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80041001
Error: 0x80041001 (null)
Press any key to continue...

Diagnostic Logs

No response

@shadowrayTV
Copy link
Author

similar to #5561

@shadowrayTV
Copy link
Author

i'm pretty sure ryzenadj has something to with it
or the fact that Riot Games' Vanguard Anti-Cheat has kernel access and keeps trying to block inpoutx64.sys everytime ryzenadj launches

@benhillis
Copy link
Member

/logs

@ghost
Copy link

ghost commented Apr 25, 2022

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!

@shadowrayTV
Copy link
Author

https://aka.ms/AAgr40p

@ghost ghost removed the needs-author-feedback label Apr 25, 2022
@shadowrayTV
Copy link
Author

shadowrayTV commented Apr 25, 2022

Core Isolation / Memory Integrity are off by the way, due to 2 incompatible drivers:

  1. LGVirHid.sys by Logitech
  2. xhunter1.sys, which is an anti-cheat of some sort

@ghost
Copy link

ghost commented May 3, 2022

I don't see any traces in the feedback. Can you record them manually?
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#record-wsl-logs-manually

@ghost ghost added the needs-author-feedback label May 3, 2022
@shadowrayTV
Copy link
Author

shadowrayTV commented May 5, 2022

I'm getting this error when running the command:

PS C:\Windows\System32> Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
>> Set-ExecutionPolicy Bypass -Scope Process -Force
>> .\collect-wsl-logs.ps1

    Directory: C:\Windows\System32

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          06-05-2022    02:09                WslLogs-2022-05-06_02-09-22
collect-wsl-logs.ps1:
Line |
   3 |  .\collect-wsl-logs.ps1
     |  ~~~~~~~~~~~~~~~~~~~~~~
     | The 'get-appxpackage' command was found in the module 'Appx', but the module could not be loaded. For more information, run 'Import-Module Appx'.

PS C:\Windows\System32> Import-Module Appx
Import-Module: Operation is not supported on this platform. (0x80131539)
PS C:\Windows\System32>

@ghost ghost removed the needs-author-feedback label May 5, 2022
@ghost
Copy link

ghost commented May 6, 2022

Sorry about that. Script is new and might need some ironing out. Can you have another go at it? Thanks.
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method

@ghost ghost added the needs-author-feedback label May 6, 2022
@shadowrayTV
Copy link
Author

@ghost ghost removed the needs-author-feedback label May 8, 2022
@shadowrayTV
Copy link
Author

side note: still got the appx error, but it collected the logs this time.

PS C:\Windows\System32> Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
>> Set-ExecutionPolicy Bypass -Scope Process -Force
>> .\collect-wsl-logs.ps1

    Directory: C:\Windows\System32

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          08-05-2022    06:31                WslLogs-2022-05-08_06-31-14
get-appxpackage: C:\Windows\System32\collect-wsl-logs.ps1:34
Line |
  34 |  get-appxpackage MicrosoftCorporationII.WindowsSubsystemforLinux > $fo …
     |  ~~~~~~~~~~~~~~~
     | The 'get-appxpackage' command was found in the module 'Appx', but the module could not be loaded. For
     | more information, run 'Import-Module Appx'.

Log collection is running. Please reproduce the problem and press any key to save the logs.
Saving logs...
Logs saved in: C:\Windows\System32\WslLogs-2022-05-08_06-31-14.zip. Please attach that file to the GitHub issue.

@spookyuser
Copy link

side note: still got the appx error, but it collected the logs this time.

PS C:\Windows\System32> Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
>> Set-ExecutionPolicy Bypass -Scope Process -Force
>> .\collect-wsl-logs.ps1

    Directory: C:\Windows\System32

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          08-05-2022    06:31                WslLogs-2022-05-08_06-31-14
get-appxpackage: C:\Windows\System32\collect-wsl-logs.ps1:34
Line |
  34 |  get-appxpackage MicrosoftCorporationII.WindowsSubsystemforLinux > $fo …
     |  ~~~~~~~~~~~~~~~
     | The 'get-appxpackage' command was found in the module 'Appx', but the module could not be loaded. For
     | more information, run 'Import-Module Appx'.

Log collection is running. Please reproduce the problem and press any key to save the logs.
Saving logs...
Logs saved in: C:\Windows\System32\WslLogs-2022-05-08_06-31-14.zip. Please attach that file to the GitHub issue.

Not sure if this helps but I had the same hex error as you and what ended up fixing it was going through these steps to uninstall I think a failed(?) update in progress to wsl then it just started working again. I also uninstalled and reinstalled wsl before trying this but that didn't seem to make any difference.

@shadowrayTV
Copy link
Author

thank you. this worked. all my old files are gone but i don't think i lost anything important

@spookyuser
Copy link

thank you. this worked. all my old files are gone but i don't think i lost anything important

Sorry didn't realize it had that effect 💀

@ghost
Copy link

ghost commented Jul 21, 2022

Not sure if this helps but I had the same hex error as you and what ended up fixing it was going through these steps to uninstall I think a failed(?) update in progress to wsl then it just started working again. I also uninstalled and reinstalled wsl before trying this but that didn't seem to make any difference.

This absolutely helped me, thanks!

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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

3 participants