Skip to content

Error code: Wsl/Service/E_UNEXPECTED #14014

Closed

Description

Windows Version

Microsoft Windows [Version 10.0.26200.7462]

WSL Version

WSL version: 2.6.1.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 6.6.87.2-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

Work on C++ code in WSL for a while, maybe let the computer sleep and/or hibernate, while leaving a terminal open as well as an VScode-based editor connected to the WSL workspace.

Expected Behavior

Everything should continue working

Actual Behavior

Catastrophic failure
Error code: Wsl/Service/E_UNEXPECTED

This has happened three times over the past week. It can be fixed with a wsl --shutdown, but it's quite annoying that my editor session is and I have to close all of my terminals in my multiplexer to reboot wsl.

Probably a dupe of #13159.

Diagnostic Logs

Both of these logs say something about protocol errors in windows performance analyzer:

  • Protocol error: Received message size: 16, type: 3, sequence: 256. Expected type: 3, expected sequence: 257, channel: WslCorePort
  • Protocol error: Received message size: 16, type: 3, sequence: 10. Expected type: 3, expected sequence: 11, channel: WslCorePort

WslLogs-2026-01-03_01-12-48.zip
WslLogs-2025-12-27_23-35-43.zip

Activity

  1. github-actions commented on Jan 3, 2026

    @github-actions
    Contributor
    Diagnostic information
    Multiple log files found, using: https://github.com/user-attachments/files/24413260/WslLogs-2026-01-03_01-12-48.zip
    .wslconfig found
    Detected appx version: 2.6.1.0
    Detected user visible error: Wsl/Service/E_UNEXPECTED
    
  2. mste-milestonedk commented on Jan 12, 2026

    @mste-milestonedk

    I have just experienced a similar issue.
    WSL version: 2.6.3.0
    VSCode 1.108.0

  3. chipshadd commented on Jan 14, 2026

    @chipshadd

    I have encountered this error many times. I have a similar workflow where I have VScode windows open with terminals and I put my computer to sleep. Every once in a while, VScode is no longer able to connect to WSL and I am unable to open up a direct terminal to the WSL distro, with this same exact error.

    This happens across 3 different computers that I use WSL on. A full restart, or a wsl --shutdown always fixes it, but I lose all unsaved progress and contexts of work that was ongoing in VSCode.

    WslLogs-2026-01-14_10-33-17.zip

  4. chemwolf6922 commented on Nov 17, 2026

    @chemwolf6922
    Contributor

    Fixed in 2.7.3 with #14455.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions