docker / for-win

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

Installer keeps hanging #1172

Closed AntonioCS closed 4 years ago

AntonioCS commented 7 years ago

Expected behavior

Install new version of docker

Actual behavior

Hangs when installing

Information

I am on Windows 10 Pro. I have started to dread when I get the update window from docker. Instead of updating via that I just download the installer but it seems even that hangs.

image

It's been like that for the past 10m. I am also unable to cancel the installation.

Steps to reproduce the behavior

Try to update a new version of docker on windows

simmessa commented 7 years ago

Hello @AntonioCS I'm seeing the same. Every single time I try to upgrade Docker on Windows 10 Pro it hangs forever... It's sad, has anybody REALLY tested this on Win10 ? :(

jasonbivins commented 7 years ago

Hi @AntonioCS @simmessa We pushed new releases on the Edge and Stable channels this weekend specifically to target startup and installation/upgrade issues. Can you try the new version and let me know if it's still getting stuck? https://docs.docker.com/docker-for-windows/install/

simmessa commented 7 years ago

Hello @jasonbivins I can confirm the latest build (17.09.0-ce-win33) fixed this issue and I was able to update Docker on Windows 10.

Many thanks!

S.

sumtec commented 7 years ago

17.09.0-ce-win33 in the stable channel does NOT fix my issue. The 17.09.0-ce-win34 in the edge channel fixed the problem.

jasonbivins commented 7 years ago

@simmessa @sumtec Thanks for the feedback! I'll go ahead and close this issue out now.

szepeviktor commented 6 years ago

@simmessa I get the same hanging on the current Stable and Edge version.

kep

64bit Windows 10 Pro with Hyper-V

szepeviktor commented 6 years ago

Sorry, after a reboot dfw is running.

reyou commented 6 years ago

Same with current release. Being hanged for tens of minutes.

i will restart and give another try.

After restart issue is fixed, but it would be good to have, no restart enforcement.

image

SpoonOfDoom commented 6 years ago

I'm experiencing the same problem, despite multiple restarts. I suspected my Avast to interfere, but disabling it hasn't had any effect. The \Program Files\Docker directory gets created and filled with files, but after that, the installer just hangs indefinitely (this last attempt has now been running for 30+ minutes). Cancel installation doesn't work either - I get the "do you really want to cancel?" question once, but after that nothing happens. Only way out is killing the installer via task manager. This issue does not seem fixed to me.

2018-01-15 12_03_40-_new 52 - notepad

AntonioCS commented 6 years ago

@jasonbivins Can you please reopen this issue? It's clearly not fixed as I continue to have the same issue as do other people.

szepeviktor commented 6 years ago

A debug log option would be great!

AntonioCS commented 6 years ago

@szepeviktor Where is the debug file generated?

szepeviktor commented 6 years ago

Nowhere, that is the point.

stugit commented 6 years ago

Hi all, It's hanging for me too, please fix.

docker_hanging

mijns commented 6 years ago

I'm not able to work around this; restarted, reinstalled hyper-v, removed Docker directory before reinstalling all to no avail. Any known workarounds?

EDIT: Once I refreshed my Windows installation, it installed just fine.

Abo77 commented 6 years ago

I have the same issue and the Windows refresh is not an option for me. I hope it will be fixed soon as it is a real blocker of my work ! Thanks

AntonioCS commented 6 years ago

This seems to be getting critical. @jasonbivins Any update on this?

SpoonOfDoom commented 6 years ago

I'm in the comfortable position that Docker is not a key part of my workflow anymore, so I can sit this out for a while if I have to. But I do agree that it would be nice to have some feedback, or better yet, a solution.

briziomusic commented 6 years ago

Same issue here. Can't update. I tryed the latest stable and edge version, including msi installer. Restarted multiple times and never workerd. Please fix it asap

felipecruz91 commented 6 years ago

I am also having the same issue on Windows 10 Pro. Version 10.0.16299 Build 16299.

image

khannaum commented 6 years ago

same issue resources/vcruntime140.dll

image

SpoonOfDoom commented 6 years ago

@jasonbivins Any news on this? Is there any info we can provide to narrow down the problem?

jadmourad commented 6 years ago

I am having the same issue as well, is there anyone working on this issue?

jasonbivins commented 6 years ago

@SpoonOfDoom can you try removing the upgraders' registry key and try installing again? Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Docker for Windows

SpoonOfDoom commented 6 years ago

@jasonbivins There was no "Docker for Windows" in this path. But I've deleted every other mention of Docker from the registry that the search would turn up, and now the installer ran fine. I hecked up though and didn't take note which keys were there before I deleted them 😕

felipecruz91 commented 6 years ago

After having been fighting with this for over a week, I get it working by NOT closing the installer when it is hung, just restart immediately your computer and by running the installer once again the installation should succeed.

image

krasimirkostadinow commented 6 years ago

Same issue here on both versions: 17.012.0-ce-win47 as well as 18.02.0-ce-rc2-win51. Tried @felipecruz91 solution, but unfortunately does not work for me. The machine is running Windows 10 Enterprise, no previous installations of Docker. Is there any way to get debug output of the installation?

Edit: Starting the installation via command prompt gives the following output:

"Docker for Windows Installer.exe" install --quiet
[11:00:50.330] [InstallHandler] Using embedded package
[11:00:50.340] [InstallWorkflow] Using package: res:d4w
[11:00:50.342] [InstallWorkflow] Downloading
Downloading package 0%
[11:00:50.892] [InstallWorkflow] Exracting manifest
[11:00:50.918] [InstallWorkflow] Checking prerequisites
[11:00:50.937] [InstallWorkflow] Unpacking artifacts
Unpacking files 0%
Unpacking files : Bugsnag.dll 1%
Unpacking files : Bugsnag.pdb 2%
Unpacking files : com.docker.service 3%
Unpacking files : com.docker.service.config 4%
Unpacking files : concrt140.dll 6%
Unpacking files : Docker for Windows.exe 7%
Unpacking files : Docker for Windows.exe.config 8%
Unpacking files : Docker for Windows.pdb 9%
Unpacking files : Docker.Backend.dll 10%
Unpacking files : Docker.Backend.dll.config 11%
Unpacking files : Docker.Backend.pdb 12%
Unpacking files : Docker.Core.dll 13%
Unpacking files : Docker.Core.dll.config 15%
Unpacking files : Docker.Core.pdb 16%
Unpacking files : Docker.Service.pdb 17%
Unpacking files : Docker.Watchguard.exe 18%
Unpacking files : Docker.Watchguard.pdb 19%
Unpacking files : Docker.Win32Helpers.dll 20%
Unpacking files : Docker.Win32Helpers.pdb 21%
Unpacking files : Docker.WPF.dll 22%
Unpacking files : Docker.WPF.dll.config 24%
Unpacking files : Docker.WPF.pdb 25%
Unpacking files : DockerCli.exe 26%
Unpacking files : DockerCli.exe.config 27%
Unpacking files : DockerCli.pdb 28%
Unpacking files : InstallerCli.exe 29%
Unpacking files : InstallerCli.exe.config 30%
Unpacking files : InstallerCli.pdb 31%
Unpacking files : Microsoft.Management.Infrastructure.dll 33%
Unpacking files : Microsoft.Toolkit.Uwp.Notifications.dll 34%
Unpacking files : Microsoft.Toolkit.Uwp.Notifications.pdb 35%
Unpacking files : msvcp140.dll 36%
Unpacking files : Newtonsoft.Json.dll 37%
Unpacking files : NLog.dll 38%
Unpacking files : NLog.pdb 39%
Unpacking files : System.Management.Automation.dll 40%
Unpacking files : System.Net.Http.Formatting.dll 42%
Unpacking files : System.Runtime.WindowsRuntime.dll 43%
Unpacking files : System.Runtime.WindowsRuntime.UI.Xaml.dll 44%
Unpacking files : System.ValueTuple.dll 45%
Unpacking files : vccorlib140.dll 46%
Unpacking files : vcruntime140.dll 47%
Unpacking files : resources/CHANGELOG 48%
Unpacking files : resources/com.docker.9pdb.exe 49%
Unpacking files : resources/com.docker.cloud.proxy.exe 51%
Unpacking files : resources/com.docker.localhost-forwarder.exe 52%
Unpacking files : resources/com.docker.proxy.exe 53%
Unpacking files : resources/componentsVersion.json 54%
Unpacking files : resources/concrt140.dll 55%
Unpacking files : resources/docker-for-win.iso 56%
Unpacking files : resources/dockerd.exe 57%
Unpacking files : resources/DockerDebugInfo.ps1 58%
Unpacking files : resources/ForceRemoveDocker.ps1 60%
Unpacking files : resources/forwarding.dll 61%
Unpacking files : resources/lcow-initrd.img 62%
Unpacking files : resources/lcow-kernel 63%
Unpacking files : resources/LICENSE.rtf 64%
Unpacking files : resources/linux-daemon-options.json 65%
Unpacking files : resources/MobyLinux.ps1 66%
Unpacking files : resources/msvcp140.dll 67%
Unpacking files : resources/nsenter.tar 69%
Unpacking files : resources/OSS-LICENSES.txt 70%
Unpacking files : resources/sha1 71%
Unpacking files : resources/tile-error.png 72%
Unpacking files : resources/tile-icon.png 73%
Unpacking files : resources/UpdateChannel 74%
Unpacking files : resources/vccorlib140.dll 75%
Unpacking files : resources/vcruntime140.dll 76%
Unpacking files : resources/vpnkit.exe 78%
Unpacking files : resources/WinContainers.ps1 79%
Unpacking files : resources/WinContainersDiags.ps1 80%
Unpacking files : resources/windows-daemon-options.json 81%
Unpacking files : resources/bin/docker-compose.exe 82%
Unpacking files : resources/bin/docker-credential-wincred.exe 83%
Unpacking files : resources/bin/docker-machine.exe 84%
Unpacking files : resources/bin/docker.exe 85%
Unpacking files : resources/bin/notary.exe 87%
Unpacking files : resources/qemu-img/COPYING 88%
Unpacking files : resources/qemu-img/COPYING.LIB 89%
Unpacking files : resources/qemu-img/libgcc_s_sjlj-1.dll 90%
Unpacking files : resources/qemu-img/libglib-2.0-0.dll 91%
Unpacking files : resources/qemu-img/libgthread-2.0-0.dll 92%
Unpacking files : resources/qemu-img/libiconv-2.dll 93%
Unpacking files : resources/qemu-img/libintl-8.dll 94%
Unpacking files : resources/qemu-img/libssp-0.dll 96%
Unpacking files : resources/qemu-img/LICENSE 97%
Unpacking files : resources/qemu-img/qemu-img.exe 98%
Unpacking files : resources/qemu-img/SOURCES 99%
Unpacking files : resources/qemu-img/VERSION 100%
Installing components 100%
[11:00:59.028] [InstallWorkflow] Deploying component LightweightInstaller.CreateGroupAction
[11:00:59.059] [InstallWorkflow] Deploying component LightweightInstaller.AddToGroupAction
[11:00:59.092] [InstallWorkflow] Deploying component LightweightInstaller.ServiceAction
Juananthon commented 6 years ago

I am having the same issue as well, is there anyone working on this issue?

jadmourad commented 6 years ago

I resolved my issue after installing when the antivirus is stopped. You need to remove the docker folder first so that you get a clean installation.

Just to give more information my issue was that the installer hangs after stating "Removing files..." and i am using 17.12.0-ce-win47.

If you are behind a proxy you also require to configure your machine to be proxy transparent.

briziomusic commented 6 years ago

@Juananthon I hope because i'm stuck with 17.06.2-ce-win27 (13194) (installed with msi) and I can't upgrade. I tryed everything but it hangs in 'Installing components'

jasonbivins commented 6 years ago

@briziomusic @Juananthon Remove this registry key - and rerun the installer as admin to see if that helps

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Docker for Windows

nicolasfoisy commented 6 years ago

Anybody found a solution for this issue? I've tried everything possible... The proble occured after reinstaling docker after a prior uninstall. I deleted the docker folder by hand, removed every related key in regedit, ran the installer as administrator, turned off the antivirus and still hang on th same Unpacking file... I'm getting frustrated!

mayu2085 commented 6 years ago

I tried

  1. removing all docker folder manually after uninstall.
  2. removing all registry entries for keys and values for registry
  3. Multiple restarts
  4. Running the script as admin

But nothing is working out.

image @jasonbivins Please help

AntonioCS commented 6 years ago

@jasonbivins Can you please keep us updated on this? Quite a few of us depend on this for work. If this is truly broken I will have to go back to vagrant :disappointed:

dschoeni commented 6 years ago

I found a solution for me:

Solution: Make sure there is no file called "Program" in the root of your system drive (e.g. "C:\Program") as otherwise Windows will hang while trying to start the Docker for Windows Service.

writarium commented 6 years ago

EDIT: Ok. I got this working by

==== I'm doing this for the first time and as most have reported, the installer just hangs at the Removing files stage. Waited for 30 minutes, nothing happened. Restarted and removed all Docker folders, ran installer again, still no luck.

Any workarounds on this at least. I only need it to get the repo Docker's Documentation docker.github.io. unpacking removing

briziomusic commented 6 years ago

So, after several months waiting a fix I resolved with a fresh install. After formatting my hard driver and updating win 10 pro with all the latest patches, I disabled windows defender following this link and run 'Docker for Windows 17.12.0-ce-win47' as Administrator

Good luck....

SpoonOfDoom commented 6 years ago

So, I got a notification about a Docker update today, and during installation, the problem returned.

grafik

jon-mccall commented 6 years ago

I've got the same problem trying to install 18.03.0. Install just hangs, left it running for 45 minutes now...

A reboot fixed it for me. Looked like windows updates needed to finish installing. After that the install sailed through and I'm up and running.

Thorbenl commented 6 years ago

Also stuck at removing files... no windows defender active, i just installed windows 10 enterprise NEW, there shouldnt be any problem.. im really getting angry at this, i just wanna install it lol.

Hyper V is activated, visualisation aswell, i followed the tutorial. its 18.03.0-ce, happens with all versions tho.

I get this from the console: [20:03:10.189] [InstallHandler] Using embedded package [20:03:10.319] [InstallWorkflow] Using package: res:d4w [20:03:10.320] [InstallWorkflow] Downloading [20:03:14.521] [InstallWorkflow] Exracting manifest [20:03:14.563] [InstallWorkflow] Checking prerequisites [20:03:15.532] [InstallWorkflow] Prompting for optional features [20:03:18.612] [InstallWorkflow] Unpacking artifacts [20:03:32.195] [InstallWorkflow] Deploying component LightweightInstaller.CreateGroupAction [20:03:32.233] [InstallWorkflow] Deploying component LightweightInstaller.AddToGroupAction [20:03:32.272] [InstallWorkflow] Deploying component LightweightInstaller.ServiceAction [20:03:32.527] [InstallWorkflow] Deploying component LightweightInstaller.ShortcutAction [20:03:32.547] [InstallWorkflow] Deploying component LightweightInstaller.ShortcutAction [20:03:32.549] [InstallWorkflow] Deploying component LightweightInstaller.AutoStartAction [20:03:32.556] [InstallWorkflow] Component LightweightInstaller.AutoStartAction failed Exception type: System.UnauthorizedAccessException, Exception message: Der Zugriff auf den Registrierungsschlüssel "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" wurde verweigert., StackTrace: bei Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) bei Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions) bei Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) bei LightweightInstaller.AutoStartAction.DoAsync(CancellationToken cancelToken) bei LightweightInstaller.InstallWorkflow.<HandleD4WPackage>d__26.MoveNext() [20:03:32.557] [InstallWorkflow] Installation failed Exception type: System.UnauthorizedAccessException, Exception message: Der Zugriff auf den Registrierungsschlüssel "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" wurde verweigert., StackTrace: bei Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) bei Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions) bei Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) bei LightweightInstaller.AutoStartAction.DoAsync(CancellationToken cancelToken) bei LightweightInstaller.InstallWorkflow.<HandleD4WPackage>d__26.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei LightweightInstaller.InstallWorkflow.<ProcessAsync>d__23.MoveNext() [20:03:32.562] [InstallWorkflow] Rollbacking component LightweightInstaller.ShortcutAction [20:03:32.563] [InstallWorkflow] Rollbacking component LightweightInstaller.ShortcutAction [20:03:32.563] [InstallWorkflow] Rollbacking component LightweightInstaller.ServiceAction [20:03:32.667] [InstallWorkflow] Rollbacking component LightweightInstaller.AddToGroupAction [20:03:32.667] [InstallWorkflow] Rollbacking component LightweightInstaller.CreateGroupAction [20:03:32.668] [InstallWorkflow] Rollbacking component LightweightInstaller.UnpackArtifactsStep

Jim-Rouse commented 6 years ago

I was able to solve the problem by
prep: (stop existing hung install)

  1. Remove docker directory in program files
  2. Remove .docker directory in \users\
  3. Turning off antivirus
  4. Run install as Administrator

    Successful< Turn on antivirus

jkrot commented 6 years ago

I had this issue as well and I can confirm @felipecruz91 solution of just restarting and resuming the installation after restart fixed it for me.

SpoonOfDoom commented 6 years ago

@jkrot I've tried that, but it didn't help. It seems that there is more than one cause for this issue.

@jasonbivins Is there any news about a fix?

Thorbenl commented 6 years ago

None of ur suggestions work really @Jim-Rouse @jkrot @SpoonOfDoom

szepeviktor commented 6 years ago

I think in none of the above scenarios should the installer hang.

hilsonp commented 6 years ago

Can't you just remove the current upgrade process and open a HowToUpgradeDockerOnWindows10.txt until you fix this ?

We hear about Docker everywhere and I fall into this bug that seem quite basic to me?

image

SpoonOfDoom commented 6 years ago

Is this being worked on? It would be nice to know whether it's worth waiting for a fix at all or if we need to continue finding workarounds.

szepeviktor commented 6 years ago

Maybe a HitmanPro.Alert issue? https://github.com/docker/for-win/issues/1221#issuecomment-363759638

SpoonOfDoom commented 6 years ago

@szepeviktor at least not for me, I don't use HitmanPro.

Also, there have been multiple workarounds in this issue, which worked for some people, but not others. That seems to point to there being multiple, different errors which just happen to exhibit the same symptom. Which would explain why the specific point at which the installer hangs seems to also be different in some of the screenshots.

If we could get some kind of debug log in a new installer version, that might help to anaylize this further, and maybe even split the issue into seperate ones if appropriate. As it is, I'm not sure what information to add, or what to do about this. None of the suggested workarounds seem to work reliably either.

paolommj commented 6 years ago

it may be related to the desktop shortcut as i received a warning on that. Had to allow the installer access to controlled folders. see https://support.microsoft.com/en-ca/help/4046851/windows-10-controlled-folder-access-windows-defender-security-center