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

Cannot start Docket Desktop on windows (timeout while waiting for WSL integration agent) #13461

Open
lakshman503 opened this issue May 5, 2023 · 14 comments

Comments

@lakshman503
Copy link

  • [x ] I have tried with the latest version of Docker Desktop
  • [ x] I have tried disabling enabled experimental features
  • [ x] I have uploaded Diagnostics
  • Diagnostics ID: 34659C04-F3E7-4E48-8C22-B1C14668B8BA/20230505061735

Actual behavior

When I start Docker Desktop it is showing like "wsl --shutdown" and start again. After executing wsl --shutdown also Docker desktop is showing same error again.

Expected behavior

Docker Desktop should start

Information

No
  • Windows Version: win 10 pro
  • Docker Desktop Version: 4.19
  • 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

PS C:\Program Files\Docker\Docker\resources> .\com.docker.diagnose.exe check
[2023-05-05T06:19:38.557187100Z][com.docker.diagnose.exe][I] set path configuration to OnHost
Starting diagnostics

[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[SKIP] DD0002: does the bootloader have virtualization enabled?
[SKIP] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[SKIP] DD0022: is the Virtual Machine Platform Windows Feature enabled?
[SKIP] DD0021: is the WSL 2 Windows Feature enabled?
[PASS] DD0024: is WSL installed?
[PASS] DD0025: are WSL distros installed?
[PASS] DD0026: is the WSL LxssManager service running?
[PASS] DD0029: is the WSL 2 Linux filesystem corrupt?
[PASS] DD0035: is the VM time synchronized?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[FAIL] DD0011: are the LinuxKit services running? failed to ping VM diagnosticsd with error: Get "http://ipc/ping": open \.\pipe\dockerDiagnosticd: The system cannot find the file specified.
[2023-05-05T06:19:51.158679900Z][com.docker.diagnose.exe][I] ipc.NewClient: 2d56ceee-diagnose -> \.\pipe\dockerDiagnosticd diagnosticsd
[2023-05-05T06:19:51.169807300Z][com.docker.diagnose.exe][I] (dc1226fa) 2d56ceee-diagnose C->S diagnosticsd GET /ping
[2023-05-05T06:19:51.170336400Z][com.docker.diagnose.exe][W] (dc1226fa) 2d56ceee-diagnose C<-S NoResponse GET /ping (529.1µs): Get "http://ipc/ping": open \.\pipe\dockerDiagnosticd: The system cannot find the file specified.

[FAIL] DD0004: is the Docker engine running? Get "http://ipc/docker": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:51.176402300Z][com.docker.diagnose.exe][I] ipc.NewClient: fcc10bca-com.docker.diagnose -> \.\pipe\dockerLifecycleServer VMDockerdAPI
[2023-05-05T06:19:51.176957400Z][com.docker.diagnose.exe][I] (ba2c4a19) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /docker
[2023-05-05T06:19:51.176966300Z][com.docker.diagnose.exe][W] (ba2c4a19) fcc10bca-com.docker.diagnose C<-S NoResponse GET /docker (8.9µs): Get "http://ipc/docker": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:51.177573500Z][com.docker.diagnose.exe][I] (ba2c4a19-1) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-05-05T06:19:51.177573500Z][com.docker.diagnose.exe][W] (ba2c4a19-1) fcc10bca-com.docker.diagnose C<-S NoResponse GET /ping (0s): Get "http://ipc/ping": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:52.181037300Z][com.docker.diagnose.exe][I] (ba2c4a19-2) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-05-05T06:19:52.184053100Z][com.docker.diagnose.exe][W] (ba2c4a19-2) fcc10bca-com.docker.diagnose C<-S NoResponse GET /ping (2.9985ms): Get "http://ipc/ping": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:53.196642300Z][com.docker.diagnose.exe][I] (ba2c4a19-3) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-05-05T06:19:53.196642300Z][com.docker.diagnose.exe][W] (ba2c4a19-3) fcc10bca-com.docker.diagnose C<-S NoResponse GET /ping (0s): Get "http://ipc/ping": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:54.198842700Z][com.docker.diagnose.exe][I] (ba2c4a19-4) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-05-05T06:19:54.199949700Z][com.docker.diagnose.exe][W] (ba2c4a19-4) fcc10bca-com.docker.diagnose C<-S NoResponse GET /ping (1.107ms): Get "http://ipc/ping": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:55.203131300Z][com.docker.diagnose.exe][I] (ba2c4a19-5) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-05-05T06:19:55.204370700Z][com.docker.diagnose.exe][W] (ba2c4a19-5) fcc10bca-com.docker.diagnose C<-S NoResponse GET /ping (1.2393ms): Get "http://ipc/ping": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:56.209619600Z][com.docker.diagnose.exe][I] (ba2c4a19-6) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-05-05T06:19:56.214274700Z][com.docker.diagnose.exe][W] (ba2c4a19-6) fcc10bca-com.docker.diagnose C<-S NoResponse GET /ping (4.6551ms): Get "http://ipc/ping": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:57.217556900Z][com.docker.diagnose.exe][I] (ba2c4a19-7) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-05-05T06:19:57.218442900Z][com.docker.diagnose.exe][W] (ba2c4a19-7) fcc10bca-com.docker.diagnose C<-S NoResponse GET /ping (886µs): Get "http://ipc/ping": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2023-05-05T06:19:58.221636400Z][com.docker.diagnose.exe][I] (ba2c4a19-8) fcc10bca-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-05-05T06:19:58.223584800Z][com.docker.diagnose.exe][W] (ba2c4a19-8) fcc10bca-com.docker.diagnose C<-S NoResponse GET /ping (1.9484ms): Get "http://ipc/ping": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.

[PASS] DD0015: are the binary symlinks installed?
[FAIL] DD0031: does the Docker API work? error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/v1.24/containers/json": open //./pipe/docker_engine_linux: The system cannot find the file specified.
[PASS] DD0013: is the $PATH ok?
Error response from daemon: open \.\pipe\docker_engine_linux: The system cannot find the file specified.
[FAIL] DD0003: is the Docker CLI working? exit status 1
[PASS] DD0005: is the user in the docker-users group?
[PASS] DD0038: is the connection to Docker working?
[FAIL] DD0014: are the backend processes running? 1 error occurred:
* com.docker.vpnkit.exe is not running

[PASS] DD0007: is the backend responding?
[PASS] DD0008: is the native API responding?
[FAIL] DD0009: is the vpnkit API responding? open \.\pipe\dockerVpnKitDiagnostics: The system cannot find the file specified.
[PASS] DD0010: is the Docker API proxy responding?
[SKIP] DD0006: is the Docker Desktop Service responding?
[SKIP] DD0030: is the image access management authorized?
[PASS] DD0033: does the host have Internet access?
[PASS] DD0002: does the bootloader have virtualization enabled?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled?
[PASS] DD0021: is the WSL 2 Windows Feature enabled?
[PASS] DD0024: is WSL installed?
[PASS] DD0025: are WSL distros installed?
[PASS] DD0026: is the WSL LxssManager service running?
[PASS] DD0029: is the WSL 2 Linux filesystem corrupt?
[PASS] DD0035: is the VM time synchronized?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[WARN] DD0011: are the LinuxKit services running? failed to ping VM diagnosticsd with error: Get "http://ipc/ping": open \.\pipe\dockerDiagnosticd: The system cannot find the file specified.
[WARN] DD0004: is the Docker engine running? Get "http://ipc/docker": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[PASS] DD0015: are the binary symlinks installed?
[WARN] DD0031: does the Docker API work? error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/v1.24/containers/json": open //./pipe/docker_engine_linux: The system cannot find the file specified.
[WARN] DD0032: do Docker networks overlap with host IPs? error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/v1.24/networks": open //./pipe/docker_engine_linux: The system cannot find the file specified.

Please note the following 4 warnings:

1 : The check: are the LinuxKit services running?
Produced the following warning: failed to ping VM diagnosticsd with error: Get "http://ipc/ping": open \.\pipe\dockerDiagnosticd: The system cannot find the file specified.

The Docker engine runs inside a Linux VM as a service. Therefore the services must have started.

2 : The check: is the Docker engine running?
Produced the following warning: Get "http://ipc/docker": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified.

The Docker engine manages all containers and images on the host. Check the dockerd.log to see why it failed to start.

3 : The check: does the Docker API work?
Produced the following warning: error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/v1.24/containers/json": open //./pipe/docker_engine_linux: The system cannot find the file specified.

If the Docker API is not available from the host then Docker Desktop will not work correctly.

4 : The check: do Docker networks overlap with host IPs?
Produced the following warning: error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/v1.24/networks": open //./pipe/docker_engine_linux: The system cannot find the file specified.

If the subnet used by a Docker network overlaps with an IP used by the host, then containers
won't be able to contact the overlapping IP addresses.

Try configuring the IP address range used by networks: in your docker-compose.yml.
See https://docs.docker.com/compose/compose-file/compose-file-v2/#ipv4_address-ipv6_address

Please investigate the following 2 issues:

1 : The test: are the backend processes running?
Failed with: 1 error occurred:
* com.docker.vpnkit.exe is not running

Not all of the backend processes are running.

2 : The test: are the LinuxKit services running?
Failed with: failed to ping VM diagnosticsd with error: Get "http://ipc/ping": open \.\pipe\dockerDiagnosticd: The system cannot find the file specified.

The Docker engine runs inside a Linux VM as a service. Therefore the services must have started.

Steps to reproduce the behavior

  1. ...
    image

  2. ...
    image

@ctalledo
Copy link

ctalledo commented May 5, 2023

Hi @lakshman503, sorry you hit a problem but thanks for filing the issue.

Looking at the diagnosis you posted, this is likely a duplicate of #13445 .

Could you please let us know the output of wsl --version on the host machine (e.g., executed from a Windows command prompt or PowerShell).

Thanks.

@ctalledo ctalledo added the status/duplicate Already being tracked on another issue label May 5, 2023
@ctalledo
Copy link

ctalledo commented May 7, 2023

wow every time there is an update, docker breaks. seriously this is annoygin fix it please

Yes, we are working on it. Docker Desktop 4.19 needs to know the version of WSL on the host, but unfortunately older versions of WSL do not support the wsl --version flag. Docker Desktop knows this, but there is a bug in the way it detects these older version.

As a work-around, updating WSL to the latest version (wsl --update) will likely cause Docker Desktop 4.19 to start without problem.

@lakshman503
Copy link
Author

lakshman503 commented May 8, 2023 via email

@ctalledo
Copy link

ctalledo commented May 8, 2023

Hi @lakshman503, thank you very much for the response, but I don't see the attached images. Could you attach them directly to this issue.

Thanks again!

@lakshman503
Copy link
Author

lakshman503 commented May 9, 2023 via email

@Francisco-madrid-gambin
Copy link

Francisco-madrid-gambin commented May 9, 2023

I do have this issue and had this output:
Versión de WSL: 1.2.5.0
Versión de kernel: 5.15.90.1
Versión de WSLg: 1.0.51
Versión de MSRDC: 1.2.3770
Versión de Direct3D: 1.608.2-61064218
Versión DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Versión de Windows: 10.0.19045.2846

@ctalledo
Copy link

ctalledo commented May 9, 2023

Hi @lakshman503, unfortunately the images are still not attached; seems like you are responding on an email client and the attachments are getting dropped by GitHub. If possible please attach them in this GitHub issue directly.

@ctalledo
Copy link

ctalledo commented May 9, 2023

Hi @Francisco-madrid-gambin, sorry to hear and thanks for commenting.

There are a couple of reasons why Docker Desktop may not start on Windows with WSL. If you have a chance, please upload a diagnostics bundle so we can take a look at how it fails in your case and give you the best solution.

@lakshman503
Copy link
Author

Hi @ctalledo,

PFA

2
3
1

@ctalledo
Copy link

Hi @lakshman503, thanks for posting the attachments, very helpful.

Question: what changed between the 1st and 3rd images above? How come wsl --version works on the first image, but fails on the second? Is it the same host machine in both cases?

@lakshman503
Copy link
Author

Hi @ctalledo

Initially I tried executing wsl --version then I got Invalid command line option --version.

After that I tried executing wsl --update it got updated.

After that again I tried to execute wsl --version then I can able to see the output from that command.

After that I tried to start docker desktop again. but issue is same on it. It didnt change.

@ctalledo
Copy link

Hi @lakshman503, thanks again for the response, it's helpful for us to debug.

After that again I tried to execute wsl --version then I can able to see the output from that command

Oh got it; the 3rd image above is from before you updated WSL. The first image above is after you updated WSL.

After that I tried to start docker desktop again. but issue is same on it. It didnt change.

So looking at the 2nd image above, looks like it fails with "timeout while waiting for WSL integration agent" (and this means it's not a duplicate of #13445 as I originally thought).

As a temporary work-around, try the following please.

In the Docker settings.json file (C:\Users\<USERNAME>\AppData\Roaming\Docker\settings.json), disable WSL integration:

"integratedWslDistros": [], 
"enableIntegrationWithDefaultWslDistro": false,

Then start Docker Desktop. If that works (i.e., Docker Desktop starts normally), then re-enable WSL integration via "Settings->Resources->WSL Integration". Then go to your WSL distro and type docker ps to see if the WSL integration is working as expected.

If things don't work, please let me know the error you are seeing to help us root-cause the problem.

Thanks again, appreciate your help!

@ctalledo ctalledo removed the status/duplicate Already being tracked on another issue label May 31, 2023
@ctalledo ctalledo changed the title Cannot start Docket Desktop on windows Cannot start Docket Desktop on windows (timeout while waiting for WSL integration agent) May 31, 2023
@samuk190
Copy link

samuk190 commented Jun 1, 2023

There is a memory leak issue with docker desktop since years ago. If your computer have not much ram available then maybe the memory leak will kick it faster and your docker will not even start. or if starts it will corrupt because it will fill ram quickily and then shutoff.

Highly recommend switching to docker desktop hyper V but keep in mind this will sacrifice a part of your system resources all time and not use resources on demand as wsl2 integration was supposed to do.

Sadly we need to make this issue more known so the devs focus 100% on it.

@ctalledo
Copy link

ctalledo commented Jun 1, 2023

Sadly we need to make this issue more known so the devs focus 100% on it.

Hi @samuk190, we are working hard on improving DD's memory usage on WSL, but this particular issue has nothing to do with memory consumption. It's strictly a problem with parsing the WSL version info.

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

No branches or pull requests

5 participants