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 only starts when run elevated #11460

Closed
1 of 2 tasks
jfreuter-finnet opened this issue Apr 12, 2024 · 7 comments
Closed
1 of 2 tasks

Wsl only starts when run elevated #11460

jfreuter-finnet opened this issue Apr 12, 2024 · 7 comments
Assignees

Comments

@jfreuter-finnet
Copy link

jfreuter-finnet commented Apr 12, 2024

Windows Version

Microsoft Windows [Version 10.0.22621.3447]

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-2

Distro Version

Ubuntu

Other Software

No response

Repro Steps

On a non-elevated command prompt:

  1. Install / Upgrade wsl using wsl --update
  2. Install Ubuntu using wsl --install Ubuntu
    -or-
  3. If Ubuntu is already installed, start Ubuntu using just wsl

Expected Behavior

Ubuntu installs and starts a shell with my user logged in.

Actual Behavior

The install hangs with at "This may take a few minutes", but never finishes. When I just run wsl I get no output at all. When I run wsl from an elevated command prompt, it usually starts fine and I get a linux shell as root. Sometimes (cannot reliably reproduce this) this also hangs.

Wsl used to work fine when I ran the version bundled with Windows, but the Microsoft Store version never worked on this machine.

Diagnostic Logs

Logs from a hanging install process of Ubuntu

WslLogs-2024-04-12_16-33-10.zip
WslLogs-2024-04-12_16-33-10-kmesg.txt

Copy link

Diagnostic information
.wslconfig found
Detected appx version: 2.1.5.0

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 12, 2024

Thank you @JFReuter-Fin.

I'm not seeing anything abnormal in the logs. Out of curiosity, does this happen let's say with debian as well ?

Does wsl --install -d debian get stuck as well ?

If so, could you capture /dumps of when everything seems to be stuck ?

@jfreuter-finnet
Copy link
Author

jfreuter-finnet commented Apr 15, 2024

Hi @OneBlue, thank you for the quick response.

I tried to install Debian, unfortunally the issue occurs there as well. As additional background, my initial issue was Docker Desktop not working, with the same symptoms. My investigation lead me to noticing that WSL as a whole does not work properly on this machine.

I have collected dumps, but they are to large to attach here and I am blocked by company policy from sending them via email. I am trying to find a solution to that. Is there a way I can upload the zip so you can access it?
Update: Is sent an email with a sharepoint link. You should be able to access the dumps from there. Please let me know if that works.

Thank you!

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 15, 2024

Thank you @JFReuter-Fin. If the dumps are too big for email you can use GDrive / Onedrive instead.

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 15, 2024

Thank you @JFReuter-Fin. We received the dumps.

This is interesting, WSL is stuck trying to access the drive "Z:\", what type of drive is it ? Could it be some sort of very slow network drive maybe ?

@OneBlue OneBlue self-assigned this Apr 15, 2024
@jfreuter-finnet
Copy link
Author

Thanks, @OneBlue Z: was indeed a broken network drive (mapping to some Azure file share) Both Explorer and Powershell would lock up when trying to access the drive, so the error was not isolated to WSLService.

I have removed the drive mapping and wsl works now. This issue is resolved from my perspective. If you need anything else from me, I'd be happy to help.

Thank you very much, this has been an amazing support experience.

@benhillis
Copy link
Member

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