WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Wsl/ERROR_NOT_FOUND after installing Windows updates

Open target-san opened this issue 3 years ago • 42 comments

Windows Version

Microsoft Windows [Version 10.0.19045.3693]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

N/A

Distro Version

N/A

Other Software

No response

Repro Steps

Install Windows updates (possibly KB5032189)

Expected Behavior

Wsl works

Actual Behavior

Error:

Element not found.
Error code: Wsl/ERROR_NOT_FOUND

Diagnostic Logs

WslLogs-2023-11-17_09-50-38.zip

target-san avatar Nov 17 '23 07:11 target-san

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Nov 17 '23 07:11 github-actions[bot]

Try this https://github.com/microsoft/WSL/issues/10764#issuecomment-1815485695

CHADT10 avatar Nov 17 '23 09:11 CHADT10

Didn't work. I erased service record, uninstalled WSL components from installer. Now I cannot even install it, installer simply closes immediately. WSL CLI returns same error.

target-san avatar Nov 17 '23 14:11 target-san

wsl --install ends with 0x80070490 Is there some proper way to clean WSL completely and then reinstall from scratch? Or some comprehensive registry of WSL errors?

target-san avatar Nov 17 '23 14:11 target-san

After wsl --update and installing required kernel update MSI, I'm down to square one, Wsl/ERROR_NOT_FOUND

target-san avatar Nov 17 '23 14:11 target-san

@target-san: I'm not seeing anything in the logs you shared.

Can you try to manually install the latest release and see if that helps ?

Please share /logs again if a failed startup if that doesn't help

OneBlue avatar Nov 17 '23 23:11 OneBlue

@OneBlue wsl.2.0.9.0.x64.log.zip Well, according to log installation succeeded 🤷 As of logs, I'm getting issue with importing AppX module . Was present before reinstall, just didn't notice. Need to solve before I get real logs. Honestly it's extremely frustrating how MS products tend to hide error information at all cost.

target-san avatar Nov 18 '23 05:11 target-san

Finally logs: WslLogs-2023-11-18_07-54-11.zip

target-san avatar Nov 18 '23 05:11 target-san

@target-san

I have just run into this issue myself. Spent half a day trying to fix it. Nothing has worked except for:

  • reinstall of the windows components: virtual machines support & wsl support
  • uninstall all the wsl updates
  • wsl --install --no-distribution
  • now wsl --status at least produces the report, but requires an update
  • run wsl --update --inbox (only the kernel)

Now you should be able to run your containers, at least. But any update to wsl (up to 2.0.9) will break it again, unfortunately.

** I guess the windows components reinstallation step is excessive and can be skipped. Try to just uninstall all the wsl updates and update the kernel (--inbox) to make it work.

osavoskin avatar Nov 18 '23 11:11 osavoskin

Launching WSL from a terminal with administrator privileges works for me. https://github.com/microsoft/WSL/issues/10788#issuecomment-1817734924

pahar0 avatar Nov 19 '23 03:11 pahar0

@pahar0 Yup, thanks. Works for me too. At least for now. Though it's interesting what causes this requirement out of thin air.

target-san avatar Nov 19 '23 13:11 target-san

Launching WSL from a terminal with administrator privileges works for me. #10788 (comment)

Hm, does not work for me, for some reason..

osavoskin avatar Nov 19 '23 14:11 osavoskin

Launching WSL from a terminal with admin privs it's a workaround while we wait for a proper solution. We should be able to run it as a regular user. @osavoskin interesting... could you try this https://github.com/microsoft/WSL/issues/10793#issuecomment-1817780109 ? I know the problem is not related but this could be another possible solution.

pahar0 avatar Nov 19 '23 14:11 pahar0

@pahar0 Doesn’t help either. I have already tried everything. The only thing that worked is uninstalling all the updates. It allows me to work, at least. But the cli becomes unresponsive when the —shutdown command executed. So, the UX is awful

osavoskin avatar Nov 19 '23 16:11 osavoskin

Same issue, but I have also noticed that wslg.exe is missing and I can't seem to get it back no matter what I do

DemonPenguin avatar Nov 20 '23 12:11 DemonPenguin

Same issue, can only run wsl with admin rights, everything else fails. Have to manually run it on admin. Docker Desktop fails, but when launched with admin rights, succeeds aswell. For now I can work like this but it needs to be fixed..

baiciluigi avatar Nov 20 '23 13:11 baiciluigi

Yup running with admin rights is the only thing that works atm.

I wonder if this is related to the patch this latest update pushed regarding an Elevation of Privilege vulnerability. Cause i've had similar issues with other tools like powertools or autohotkey

bsatts avatar Nov 20 '23 15:11 bsatts

Thanks everyone for reporting this.

To give some clarity: there are two issues with WSL 2.0.9:

  1. Wsl/CallMSI/E_ABORT

We've identified the issue and working on a fix. You can workaround it by enabling the WSL optional component and rebooting

  1. Wsl/ERROR_NOT_FOUND

We've not been able to reproduce the issue yet. We're investigating but to root cause it we'd need COM logs.

If you can reproduce the issue, please follow these instructions to collect logs:

  • Download and extract ComTrace.wprp
  • Open an elevated command prompt
  • Run: wpr -start ComTrace.wprp -filemode
  • Reproduce the issue (example: wsl.echo echo test)
  • Run wpr -stop logs.etl
  • Share logs.etl on this issue

OneBlue avatar Nov 20 '23 21:11 OneBlue

@OneBlue The problem is wsl works when the command is launched from an elevated terminal. That is the current workaround for the issue. Can we get the trace from a non-elevated terminal?

bsatts avatar Nov 20 '23 22:11 bsatts

@OneBlue The problem is wsl works when the command is launched from an elevated terminal. That is the current workaround for the issue. Can we get the trace from a non-elevated terminal?

@bsatts: Yes you can start the trace from an elevated terminal and then reproduce the issue from another, non-elevated terminal. The log collection will capture that repro

OneBlue avatar Nov 20 '23 22:11 OneBlue