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

WSL2 boot freeze - VspDeviceWriteErrorLog #10873

Closed
1 of 2 tasks
hellicopterpd opened this issue Dec 5, 2023 · 6 comments
Closed
1 of 2 tasks

WSL2 boot freeze - VspDeviceWriteErrorLog #10873

hellicopterpd opened this issue Dec 5, 2023 · 6 comments

Comments

@hellicopterpd
Copy link

hellicopterpd commented Dec 5, 2023

Windows Version

Microsoft Windows [Version 10.0.22631.2792]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

Ubuntu

Other Software

Similar to issue #9942, the ext4.vhdx appears to have been corrupted while running a high CPU and disk workload. The distro froze and will no longer boot after a full system restart.

Debug:
Collecting logs from failed boot
Windows Performance Analyzer shows a flood of tthe following error on the host. Full logs attached further down.

Event Name: Microsoft-Windows-Hyper-V-StorageVSP//
Source: VspDeviceWriteErrorLog
Message: Log status 0xC0000001: VspDeviceWriteErrorLog: AnsiDeviceName = C:\Users\Redacted\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\ext4.vhdx, Initiator = 2, SCSIOP = 0x2A, SrbStatus = 0x04

Attempt to mount and recover the ext4.vhdx image from another wsl installation
host: wsl -d Ubuntu-22.04 --mount --bare --vhd <path>
Ubuntu-22.04:

[sudo] password for debug:
e2fsck 1.46.5 (30-Dec-2021)
/dev/sdd: recovering journal

and fsck hangs. Looking at dmesg shows a flood of errors:

[  415.127466] hv_storvsc fd1d2cbd-ce7c-535c-966b-eb5f811c95f0: tag#674 cmd 0x2a status: scsi 0x2 srb 0x4 hv 0xc0000001

Repro Steps

N/A

Expected Behavior

Succesfully boot, or fail gracefully at the very least (timeout for example)

Actual Behavior

wsl.exe cmd indefinitely hangs until system restarted.

Diagnostic Logs

WslLogs-2023-12-05_16-41-47.zip

Copy link

github-actions bot commented Dec 5, 2023

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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ghost
Copy link

ghost commented Dec 5, 2023

Howdy! Can you take the /logs and traces again for us? I'm not sure what's going on but we're not able to open the *.etl log file in the logs you've attached.

@ghost
Copy link

ghost commented Dec 5, 2023

I had a look at the raw data in the etl file, saw redacted. Did you perform a blind string replacement on all the data? I don't know the data format well for etl, if it has checksums. But if the replacement was a different length than the original string I won't at all be surprised that it didn't work for us when reading it.

@hellicopterpd
Copy link
Author

I had a look at the raw data in the etl file, saw redacted. Did you perform a blind string replacement on all the data?

Ah yeah, that's indeed what happened. Let me reupload later today.

@hellicopterpd
Copy link
Author

Logs again
WslLogs-2023-12-06_14-09-45.zip

Thankfully I've been able to recover the system image with the following command: wsl --import new_distro .\new_distro\ <path to ext4.vhdx> --vhd

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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

1 participant