docker / for-win

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

Unable to start docker. #6849

Closed jimmy927 closed 4 years ago

jimmy927 commented 4 years ago

Diagnostic ID: FC536F7E-E7F5-437E-940C-10A3D084FA01/20200524230248

Any ideas ?

Looked through https://docs.docker.com/docker-for-windows/troubleshoot/ But nothing there helped.

Windows Home Version 2004 (Beta) OS Build 19041.264 Intel i7 K875 CPU, all virtualization enabled in Bios. Also tried Edge, also didn't start.

Version: 2.3.0.2 (45183)
Channel: stable
Sha1: e9b671cd3cb844cb63ad6fd7c79a4d15424233c4
Started on: 2020/05/25 01:02:03.185
Resources: C:\Program Files\Docker\Docker\resources
OS: Windows 10 Home
Edition: Core
Id: 2004
Build: 19041
BuildLabName: 19041.1.amd64fre.vb_release.191206-1406
File: C:\Users\jimmy\AppData\Local\Docker\log.txt
CommandLine: "C:\Program Files\Docker\Docker\Docker Desktop.exe" 
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[01:02:03.310][GUI               ][Info   ] Starting...
[01:02:03.482][ComponentVersions ][Info   ] Edition community
[01:02:03.482][ComponentVersions ][Info   ] Edition community
[01:02:05.435][AppMigrator       ][Info   ] Current version: 6. Latest version: 6
[01:02:05.607][TrackingSettings  ][Info   ] Crash report and usage statistics are enabled
[01:02:05.607][SegmentApi        ][Info   ] Usage statistic: Identify
[01:02:05.919][SegmentApi        ][Info   ] Usage statistic: appLaunched
[01:02:06.215][ApplicationTemplatesTracking][Info   ] Cannot list templates
[01:02:06.215][SegmentApi        ][Info   ] Usage statistic: eventTemplatesInfo
[01:02:06.215][SegmentApi        ][Info   ] Usage statistic: heartbeat
[01:02:06.481][LoggingMessageHandler][Info   ] [6f1dd07f] <BackendAPIClient start> GET http://backend/version
[01:02:06.543][LoggingMessageHandler][Info   ] [6f1dd07f] <BackendAPIClient end> GET http://backend/version -> 200 OK (took 57ms)
[01:02:06.647][LoggingMessageHandler][Info   ] [e1799194] <BackendAPIClient start> GET http://backend/hyperv/vhdx-size?path=C:%5CProgramData%5CDockerDesktop%5Cvm-data%5CDockerDesktop.vhdx
[01:02:06.662][LoggingMessageHandler][Info   ] [e1799194] <BackendAPIClient end> GET http://backend/hyperv/vhdx-size?path=C:%5CProgramData%5CDockerDesktop%5Cvm-data%5CDockerDesktop.vhdx -> 200 OK (took 7ms)
[01:02:06.662][LoggingMessageHandler][Info   ] [fe8aa3c0] <BackendAPIClient start> POST http://backend/migrate/app
[01:02:06.678][LoggingMessageHandler][Info   ] [fe8aa3c0] <BackendAPIClient end> POST http://backend/migrate/app -> 204 NoContent (took 3ms)
[01:02:06.678][Engines           ][Debug  ] Starting
[01:02:06.725][LoggingMessageHandler][Info   ] [300a2807] <BackendAPIClient start> POST http://backend/versionpack/enable
[01:02:06.772][LoggingMessageHandler][Info   ] [300a2807] <BackendAPIClient end> POST http://backend/versionpack/enable -> 204 NoContent (took 50ms)
[01:02:06.897][GoBackendProcess  ][Info   ] Starting C:\Program Files\Docker\Docker\resources\com.docker.backend.exe -addr unix:\\.\pipe\dockerBackendApiServer
[01:02:06.897][GoBackendProcess  ][Info   ] Started
[01:02:06.897][MutagenProcess    ][Info   ] Starting C:\ProgramData\Docker\cli-plugins\docker-mutagen.exe mutagen daemon run
[01:02:06.912][MutagenProcess    ][Info   ] Started
[01:02:06.928][EngineStateMachine][Debug  ] sending state Docker.ApiServices.StateMachines.StartTransition to state change sink
[01:02:06.928][EngineStateMachine][Debug  ] State Docker.ApiServices.StateMachines.StartTransition sent to state change sink
[01:02:06.928][EngineStateListener][Debug  ] received state Docker.ApiServices.StateMachines.StartTransition from LinuxWSL2
[01:02:06.951][EngineStateNotificationRecorder][Debug  ] Registered state {"State":"starting","Mode":"linux","date":1590361326}
[01:02:06.956][SystrayNotifications][Info   ] Docker is starting
[01:02:06.958][LinuxWSL2Engine   ][Info   ] Terminating lingering processes and wsl distros and patching host file
[01:02:06.962][LoggingMessageHandler][Info   ] [4c579767] <BackendAPIClient start> POST http://backend/dns/refresh-hosts
[01:02:07.039][LoggingMessageHandler][Info   ] [4c579767] <BackendAPIClient end> POST http://backend/dns/refresh-hosts -> 204 NoContent (took 76ms)
[01:02:07.061][MutagenProcess    ][Info   ] [forwarding] Looking for existing sessions
[01:02:07.061][MutagenProcess    ][Info   ] [forwarding] Session manager initialized
[01:02:07.061][MutagenProcess    ][Info   ] [sync] Looking for existing sessions
[01:02:07.061][MutagenProcess    ][Info   ] [sync] Session manager initialized
[01:02:07.133][WSL2Provisioning  ][Error  ] Failed to terminate distro: exit code: -1
 stdout: There is no distribution with the supplied name.

 stderr: 
[01:02:07.144][LinuxWSL2Engine   ][Info   ] Stopping windows side processes
[01:02:07.237][LinuxWSL2Engine   ][Info   ] Stopping engine
[01:02:07.334][LinuxWSL2Engine   ][Warning] Failed to send stop message to distro, will terminate abrubtly: 
[01:02:07.428][WSL2Provisioning  ][Error  ] Failed to terminate distro: exit code: -1
 stdout: There is no distribution with the supplied name.

 stderr: 
[01:02:07.428][EngineStateMachine][Debug  ] sending state Docker.ApiServices.StateMachines.UnstableState to state change sink
[01:02:07.428][EngineStateMachine][Debug  ] State Docker.ApiServices.StateMachines.UnstableState sent to state change sink
[01:02:07.428][EngineStateListener][Debug  ] received state Docker.ApiServices.StateMachines.UnstableState from LinuxWSL2
[01:02:07.428][EngineStateNotificationRecorder][Debug  ] Registered state {"State":"failed to start","Mode":"linux","date":1590361327}
[01:02:07.428][SystrayNotifications][Info   ] Docker Desktop failed to stop
[01:02:07.443][Engines           ][Error  ] Start failed with Failed to terminate distro: exit code: -1
 stdout: There is no distribution with the supplied name.

 stderr: 
   at Docker.Core.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Core\WslCommand.cs:line 119
   at Docker.Engines.WSL2.WSL2Provisioning.<TerminateDistroAsync>d__13.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 119
--- 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 Docker.Engines.WSL2.WSL2Provisioning.<ProvisionAsync>d__6.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 33
--- 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 Docker.Engines.WSL2.LinuxWSL2Engine.<DoStartAsync>d__23.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\LinuxWSL2Engine.cs:line 91
--- 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 Docker.ApiServices.StateMachines.TaskExtensions.<WrapAsyncInCancellationException>d__0.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\TaskExtensions.cs:line 29
--- 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 Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 29
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 51
--- 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 Docker.ApiServices.StateMachines.EngineStateMachine.<StartAsync>d__14.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\EngineStateMachine.cs:line 72
--- 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 Docker.Engines.Engines.<StartAsync>d__24.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\Engines.cs:line 109)
[01:02:08.229][LoggingMessageHandler][Info   ] [b5e9c5f9] <Server start> GET http://unix/versions
[01:02:08.389][LoggingMessageHandler][Info   ] [b5e9c5f9] <Server end> GET http://unix/versions -> 200 OK (took 158ms)
[01:02:08.436][GoBackendProcess  ][Info   ] ⇨ http server started on \\.\pipe\dockerVpnKitControl
[01:02:08.437][GoBackendProcess  ][Info   ] started port-forwarding control server on \\\\.\\pipe\\dockerVpnKitControl
[01:02:08.439][GoBackendProcess  ][Info   ] listening on unix:\\\\.\\pipe\\dockerVpnkitData for data connection
[01:02:08.440][GoBackendProcess  ][Info   ] enabling filesystem caching
[01:02:08.440][GoBackendProcess  ][Info   ] filesystem exports are:  (2)
[01:02:08.440][GoBackendProcess  ][Info   ] volume control server listening on \\\\.\\pipe\\dockerVolume
[01:02:08.440][GoBackendProcess  ][Info   ] ⇨ http server started on \\.\pipe\dockerBackendApiServerForGuest
[01:02:08.441][GoBackendProcess  ][Info   ] ⇨ http server started on \\.\pipe\dockerBackendApiServer
[01:02:08.443][GoBackendProcess  ][Info   ] filesystem server listening on 00000000-0000-0000-0000-000000000000:00001003-facb-11e6-bd58-64006a7986d3
[01:02:08.443][GoBackendProcess  ][Info   ] file ownership will be determined by the calling user (\"fake owner\" mode)
[01:02:08.443][GoBackendProcess  ][Info   ] using mfsymlinks
[01:02:19.741][LoggingMessageHandler][Info   ] [e871b0e1] <Server start> POST http://localhost/notifications/subscriptions
[01:02:19.867][LoggingMessageHandler][Info   ] [35773b0b] <NotificationsClient start> GET http://localhost/ping
[01:02:19.883][LoggingMessageHandler][Info   ] [35773b0b] <NotificationsClient end> GET http://localhost/ping -> 200 OK (took 20ms)
[01:02:19.883][LoggingMessageHandler][Info   ] [e871b0e1] <Server end> POST http://localhost/notifications/subscriptions -> 200 OK (took 136ms)
[01:02:21.672][LoggingMessageHandler][Info   ] [58060763] <Server start> POST http://localhost/usage
[01:02:21.679][LoggingMessageHandler][Info   ] [58060763] <Server end> POST http://localhost/usage -> 200 OK (took 7ms)
[01:02:21.986][LoggingMessageHandler][Info   ] [4fe24d08] <Server start> GET http://localhost/registry/user
[01:02:21.989][LoggingMessageHandler][Info   ] [f2be4195] <Server start> GET http://localhost/docker
[01:02:21.990][LoggingMessageHandler][Info   ] [4fe24d08] <Server end> GET http://localhost/registry/user -> 404 NotFound (took 3ms)
[01:02:21.994][LoggingMessageHandler][Info   ] [2c5299df] <Server start> GET http://localhost/kubernetes
[01:02:21.998][LoggingMessageHandler][Info   ] [6632f4a3] <Server start> GET http://localhost/license/details
[01:02:21.998][LoggingMessageHandler][Info   ] [950d4188] <Server start> GET http://localhost/versions
[01:02:22.011][LoggingMessageHandler][Info   ] [950d4188] <Server end> GET http://localhost/versions -> 200 OK (took 12ms)
[01:02:22.013][LoggingMessageHandler][Info   ] [2c5299df] <Server end> GET http://localhost/kubernetes -> 200 OK (took 19ms)
[01:02:22.013][LoggingMessageHandler][Info   ] [f2be4195] <Server end> GET http://localhost/docker -> 200 OK (took 24ms)
[01:02:22.014][LoggingMessageHandler][Info   ] [6632f4a3] <Server end> GET http://localhost/license/details -> 200 OK (took 16ms)
[01:02:22.020][GoBackendProcess  ][Info   ] external: GET /system/editor 404 \"axios/0.19.0\" \"\
[01:02:25.249][LoggingMessageHandler][Info   ] [859a7a89] <Server start> GET http://localhost/settings
[01:02:25.804][LoggingMessageHandler][Info   ] [859a7a89] <Server end> GET http://localhost/settings -> 200 OK (took 554ms)
[01:02:25.837][GoBackendProcess  ][Info   ] external: GET /features 200 \"axios/0.19.0\" \"\
[01:02:25.925][LoggingMessageHandler][Info   ] [9873b316] <Server start> GET http://localhost/system/disk-usage?path=C:%5CProgramData%5CDockerDesktop%5Cvm-data
[01:02:25.959][LoggingMessageHandler][Info   ] [9873b316] <Server end> GET http://localhost/system/disk-usage?path=C:%5CProgramData%5CDockerDesktop%5Cvm-data -> 200 OK (took 34ms)
[01:02:46.101][LoggingMessageHandler][Info   ] [3b0b9145] <Server start> GET http://localhost/desktop/diagnose
[01:02:47.275][Diagnostics       ][Warning] Starting to gather diagnostics as User : 'C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe' gather.
[01:02:47.275][LoggingMessageHandler][Info   ] [3b0b9145] <Server end> GET http://localhost/desktop/diagnose -> 204 NoContent (took 1178ms)
[01:02:48.040][GoBackendProcess  ][Info   ] external: GET /events 200 \"Go-http-client/1.1\" \"\
[01:02:48.040][GoBackendProcess  ][Info   ] external: GET /forwards/list 200 \"Go-http-client/1.1\" \"\
[01:02:48.041][GoBackendProcess  ][Info   ] mutagen sync list --output json
[01:02:48.075][GoBackendProcess  ][Info   ] mutagen C:\\ProgramData\\Docker\\cli-plugins\\docker-mutagen.exe mutagen sync list --output json: null\n
[01:02:48.075][GoBackendProcess  ][Info   ] external: GET /sync 200 \"Go-http-client/1.1\" \"\
[01:02:54.622][FeedbackWindow    ][Info   ] Open troubleshoot
[01:05:20.633][FeedbackWindow    ][Info   ] Uploading diagnostics...
[01:05:20.636][Diagnostics       ][Info   ] Uploading diagnostics FC536F7E-E7F5-437E-940C-10A3D084FA01/20200524230248
[01:05:21.816][Diagnostics       ][Info   ] Uploaded succesfully diagnostics FC536F7E-E7F5-437E-940C-10A3D084FA01/20200524230248
[01:06:09.912][FeedbackWindow    ][Info   ] Open logs
jimmy927 commented 4 years ago

Same issue with edge

FC536F7E-E7F5-437E-940C-10A3D084FA01/20200526194235

Version: 2.3.1.0 (45408)
Channel: edge
Sha1: 3a5799e5c9bd10401e24448b8f57356f935d62c7
Started on: 2020/05/26 21:41:58.981
Resources: C:\Program Files\Docker\Docker\resources
OS: Windows 10 Home
Edition: Core
Id: 2004
Build: 19041
BuildLabName: 19041.1.amd64fre.vb_release.191206-1406
File: C:\Users\jimmy\AppData\Local\Docker\log.txt
CommandLine: "C:\Program Files\Docker\Docker\Docker Desktop.exe" 
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[21:41:59.155][GUI               ][Info   ] Starting...
[21:41:59.226][ComponentVersions ][Info   ] Edition community
[21:41:59.231][ComponentVersions ][Info   ] Edition community
[21:42:00.230][AppMigrator       ][Info   ] Current version: 6. Latest version: 6
[21:42:00.264][TrackingSettings  ][Info   ] Crash report and usage statistics are enabled
[21:42:00.267][SegmentApi        ][Info   ] Usage statistic: Identify
[21:42:00.463][SegmentApi        ][Info   ] Usage statistic: appLaunched
[21:42:03.674][ApplicationTemplatesTracking][Info   ] Cannot list templates
[21:42:03.674][SegmentApi        ][Info   ] Usage statistic: eventTemplatesInfo
[21:42:03.676][SegmentApi        ][Info   ] Usage statistic: heartbeat
[21:42:04.019][LoggingMessageHandler][Info   ] [191aac7e] <BackendAPIClient start> GET http://backend/version
[21:42:05.053][LoggingMessageHandler][Info   ] [191aac7e] <BackendAPIClient end> GET http://backend/version -> 200 OK (took 1039ms)
[21:42:05.135][LoggingMessageHandler][Info   ] [74eff330] <BackendAPIClient start> GET http://backend/hyperv/vhdx-size?path=C:%5CProgramData%5CDockerDesktop%5Cvm-data%5CDockerDesktop.vhdx
[21:42:05.213][LoggingMessageHandler][Info   ] [74eff330] <BackendAPIClient end> GET http://backend/hyperv/vhdx-size?path=C:%5CProgramData%5CDockerDesktop%5Cvm-data%5CDockerDesktop.vhdx -> 200 OK (took 82ms)
[21:42:05.228][LoggingMessageHandler][Info   ] [0d5cf5d9] <BackendAPIClient start> POST http://backend/migrate/app
[21:42:05.228][LoggingMessageHandler][Info   ] [0d5cf5d9] <BackendAPIClient end> POST http://backend/migrate/app -> 204 NoContent (took 6ms)
[21:42:05.244][Engines           ][Debug  ] Starting
[21:42:05.260][LoggingMessageHandler][Info   ] [46c5d52f] <BackendAPIClient start> POST http://backend/versionpack/enable
[21:42:05.447][LoggingMessageHandler][Info   ] [46c5d52f] <BackendAPIClient end> POST http://backend/versionpack/enable -> 204 NoContent (took 188ms)
[21:42:05.744][GoBackendProcess  ][Info   ] Starting C:\Program Files\Docker\Docker\resources\com.docker.backend.exe -addr unix:\\.\pipe\dockerBackendApiServer
[21:42:06.181][Updater           ][Info   ] Check for update process exited with 4294967295
[21:42:06.353][GoBackendProcess  ][Info   ] Started
[21:42:06.431][EngineStateMachine][Debug  ] sending state Docker.ApiServices.StateMachines.StartTransition to state change sink
[21:42:06.447][EngineStateMachine][Debug  ] State Docker.ApiServices.StateMachines.StartTransition sent to state change sink
[21:42:06.447][EngineStateListener][Debug  ] received state Docker.ApiServices.StateMachines.StartTransition from LinuxWSL2
[21:42:06.463][EngineStateNotificationRecorder][Debug  ] Registered state {"State":"starting","Mode":"linux","date":1590522126}
[21:42:06.463][SystrayNotifications][Info   ] Docker is starting
[21:42:06.463][LinuxWSL2Engine   ][Info   ] Terminating lingering processes and wsl distros and patching host file
[21:42:06.463][LoggingMessageHandler][Info   ] [9ffd506c] <BackendAPIClient start> POST http://backend/dns/refresh-hosts
[21:42:06.660][WSL2Provisioning  ][Error  ] Failed to terminate distro: exit code: -1
 stdout: There is no distribution with the supplied name.

 stderr: 
[21:42:06.676][LinuxWSL2Engine   ][Info   ] Stopping windows side processes
[21:42:06.754][LinuxWSL2Engine   ][Info   ] Stopping engine
[21:42:06.910][LinuxWSL2Engine   ][Warning] Failed to send stop message to distro, will terminate abrubtly: 
[21:42:07.035][WSL2Provisioning  ][Error  ] Failed to terminate distro: exit code: -1
 stdout: There is no distribution with the supplied name.

 stderr: 
[21:42:07.035][EngineStateMachine][Debug  ] sending state Docker.ApiServices.StateMachines.UnstableState to state change sink
[21:42:07.035][EngineStateMachine][Debug  ] State Docker.ApiServices.StateMachines.UnstableState sent to state change sink
[21:42:07.035][EngineStateListener][Debug  ] received state Docker.ApiServices.StateMachines.UnstableState from LinuxWSL2
[21:42:07.035][EngineStateNotificationRecorder][Debug  ] Registered state {"State":"failed to start","Mode":"linux","date":1590522127}
[21:42:07.035][SystrayNotifications][Info   ] Docker Desktop failed to stop
[21:42:07.144][Engines           ][Error  ] Start failed with Failed to terminate distro: exit code: -1
 stdout: There is no distribution with the supplied name.

 stderr: 
   at Docker.Core.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Core\WslCommand.cs:line 119
   at Docker.Engines.WSL2.WSL2Provisioning.<TerminateDistroAsync>d__13.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 119
--- 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 Docker.Engines.WSL2.WSL2Provisioning.<ProvisionAsync>d__6.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 33
--- 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 Docker.Engines.WSL2.LinuxWSL2Engine.<DoStartAsync>d__23.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\LinuxWSL2Engine.cs:line 91
--- 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 Docker.ApiServices.StateMachines.TaskExtensions.<WrapAsyncInCancellationException>d__0.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\TaskExtensions.cs:line 29
--- 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 Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 29
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 51
--- 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 Docker.ApiServices.StateMachines.EngineStateMachine.<StartAsync>d__14.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\EngineStateMachine.cs:line 72
--- 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 Docker.Engines.Engines.<StartAsync>d__23.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\Engines.cs:line 106)
[21:42:07.516][LoggingMessageHandler][Info   ] [9ffd506c] <BackendAPIClient end> POST http://backend/dns/refresh-hosts -> 204 NoContent (took 1038ms)
[21:42:07.666][LoggingMessageHandler][Info   ] [5346dbf7] <Server start> GET http://unix/versions
[21:42:07.770][LoggingMessageHandler][Info   ] [5346dbf7] <Server end> GET http://unix/versions -> 200 OK (took 103ms)
[21:42:07.835][GoBackendProcess  ][Info   ] ⇨ http server started on \\.\pipe\dockerVpnKitControl
[21:42:07.835][GoBackendProcess  ][Info   ] ⇨ http server started on \\.\pipe\dockerBackendApiServerForGuest
[21:42:07.835][GoBackendProcess  ][Info   ] ⇨ http server started on \\.\pipe\dockerBackendApiServer
[21:42:07.835][GoBackendProcess  ][Info   ] started port-forwarding control server on \\\\.\\pipe\\dockerVpnKitControl
[21:42:07.835][GoBackendProcess  ][Info   ] listening on unix:\\\\.\\pipe\\dockerVpnkitData for data connection
[21:42:07.835][GoBackendProcess  ][Info   ] enabling filesystem caching
[21:42:07.835][GoBackendProcess  ][Info   ] filesystem exports are:  (2)
[21:42:07.835][GoBackendProcess  ][Info   ] volume control server listening on \\\\.\\pipe\\dockerVolume
[21:42:07.835][GoBackendProcess  ][Info   ] filesystem server listening on 00000000-0000-0000-0000-000000000000:00001003-facb-11e6-bd58-64006a7986d3
[21:42:07.835][GoBackendProcess  ][Info   ] file ownership will be determined by the calling user (\"fake owner\" mode)
[21:42:07.835][GoBackendProcess  ][Info   ] using mfsymlinks
[21:42:25.096][SegmentApi        ][Info   ] Usage statistic: actionMenuFeedback
[21:42:30.261][LoggingMessageHandler][Info   ] [9066ddb8] <Server start> POST http://localhost/notifications/subscriptions
[21:42:30.370][LoggingMessageHandler][Info   ] [e5360e57] <NotificationsClient start> GET http://localhost/ping
[21:42:30.402][LoggingMessageHandler][Info   ] [e5360e57] <NotificationsClient end> GET http://localhost/ping -> 200 OK (took 24ms)
[21:42:30.402][LoggingMessageHandler][Info   ] [9066ddb8] <Server end> POST http://localhost/notifications/subscriptions -> 200 OK (took 135ms)
[21:42:32.802][LoggingMessageHandler][Info   ] [5e204368] <Server start> GET http://localhost/registry/user
[21:42:32.805][LoggingMessageHandler][Info   ] [5e204368] <Server end> GET http://localhost/registry/user -> 500 InternalServerError (took 2ms)
[21:42:32.805][LoggingMessageHandler][Info   ] [f886a8d9] <Server start> GET http://localhost/docker
[21:42:32.809][LoggingMessageHandler][Info   ] [cc00f44e] <Server start> GET http://localhost/kubernetes
[21:42:32.817][LoggingMessageHandler][Info   ] [5f047ab4] <Server start> GET http://localhost/license/details
[21:42:32.819][LoggingMessageHandler][Info   ] [9a31d72a] <Server start> GET http://localhost/versions
[21:42:32.821][LoggingMessageHandler][Info   ] [9a31d72a] <Server end> GET http://localhost/versions -> 200 OK (took 2ms)
[21:42:32.821][LoggingMessageHandler][Info   ] [f886a8d9] <Server end> GET http://localhost/docker -> 200 OK (took 16ms)
[21:42:32.821][LoggingMessageHandler][Info   ] [cc00f44e] <Server end> GET http://localhost/kubernetes -> 200 OK (took 12ms)
[21:42:32.822][LoggingMessageHandler][Info   ] [5f047ab4] <Server end> GET http://localhost/license/details -> 200 OK (took 4ms)
[21:42:32.847][GoBackendProcess  ][Info   ] external: GET /system/editor 404 \"axios/0.19.0\" \"\
[21:42:34.917][LoggingMessageHandler][Info   ] [9139e7c2] <Server start> GET http://localhost/desktop/diagnose
[21:42:35.085][LoggingMessageHandler][Info   ] [9139e7c2] <Server end> GET http://localhost/desktop/diagnose -> 204 NoContent (took 167ms)
[21:42:35.085][Diagnostics       ][Warning] Starting to gather diagnostics as User : 'C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe' gather.
[21:42:35.932][GoBackendProcess  ][Info   ] external: GET /events 200 \"Go-http-client/1.1\" \"\
[21:42:35.935][GoBackendProcess  ][Info   ] external: GET /forwards/list 200 \"Go-http-client/1.1\" \"\
[21:42:35.937][GoBackendProcess  ][Info   ] external: GET /cache/state 200 \"Go-http-client/1.1\" \"\
[21:43:37.616][FeedbackWindow    ][Info   ] Uploading diagnostics...
[21:43:37.617][Diagnostics       ][Info   ] Uploading diagnostics FC536F7E-E7F5-437E-940C-10A3D084FA01/20200526194235
[21:43:38.713][Diagnostics       ][Info   ] Uploaded succesfully diagnostics FC536F7E-E7F5-437E-940C-10A3D084FA01/20200526194235
[21:43:42.626][FeedbackWindow    ][Info   ] Open logs
jimmy927 commented 4 years ago

Following solved the issue:

PS C:\WINDOWS\system32> wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu-20.04           Running         2
  docker-desktop-test    Stopped         2
  docker-desktop         Installing      2
PS C:\users\jimmy> wsl --unregister docker-desktop
Unregistering...
PS C:\users\jimmy>

Started docker desktop

PS C:\users\jimmy> wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu-20.04           Running         2
  docker-desktop-test    Stopped         2
  docker-desktop         Running         2
  docker-desktop-data    Running         2
PS C:\users\jimmy> docker run -dp 80:80 docker/getting-started
Unable to find image 'docker/getting-started:latest' locally
latest: Pulling from docker/getting-started
aad63a933944: Pull complete
b14da7a62044: Pull complete
343784d40d66: Pull complete
6f617e610986: Pull complete
Digest: sha256:d2c4fb0641519ea208f20ab03dc40ec2a5a53fdfbccca90bef14f870158ed577
Status: Downloaded newer image for docker/getting-started:latest
1bb530983ab199c581c5d63117b37e8b8d7468a6f843c45537bb3bbd6f6d5146
stephen-turner commented 4 years ago

OK, thanks, in that case I'm going to close this ticket.

jimmy927 commented 4 years ago

OK, thanks, in that case I'm going to close this ticket.

I think a better error-message would be nice. It took me several days to figure this one out.

mat007 commented 4 years ago

@simonferquel anything we can do to provide a better error message?

simonferquel commented 4 years ago

Yes, we need to handle the case where the distro is stuck in "Installing" phase (just ditch it).

jimmy927 commented 4 years ago

Yes, we need to handle the case where the distro is stuck in "Installing" phase (just ditch it).

I agree. reopen ?

But as a temporary measure the following would have helped:

simonferquel commented 4 years ago

It is already logged. Let me reopen the issue, I'll add a ticket on our backlog to improve error handling and automatically recover from that case.

jimmy927 commented 4 years ago

Also reinstall didn't help, i think thats unexpected as well, i think your should consider removing the docker-images you installed on uninstall. In that case at least reinstall would have worked.

jimmy927 commented 4 years ago

It is already logged

where ? I can't find or don't understand logfile output.

cybernetics commented 4 years ago

same here. not able to start docker for desktop. using win 10 Pro (v 2004) with WSL2. during the installation I did not select the checkbox to enable WSL2 backend, still, it seems like it's trying to use WSL2 backend.

also submitted docker diagnostic with id: 96DD888D-3B30-4F40-A5F5-BC139A7300EB/20200629051046

getting the following error during startup:

System.InvalidOperationException: Failed to deploy distro docker-desktop to %localappdata%\Docker\wsl\distro: exit code: -1 stdout: Error: 0xffffffff

stderr: at Docker.Core.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Core\WslCommand.cs:line 119 at Docker.Engines.WSL2.WSL2Provisioning.d16.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 142 --- 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 Docker.Engines.WSL2.WSL2Provisioning.d6.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 44 --- 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 Docker.Engines.WSL2.LinuxWSL2Engine.d23.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\LinuxWSL2Engine.cs:line 91 --- 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 Docker.ApiServices.StateMachines.TaskExtensions.d0.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\TaskExtensions.cs:line 29 --- 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 Docker.ApiServices.StateMachines.StartTransition.d5.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 67 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Docker.ApiServices.StateMachines.StartTransition.d5.MoveNext() in C:\workspaces\master\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 92

docker-robott commented 4 years ago

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

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

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