Gohawks
Gohawks

Reputation: 481

Installing Docker Desktop 4.5.0 failed: Componet.CommunityInstaller.EnableFeaturesAction failed: Not found

On Windows 10, Version 2004 (OS build 19041.1415) I am trying to install docker desktop 4.5.0 after having installed WSL2 for Ubuntu. I tried repeatedly after a fresh reboot but this problem doesnt go away. Can anyone shed some light?

Component CommunityInstaller.EnableFeaturesAction failed: Not found 
   at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__24.MoveNext()

Full log:

OS: Windows 10 Enterprise
Edition: Enterprise
Id: 2004
Build: 19041
BuildLabName: 19041.1.amd64fre.vb_release.191206-1406
File: C:\Users\naus-ad-xxx\AppData\Local\Docker\install-log.txt
CommandLine: "C:\Users\xxx\Downloads\Docker Desktop Installer(1).exe" "install" -package "res:DockerDesktop" --relaunch-as-admin
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[11:23:53.421][ManifestAndExistingInstallationLoader][Info   ] No install path specified, looking for default installation registry key
[11:23:53.421][Program           ][Info   ] No installation found
[11:23:53.784][InstallWorkflow   ][Info   ] Cancel pending background download
[11:23:53.822][BackgroundTransfer][Info   ] Cancel current background transfer job
[11:23:54.856][InstallWorkflow   ][Info   ] Using package: res:DockerDesktop
[11:23:54.856][InstallWorkflow   ][Info   ] Downloading
[11:23:57.240][InstallWorkflow   ][Info   ] Extracting manifest
Failed to track the installer started event[11:23:57.643][InstallWorkflow   ][Info   ] Manifest found: version=74594, displayVersion=4.5.0, channelUrl=https://desktop.docker.com/win/main/amd64/appcast.xml
[11:23:57.643][InstallWorkflow   ][Info   ] Checking prerequisites
[11:23:57.666][InstallWorkflow   ][Info   ] Prompting for optional features
[11:23:59.863][InstallWorkflow   ][Info   ] Unpacking artifacts
[11:26:07.556][InstallWorkflow   ][Info   ] Deploying component CommunityInstaller.CreateGroupAction
[11:26:10.120][InstallWorkflow   ][Info   ] Deploying component CommunityInstaller.AddToGroupAction
[11:26:10.130][InstallWorkflow   ][Info   ] Deploying component CommunityInstaller.EnableFeaturesAction
**[11:26:10.181][InstallWorkflow   ][Error  ] Installation failed
Exception type: System.Exception, Exception message: Component CommunityInstaller.EnableFeaturesAction failed: Not found , StackTrace:
   at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__24.MoveNext()**
[11:26:10.185][InstallWorkflow   ][Info   ] Rollbacking component CommunityInstaller.AddToGroupAction
[11:26:10.186][InstallWorkflow   ][Info   ] Rollbacking component CommunityInstaller.CreateGroupAction
[11:26:10.186][InstallWorkflow   ][Info   ] Rollbacking component CommunityInstaller.UnpackArtifactsStep
[11:26:10.194][FileSystem        ][Info   ] Deleting C:\Program Files\Docker\Docker
[11:26:10.761][FileSystem        ][Info   ] Deleted C:\Program Files\Docker\Docker successfully
[11:26:10.761][InstallWorkflow   ][Info   ] Rollbacking component CommunityInstaller.ExtractManifestStep
[11:26:10.764][InstallWorkflow   ][Info   ] Rollbacking component CommunityInstaller.DownloadStep

Upvotes: 15

Views: 38786

Answers (11)

Yassine El jabri
Yassine El jabri

Reputation: 11

sc config winmgmt start=disabled

net stop winmgmt

Winmgmt /salvagerepository %windir%\System32\wbem

Winmgmt /resetrepository %windir%\System32\wbem

sc config winmgmt start=auto

Get-NetIPInterface

following this command in cmd running as a admin

Upvotes: 1

user1561865
user1561865

Reputation: 41

I had the same issue when attempting to install 4.12.0. I tried all sorts of things and the only one that worked for me was running the batch file (as Administrator) listed in the following post: https://programmersought.com/article/29075200559/

@echo on 
cd /d c:\temp 
if not exist %windir%\system32\wbem goto TryInstall 
cd /d %windir%\system32\wbem 
net stop winmgmt 
winmgmt /kill 
if exist Rep_bak rd Rep_bak /s /q 
rename Repository Rep_bak 
for %%i in (*.dll) do RegSvr32 -s %%i 
for %%i in (*.exe) do call :FixSrv %%i 
for %%i in (*.mof,*.mfl) do Mofcomp %%i 
net start winmgmt 
goto End 


:FixSrv 
if /I (%1) == (wbemcntl.exe) goto SkipSrv 
if /I (%1) == (wbemtest.exe) goto SkipSrv 
if /I (%1) == (mofcomp.exe) goto SkipSrv 
%1 /RegServer 


:SkipSrv 
goto End 


:TryInstall 
if not exist wmicore.exe goto End 
wmicore /s 
net start winmgmt 
:End 

Hope this helps someone.

Upvotes: 2

Suryansh Tripathi
Suryansh Tripathi

Reputation: 47

Worked for me.(Successfully installed latest docker on 27/05/2024)

Win + R and enter WMIMGMT.MSC and navigate to properties.

enter image description here

Then you must see this error dialog box enter image description here

Ran the commands given below from Admin command prompt to reset WMI components and which should not be harm to other Windows services or components.

From command prompt navigate to C:>windows\system32\wbem

regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll

regsvr32 cimwin32.dll

mofcomp cimwin32.mof

mofcomp cimwin32.mfl

mofcomp rsop.mof

mofcomp rsop.mfl

for /f %s in ('dir /b /s *.dll') do regsvr32 /s %s

for /f %s in ('dir /b *.mof') do mofcomp %s

for /f %s in ('dir /b *.mfl') do mofcomp %s

regsvr32 wmisvc.dll

wmiprvse /regserver

enter image description here

Upvotes: 2

Rasik Fareed Jazaa
Rasik Fareed Jazaa

Reputation: 1

CD C:\Windows\System32\WBEM && dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s

run this command on the command line in administrative mode

Upvotes: 0

Aqib
Aqib

Reputation: 11

Windows 11 Pro, Docker Version 4.27.1
I solved my issue by following these steps.

  1. Run Windows command prompt as Administrator.
  2. Go to this directory -> CD C:\Windows\System32\WBEM
  3. the run -> dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt
  4. at last run this -> for /F %s in (moflist.txt) do mofcomp %s

Reboot your Windows computer the run the docker installer again.

Upvotes: 0

Lydon Ch
Lydon Ch

Reputation: 8815

In my case, running installer in Admin Powershell

Start-Process 'Docker Desktop Installer.exe' -Wait install

did the trick

Upvotes: 2

Namig Hajiyev
Namig Hajiyev

Reputation: 1541

In my case the problem was with Windows Management Instrumentation (WMI)

Running this command in cmd as Administrator fixed the problem :

CD C:\Windows\System32\WBEM && dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s

I have got this command from this article

Upvotes: 42

dhahrim
dhahrim

Reputation: 11

The fix for me was starting this service:

Windows Installer

Upvotes: 0

Ramesh Ch
Ramesh Ch

Reputation: 199

I had similar issue with 4.9.0 and tried installing 4.0.0 still my problem did not resolve. I removed trace from c drive (C:\ProgramData\DockerDesktop, C:\Program Files\Docker) and tried installing again but no luck. Later i found forum discussing about this. (https://github.com/docker/for-win/issues/1857) repeated the steps in windows command prompt running as admin.

  1. sc config winmgmt start=disabled
  2. net stop winmgmt
  3. Winmgmt /salvagerepository %windir%\System32\wbem
  4. Winmgmt /resetrepository %windir%\System32\wbem
  5. sc config winmgmt start=auto
  6. Get-NetIPInterface

This steps helped me to install docker 4.9.0

Upvotes: 19

Bell
Bell

Reputation: 113

I had the same issue too, when installing the latest version 4.5.0 (It had been released on Feb 10th, 2022) Try to downgrade to version 4.4.4 it worked for me.

You can find the released note and older versions on this Docker for Windows

Note: You can install an older version and update to latest version 4.5.0

Upvotes: 0

Related Questions