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

Error: Timeout problem to run WSL and start Docker Desktop #13482

Closed
3 tasks done
PatrickOtero opened this issue May 11, 2023 · 9 comments
Closed
3 tasks done

Error: Timeout problem to run WSL and start Docker Desktop #13482

PatrickOtero opened this issue May 11, 2023 · 9 comments
Assignees
Labels
area/WSL2 status/duplicate Already being tracked on another issue version/4.19.0

Comments

@PatrickOtero
Copy link

  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: D9FF34FC-9152-4754-9A29-9A4CC9F0801C/20230511131014

Actual behavior

  • When i try to run docker desktop, the program takes a while loading and then pop up a error message saying that occured a timeout to run the WSL. The error instruct to shutdown wsl via terminal and try again.

Expected behavior

  • Docker desktop should run normally.

Information

  • Windows Version: 11.
  • Docker Desktop Version: 23.0.5, build bc4487a
  • WSL2 or Hyper-V backend? : WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No.

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

  • [2023-05-11T13:33:06.429487800Z][com.docker.diagnose.exe][I] ipc.NewClient: 73f859bc-diagnose -> \.\pipe\dockerBackendApiServer BackendAPI

Steps to reproduce the behavior

None
  1. ... None
  2. ... None
@ctalledo
Copy link

ctalledo commented May 11, 2023

Hi @PatrickOtero, sorry to hear about the problem and thank you for filing the issue.

Per the diagnostics bundle you uploaded, this is a duplicate of #13445.

There is a bug in Docker Desktop 4.19 that causes it to not detect the version of WSL correctly:

 2023-04-30T 20:04:39.102563100Z [com.docker.backend.exe][E] getting WSL version: exit status 0xffffffff

Docker Desktop 4.19 tries to get the version of WSL by executing the wsl --version command, but older versions of WSL do not support this.

Could you please do wsl --version on a Windows command prompt or Powershell and post the output here? (even if the command fails).

As a work-around, try updating your version of WSL by typing wsl --update on Powershell, and then restart Docker Desktop.

Thanks.

@ctalledo ctalledo self-assigned this May 11, 2023
@ctalledo ctalledo added area/WSL2 version/4.19.0 status/duplicate Already being tracked on another issue labels May 11, 2023
@PatrickOtero
Copy link
Author

Hi @ctalledo, thank you for your quick coming.

Wsl command output:

WSL version: 1.2.5.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1555

@ctalledo
Copy link

Thanks @PatrickOtero.

Wsl command output:

WSL version: 1.2.5.0
Kernel version: 5.15.90.1

It's strange that wsl --version works on your host yet Docker Desktop got an error while executing that same command ([com.docker.backend.exe][E] getting WSL version: exit status 0xffffffff). I'll double check to see what's going on.

Where you able to overcome the problem? Does Docker Desktop 4.19 start now?

@PatrickOtero
Copy link
Author

PatrickOtero commented May 12, 2023

It works only when i open it first than any other program when i turn on my system.

@ctalledo
Copy link

It works only when i open it first than any other program when i turn on my system.

Sorry, could you clarify please? Do you mean Docker Desktop works when you start it before other programs, but does not work if you open the other programs first? If so, that's very strange. What are those other programs?

@aromal606
Copy link

I also face this same issue while running the docker in deskTop. after i update wsl and then restart docker it shows the same issue 'This can occur when starting after an abrupt termination. To work around the issue, please terminate WSL (wsl --shutdown) and start Docker Desktop again'(unexpected WSL error)

@ctalledo
Copy link

Hi @aromal606, thanks for reporting. The issue you describe (unexpected WSL error) is very likely a WSL bug we've been working to resolve, where WSL suddenly stops responding thereby preventing Docker Desktop from working properly.

Where you able to resolve it by shutting down WSL (wsl --shutdown) and restarting Docker Desktop?

@ctalledo
Copy link

Hi @PatrickOtero, please try with Docker Desktop 4.20 (just released) and let us know if the problem reproduces.

Thanks!

@ctalledo
Copy link

Closing issue since it should be fixed in DD 4.20.

Please re-open if that's not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/WSL2 status/duplicate Already being tracked on another issue version/4.19.0
Projects
None yet
Development

No branches or pull requests

3 participants