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 doesn't start (/HCS_E_CONNECTION_TIMEOUT) after installing Docker desktop #10546

Closed
1 of 2 tasks
rahulghangas opened this issue Sep 26, 2023 · 1 comment
Closed
1 of 2 tasks

Comments

@rahulghangas
Copy link

Windows Version

Microsoft Windows [Version 10.0.22621.2283]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Default Distribution: Ubuntu Default Version: 2

Distro Version

No response

Other Software

Docker Desktop 4.23.0

Repro Steps

N/A

Expected Behavior

Should be able to access wsl2

Actual Behavior

The operation timed out because a response was not received from the virtual machine or container.
Error code: Wsl/Service/CreateInstance/HCS_E_CONNECTION_TIMEOUT

Diagnostic Logs

WslLogs-2023-09-26_17-32-22.zip

@OneBlue
Copy link
Collaborator

OneBlue commented Sep 26, 2023

Thank you for reporting this @rahulghangas. Unfortunately it looks like the issue is that your distribution disk is corrupted:

79	False	Microsoft.Windows.Lxss.Manager	GuestLog	0	09-26-2023 05:02:50.278	"	"	"text: 	""[  515.260595] JBD2: Invalid checksum recovering data block 21927 in log ""
vmId: 	{04a7f618-e691-413e-9765-90e8b1e12902}"				5008	17024	5		00000000-0000-0000-0000-000000000000		
80	False	Microsoft.Windows.Lxss.Manager	GuestLog	0	09-26-2023 05:02:50.370	"	"	"text: 	""[  515.351993] JBD2: recovery failed ""
vmId: 	{04a7f618-e691-413e-9765-90e8b1e12902}"				5008	17024	5		00000000-0000-0000-0000-000000000000		
81	False	Microsoft.Windows.Lxss.Manager	GuestLog	0	09-26-2023 05:02:50.370	"	"	"text: 	""[  515.352336] EXT4-fs (sdc): error loading journal ""
vmId: 	{04a7f618-e691-413e-9765-90e8b1e12902}"				5008	17024	5		00000000-0000-0000-0000-000000000000		
82	False	Microsoft.Windows.Lxss.Manager	GuestLog	0	09-26-2023 05:02:50.373	"	"	"text: 	""[  515.355146] WSL (1) ERROR: UtilMount:1632: mount(/dev/sdc, /distro, ext4, 0x0, discard,errors=remount-ro,data=ordered ""
vmId: 	{04a7f618-e691-413e-9765-90e8b1e12902}"				5008	17024	5		00000000-0000-0000-0000-000000000000		

It looks like the file that's corrupted is C:\\Users\\rahul\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState

You can try these instructions to recover your disk, or if you don't need to recover data you can just reinstall a new distribution and delete the old one via wsl --unregister.

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

2 participants