docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 287 forks source link

Docker Desktop for Windows 4.19 is failing sometimes with an exception #13495

Open sujitsneb opened 1 year ago

sujitsneb commented 1 year ago

Actual behavior

When I tried to install using double click option on exe file for Docker Desktop for Windows v 4.19.0 on my PC with using [Docker Desktop Installer (1).exe] that was downloaded from https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe. The Installation was not getting started.

Expected behavior

Installation should have been started once User double clicks an exe file on Windows.

Information

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

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? [PASS] DD0011: are the LinuxKit services running? [PASS] DD0004: is the Docker engine running? [PASS] DD0015: are the binary symlinks installed? [PASS] DD0031: does the Docker API work? [PASS] DD0013: is the $PATH ok? [FAIL] DD0003: is the Docker CLI working? exit status 1 [FAIL] DD0005: is the user in the docker-users group? The specified domain either does not exist or could not be contacted. [PASS] DD0038: is the connection to Docker working? [FAIL] DD0014: are the backend processes running? 1 error occurred:

[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? [PASS] DD0011: are the LinuxKit services running? [PASS] DD0004: is the Docker engine running? [PASS] DD0015: are the binary symlinks installed? [PASS] DD0031: does the Docker API work? [PASS] DD0032: do Docker networks overlap with host IPs?

Please investigate the following 3 issues:

1 : The test: is the Docker CLI working? Failed with: exit status 1

The Docker CLI is needed to build, share and run applications.

2 : The test: is the user in the docker-users group? Failed with: The specified domain either does not exist or could not be contacted.

The current user must be member of the docker-users group. Press the Win + R keys to open Run, type lusrmgr.msc into Run, followed by Enter to open Local Users and Groups.

3 : The test: are the backend processes running? Failed with: 1 error occurred:

Not all of the backend processes are running.

Steps to reproduce the behavior

  1. Download the installer file from the Link - https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe
  2. Double click the installer file once downloaded
  3. It just blinks and we think that something is going on in the background but it seems, it never started installation Workaround - I have opened the installer file (exe) from powershell as admin and then the installation was started. Few log messages with an exception - Version: 4.19.0 (106363) Sha1: Started on: 2023/05/16 20:00:56.905 Resources: C:\Users\xxx\Downloads\resources OS: Windows 10 Enterprise Edition: Enterprise Id: 2009 Build: 22000 BuildLabName: 22000.1.amd64fre.co_release.210604-1628 File: C:\ProgramData\DockerDesktop\install-log-admin.txt CommandLine: "C:\Users\xxx\Downloads\Docker Desktop Installer (1).exe" You can send feedback, including this log file, at https://github.com/docker/for-win/issues [2023-05-16T20:00:57.143057100Z][ManifestAndExistingInstallationLoader][I] No install path specified, looking for default installation registry key [2023-05-16T20:00:57.171260500Z][Installer][I] No installation found [2023-05-16T20:00:57.523032300Z][InstallWorkflow][I] Cancel pending background download [2023-05-16T20:00:57.523032300Z][BackgroundTransfer][I] Cancel current background transfer job [2023-05-16T20:01:35.328381100Z][InstallWorkflow][E] Failed to cancel background download: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
elapuyade commented 1 year ago

Hi,

If I understand correctly, you had a problem with Docker Desktop Installer, NOT with Docker Desktop, right? The issue title is a bit misleading. In this case, the diagnose tool and the suggested issues don't make sense, they all relate to an installed Docker Desktop.

The exception that failed the installer means the following: When the software is installed, it can optionally automatically download updates when it sees one is available. This download uses a windows service and happens in the background. When an installer is started, it first tries to stop such a possibly in progress download to make sure it won't interfere with the install. Windows answered that we asked to stop an invalid download. Either the download stopped just before we tried to stop it (and we should ignore the error), or there is something broken in the download component (and you should reboot the system).

I supposed you tried to double clic several times and got the same behavior? If so, that hints at the broken system component.

Did you try to reboot Windows and double clic again? Did you run the installer in the terminal in the same windows session than the initial installer run? Launching from Powershell does exactly the same as double clicking the exe, so when Powershell worked, the exe would most probably have worked the same.

I'm sorry I can't give a better response.