docker / for-win

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

Docker gets stuck after crashing due to power cut. #3478

Closed rebussharma closed 5 years ago

rebussharma commented 5 years ago

Expected behavior

Actual behavior

Information

Steps to reproduce the behavior

  1. ... While docker is running, unplug computer from power source
  2. ...

logs:

Version: 2.0.0.3 (31259) Channel: stable Sha1: 8858db33c8692b69de9987a5d672798d778735b2 Started on: 2019/02/27 15:34:24.014 Resources: C:\Program Files\Docker\Docker\Resources OS: Windows 10 Enterprise Edition: Enterprise Id: 1803 Build: 17134 BuildLabName: 17134.1.amd64fre.rs4_release.180410-1804 File: C:\Users\rebus\AppData\Local\Docker\log.txt CommandLine: "C:\Program Files\Docker\Docker\Docker for Windows.exe" You can send feedback, including this log file, at https://github.com/docker/for-win/issues [15:34:24.092][GUI ][Info ] Starting... [15:34:24.154][ComponentVersions][Info ] Edition community [15:34:25.092][GUI ][Error ] Object reference not set to an instance of an object. [15:34:25.123][NamedPipeClient][Info ] Sending Version()... [15:34:25.123][NamedPipeClient][Info ] Received response for Version [15:34:25.123][NamedPipeClient][Info ] Sending GatherDiagnostics(-path C:\Users\rebus\AppData\Local\Temp\ gather -id B545B650-8C32-419F-BA2F-A689BC1D0B91/20190227153425, C:\Users\rebus\AppData\Local\Temp\B545B650-8C32-419F-BA2F-A689BC1D0B91/20190227153425.zip)... [14:57:21.872][HyperV ][Info ] VM MobyLinuxVM does not exist [14:57:21.872][HyperV ][Info ] Destroying Switch DockerNAT... [14:57:21.887][HyperV ][Info ] Removing VM MobyLinuxVM... [14:57:21.981][HyperV ][Info ] Delete VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx [14:57:21.981][HyperV ][Debug ] [destroy] took 00:00:01.8307598 to run [14:57:21.981][Firewall ][Info ] Closing ports... [14:57:21.981][Firewall ][Info ] Removing all existing rules... [14:57:21.997][Firewall ][Info ] All existing rules are removed. [14:57:21.997][Firewall ][Info ] Ports are closed [14:57:21.997][HyperVGuids ][Info ] Removing GUIDs... [14:57:21.997][HyperVGuids ][Info ] GUIDs removed [14:57:22.012][Linux ][Warning] The directory is not empty.

[14:57:22.012][PowerShell ][Info ] Run script with parameters: -RemoveNetworks True [14:57:22.356][NamedPipeServer][Error ] Unable to execute Destroy: Object reference not set to an instance of an object. at Docker.Backend.ContainerEngine.Windows.CleanUpData(Settings settings) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 289 at Docker.Backend.ContainerEngine.Windows.DoDestroy(Settings settings, Boolean keepVolume) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 283 at Docker.Backend.ContainerEngine.Windows.Destroy(Settings settings, Boolean keepVolume) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 175 at Docker.Backend.Backend.Destroy(Settings settings, ContainerEngineMode mode, Boolean keepVolume) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\Backend.cs:line 149 at Docker.Core.Pipe.NamedPipeServer.<>cDisplayClass9_0.b0(Object[] parameters) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 48 at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 180 [14:57:22.356][NamedPipeServer][Error ] Pipe failure: Pipe is broken. at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode) at System.IO.Pipes.PipeStream.BeginWriteCore(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state) at System.IO.Stream.<>c.b53_0(Stream stream, ReadWriteParameters args, AsyncCallback callback, Object state) at System.Threading.Tasks.TaskFactory1.FromAsyncTrim[TInstance,TArgs](TInstance thisRef, TArgs args, Func5 beginMethod, Func`3 endMethod) at System.IO.Stream.BeginEndWriteAsync(Byte[] buffer, Int32 offset, Int32 count) at System.IO.Stream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) at System.IO.Stream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count) at Docker.Core.Pipe.NamedPipeServer.d13.MoveNext() in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 152 [15:34:07.832][TimeIntegrationService][Info ] Reset [15:34:07.848][PowerShell ][Info ] Run script... [15:34:08.163][PowerShell ][Info ] Run script... [15:34:12.804][BootHelper ][Info ] Cold boot from full shutdown [15:34:25.123][NamedPipeServer][Info ] Version() [15:34:25.123][NamedPipeServer][Info ] Version done in 00:00:00. [15:34:25.123][NamedPipeServer][Info ] GatherDiagnostics(-path C:\Users\rebus\AppData\Local\Temp\ gather -id B545B650-8C32-419F-BA2F-A689BC1D0B91/20190227153425, C:\Users\rebus\AppData\Local\Temp\B545B650-8C32-419F-BA2F-A689BC1D0B91/20190227153425.zip) [15:35:14.706][NamedPipeClient][Info ] Received response for GatherDiagnostics [15:35:14.706][NamedPipeServer][Info ] GatherDiagnostics done in 00:00:49.5834530. [15:35:14.722][GUI ][Info ] Sending Bugsnag report 98bc8fa4-8f5d-46c1-af11-29b040ceaeb5... [15:35:15.128][GUI ][Info ] Bugsnag report 98bc8fa4-8f5d-46c1-af11-29b040ceaeb5 sent [15:37:07.979][CrashReport ][Info ] Uploading diagnostics B545B650-8C32-419F-BA2F-A689BC1D0B91/20190227153425 [15:37:15.088][CrashReport ][Info ] Uploaded succesfully diagnostics B545B650-8C32-419F-BA2F-A689BC1D0B91/20190227153425 [15:39:49.590][ErrorReportWindow][Info ] Open logs

logs.txt

rebussharma commented 5 years ago

Solved:

  1. run cmd as admin
  2. cd %appdata%
  3. remove/force remove Docker from appdata/roaming rd /s /q "Docker"
  4. start docker
docker-robott commented 4 years ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked