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

[Bug] wsl command gives no output and does nothing on Windows Server Core #9603

Closed
1 of 2 tasks
lightlike opened this issue Feb 7, 2023 · 8 comments
Closed
1 of 2 tasks

Comments

@lightlike
Copy link

lightlike commented Feb 7, 2023

Version

Microsoft Windows [Version 10.0.20348.1487]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

unable to get

Distro Version

unable to get

Other Software

Google Cloud Management Software (no idea what exactly)
Otherwise: none/fresh install

Repro Steps

  1. Create System (in this case from google cloud Build 20230111)
  2. try any wsl command in powershell or cmd. E.g.:
    • wsl --help
    • wsl --version
    • wsl --status
    • wsl --install -d Debian

Expected Behavior

wsl executes the command and at least throws an error

Actual Behavior

Wsl does absolutely nothing for a few seconds and then closes.

It does seem to execute as commands like wsl --status take a bit longer (about 11 sec) but there still is nothing in the console.

Diagnostic Logs

No response

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 7, 2023

/logs

@microsoft-github-policy-service
Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

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

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

@lightlike
Copy link
Author

The logs are below. I executed wsl --status and wsl --install -d Debian during the collection phase.

WslLogs-2023-02-08_08-13-55.zip

Further update regarding the problem.
This only seems to happen with Windows Server Core and not with normal Windows Server.
This happened over multiple different machines all setup the same way via terraform.

Normal Windows Server has problems with executing my script as System-User but that seems to have nothing to do with this problem and I will research that separately.

@573
Copy link

573 commented Feb 8, 2023

Same on my machine.

WslLogs-2023-02-08_11-25-39.zip

@lightlike lightlike changed the title [Bug] wsl command gives no output and does nothing [Bug] wsl command gives no output and does nothing on Windows Server Core Feb 8, 2023
@elsaco
Copy link

elsaco commented Feb 10, 2023

wsl.exe crashes on Windows Server Core with error 0xc0000409. Maybe is missing some module(s). This is being logged when running wsl.exe:

TimeCreated  : 2/9/2023 8:58:09 PM
ProviderName : Application Error
Id           : 1000
Message      : Faulting application name: wsl.exe, version: 10.0.20348.1311, time stamp: 0xe3e301c5
               Faulting module name: wsl.exe, version: 10.0.20348.1311, time stamp: 0xe3e301c5
               Exception code: 0xc0000409
               Fault offset: 0x000000000001440e
               Faulting process id: 0xf34
               Faulting application start time: 0x01d93d0c44fed509
               Faulting application path: C:\Windows\system32\wsl.exe
               Faulting module path: C:\Windows\system32\wsl.exe
               Report Id: d15e3435-e3fa-4f50-a1ff-0ddd1fae9278
               Faulting package full name:
               Faulting package-relative application ID:

It works fine on Widows Server 2022 + Desktop Experience:

elsaco@REDMOND:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

elsaco@REDMOND:~$ wsl.exe --version
WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.20348.1366

@ghost ghost self-assigned this Feb 15, 2023
@jalove
Copy link

jalove commented Jun 10, 2023

same. fresh install of windows server core 2022.
WslLogs-2023-06-10_19-55-34.zip

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 13, 2023

/dupe #10008

@OneBlue OneBlue closed this as completed Jun 13, 2023
@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

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

No branches or pull requests

5 participants