WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Error code: Wsl/Service/E_UNEXPECTED

Open mdbooth opened this issue 1 year ago • 19 comments

Windows Version

Microsoft Windows [Version 10.0.26100.4851]

WSL Version

WSL version: 2.5.10.0 Kernel version: 6.6.87.2-1 WSLg version: 1.0.66 MSRDC version: 1.2.6074 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26100.4851

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

6.6.87.2-1

Distro Version

Fedora 42

Other Software

So many things!

Repro Steps

Let the machine go to sleep.

Expected Behavior

WSL works when it comes back.

Actual Behavior

PS C:\Users\mbooth> wsl Catastrophic failure Error code: Wsl/Service/E_UNEXPECTED

Diagnostic Logs

I won't include any here, because this has already been done in https://github.com/microsoft/WSL/issues/13159, which is the same issue I am hitting. Unfortunately that issue is closed, so I suspect it has fallen off the radar. I'm filing a new issue in the hope that it might re-trigger the triage process, but really the best thing to do would be to close this and re-open #13159.

This happens every time, and it's a major blocker. The only solution I have found it to shutdown WSL and restart it, which is highly disruptive to my workflow.

mdbooth avatar Aug 21 '25 09:08 mdbooth

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How 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 script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions in Collect WSL logs for networking issues

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

See Collect WSL logs (recommended method).

If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

github-actions[bot] avatar Aug 21 '25 10:08 github-actions[bot]

WslLogs-2025-06-20_15-12-19.zip

I didn't bother to collect new logs. These are just the logs from #13159. I'm sure they're the same, with the same root cause. I'm just trying to re-trigger triage of this issue.

mdbooth avatar Aug 21 '25 10:08 mdbooth

Diagnostic information
.wslconfig found
Detected appx version: 2.5.9.0
Detected user visible error: Wsl/Service/E_UNEXPECTED

github-actions[bot] avatar Aug 21 '25 10:08 github-actions[bot]

See also https://github.com/microsoft/WSL/issues/9490, which contains a large number of comments from other users hitting the same issue. Ideally you should close this issue and re-open one of the other issues.

mdbooth avatar Aug 21 '25 10:08 mdbooth

The questions asked in #13159 was if the issue is resolved by shutting down WSL. The issue is resolved by shutting down WSL, but as noted above this is highly disruptive.

mdbooth avatar Aug 21 '25 10:08 mdbooth

I started experiencing this issue today, even though everything was working fine yesterday. WSL keeps getting stuck, and while running wsl --shutdown temporarily resolves the problem, the connection timeout returns after about 10–15 minutes. Could you suggest any other possible fixes?

NEWbie0709 avatar Aug 21 '25 11:08 NEWbie0709

Happens here as well. Exact same versions as OP, with Windows version 10.0.22631.5768. Going to check if it's possible to rollback to a previous version.

MoshiBin avatar Aug 21 '25 12:08 MoshiBin

@MoshiBin did u manage to fix this issue?

NEWbie0709 avatar Aug 22 '25 09:08 NEWbie0709

I'm experiencing the same problem with Ubuntu 24.04. Any heavy load in WSL causes this crash. Opening another terminal window also often causes the crash.

jolaf avatar Aug 22 '25 09:08 jolaf

I installed an older version of WSL and the issue went away.

MoshiBin avatar Aug 22 '25 12:08 MoshiBin

I installed an older version of WSL and the issue went away.

Can it be done without loosing data and settings in WSL files?

jolaf avatar Aug 22 '25 12:08 jolaf

I installed an older version of WSL and the issue went away.

Can it be done without loosing data and settings in WSL files?

I didn’t lose anything. Just shutdown the vm and installed the old msi over what I already had.

MoshiBin avatar Aug 22 '25 12:08 MoshiBin

Same error after Windows update, I am attaching additional logs

WSL: 2.5.10.0
kernel: 6.6.87.2-1
WSLg: 1.0.66
MSRDC: 1.2.6074
Direct3D: 1.611.1-81528511
DXCore: 10.0.26100.1-240331-1435.ge-release
Windows: 10.0.22631.5768

Updated components:

  • 2025-07 Cumulative update .NET Framework 3.5 and 4.8.1 for Windows 11, version 23H2 for x64-bit systems (KB5056580)
  • Cumulative update for Windows 11 Version 23H2 for systems based on x64 processors, 2025 08 (KB5063875)

WslLogs-2025-08-25_15-19-52.zip

atlz253 avatar Aug 25 '25 12:08 atlz253

Also encountered this issue launching github-desktop wslg application from a ubuntu image, attaching logs below

Image
WSL version: 2.5.10.0
Kernel version: 6.6.87.2-1
WSLg version: 1.0.66
MSRDC version: 1.2.6074
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.4946

WslLogs-2025-09-16_10-44-21.zip

WslLogs-2025-09-16_10-50-50.zip

AirChandler avatar Sep 16 '25 09:09 AirChandler

Turning on safeMode I could finally get back into a distro that's been crashing for a while, HTH. https://learn.microsoft.com/en-us/windows/wsl/wsl-config#main-wsl-settings

aadnehovda avatar Sep 27 '25 09:09 aadnehovda

Thank you for reporting this @mdbooth. Can you please collect logs from your repro ? it's easier to triage if the logs match your machine.

/logs

OneBlue avatar Oct 07 '25 22:10 OneBlue

@OneBlue could you just reopen the issue the logs I posted came from? This doesn't need a separate issue: it's identical to a closed issue. All I'm really asking for is that you investigate the original issue. You already have logs.

Unless you're telling me that the logs don't contain the reproducer? Have you looked?

mdbooth avatar Oct 08 '25 07:10 mdbooth

@mdbooth: #13159 got closed because the author didn't answer my followup question, which was based on the logs that were shared.

That specific error is a catch-all, so it can be the symptom of multiple different root causes.

Please collect logs from your repro so I can see if the root cause is the same or not.

/logs

OneBlue avatar Oct 08 '25 09:10 OneBlue

I installed an older version of WSL and the issue went away.

Can you recommend a version without this bug? Thanks! :)

Astricaelus avatar Dec 30 '25 14:12 Astricaelus