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

WSL error without UAC mode #10757

Closed
1 of 2 tasks
Zetanova opened this issue Nov 15, 2023 · 10 comments
Closed
1 of 2 tasks

WSL error without UAC mode #10757

Zetanova opened this issue Nov 15, 2023 · 10 comments

Comments

@Zetanova
Copy link

Windows Version

Windows version: 10.0.19045.3693

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

No response

Other Software

Docker Desktop 4.25.1

Repro Steps

execute some cli comman wsl --status or wsl in no administrative privileges (no UAC)

Expected Behavior

execution like before the windows update to 2.0.9

Actual Behavior

wsl terminates install with:
Element not found.
Error code: Wsl/ERROR_NOT_FOUND

Diagnostic Logs

none, can't see any differences between UAC mode and none UAC mode in procmon
No windows events logs or collect-wsl-logs.ps1

wsl is working in UAC mode without issues.
Docker-desktop does only start in UAC mode.

Copy link

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.

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 15, 2023

/logs

@Zetanova
Copy link
Author

WslLogs-2023-11-15_21-07-39.zip

Executed commands:

$ wsl --status
Element not found.
Error code: Wsl/ERROR_NOT_FOUND
$ wsl
Element not found.
Error code: Wsl/ERROR_NOT_FOUND

@quallrum
Copy link

Same here. Windows asked to reboot for update yesterday at evening, today vscode and Docker Desktop failed to connect to WSL. Versions are the same with @Zetanova:

C:\Users\Quallrum>wsl --version
Версия WSL: 2.0.9.0
Версия ядра: 5.15.133.1-1
Версия WSLg: 1.0.59
Версия MSRDC: 1.2.4677
Версия Direct3D: 1.611.1-81528511
Версия DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Версия Windows: 10.0.19045.3693

Other WSL commands also does not work:

C:\Users\Quallrum>wsl --list --all
Элемент не найден.
Error code: Wsl/ERROR_NOT_FOUND

C:\Users\Quallrum>wsl --export ubuntu d:\ubuntu-backup.tar
Элемент не найден.
Error code: Wsl/ERROR_NOT_FOUND

C:\Users\Quallrum>wsl --shutdown
Элемент не найден.
Error code: Wsl/ERROR_NOT_FOUND

This is what Docker Desktop says:
image

Here are the logs, i tried to open Windows Terminal with Ubuntu profile

WslLogs-2023-11-16_09-59-00.zip

Hope it will be fixed ASAP becauase it blocks my work.

BTW, is there any safe way to backup distro data, reinstall wsl and restore the distro without using WSL's --export & --import options? I found that one https://superuser.com/questions/1244396/how-can-i-preserve-the-wsl-linux-environment-while-doing-a-windows-10-system-re, but its too old and may be irrelevant, though i found smth that looks like distro image (and has the size of 25.7 GB) within that path: C:\Users\Quallrum\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState

@radoslawkoziol
Copy link

radoslawkoziol commented Nov 16, 2023

Exactly the same here. Windows update, reboot and Error code: Wsl/ERROR_NOT_FOUND.
It works though when you open the terminal as an administrator. The same thing with docker, you can run it as an admin and then it boots up

@Zetanova
Copy link
Author

@quallrum open a console in UAC mode and use wsl and open docker desktop in UAC mode "Run as Administror" this solves the problem with the work pause for now.

Distros need only the vhdx disk files and can be imported in place with the --import-in-place param.

@quallrum
Copy link

@Zetanova @radoslawkoziol thanks a lot, running as admin worked for both WSL and Docker Desktop. VS Code also managed to connect to WSL and open the project when running as admin.

Regarding updates: i found that these three updates have been installed yesterday (15.11.2023):

Security update KB5032189
Servicing Stack 10.0.19041.3684
Update KB5032005

Maybe the issue is caused by them, but i was unable to check that. "Delete" option does not appear by right click on Servicing Stack, and both KB updates are installed back after deleting and rebooting. Deleting them without rebooting doesn't help, the error remains.

@Zetanova
Copy link
Author

Zetanova commented Nov 16, 2023

@quallrum wsl 2.0.9 got installed over win updates.
I already tried to install the release msi and it did NOT resolve this issue.

@quallrum
Copy link

quallrum commented Nov 23, 2023

In case anyone needs this - seem like the bug is fixed in WSL 2.0.11 - https://github.com/microsoft/WSL/releases/tag/2.0.11

P.S. I've installed that version using msi installer from the link above. In my case wsl --update was unable to find that update, probably because it is marked "pre-release". Didn't try Windows update center.

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 23, 2023

Indeed this issue if fixed with 2.0.11. Closing.

@OneBlue OneBlue closed this as completed Nov 23, 2023
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

4 participants