for-win icon indicating copy to clipboard operation
for-win copied to clipboard

com.docker.db.exe crashes

Open phuky94 opened this issue 9 years ago • 7 comments

Expected behavior docker starts when windows starts and does it without error

Actual behavior Docker start fails and yes we did try with the last stable version and the beta version, similar results.

Information There is a small difference between the beta and stable docker as the beta fails even more to start. We get : Unable to write to the database. Exit code: 1 à Docker.Backend.ContainerEngine.Linux.DoStart(Settings settings) à Docker.Backend.ContainerEngine.Linux.Start(Settings settings) à Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.<Register>b__0(Object[] parameters) à Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

And we can see the log :

Version: 1.13.0-rc5-beta35 (9606)
Channel: Beta
Sha1: d603c07c049bd3ef899e3ac09ead2a5db339679d
Started on: 2017/01/09 11:51:55.509
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Pro
Edition: Professional
Id: 1511
Build: 10586
BuildLabName: 10586.672.amd64fre.th2_release_sec.161024-1825
File: C:\Users\phuc.tran\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
[11:51:55.619][GUI            ][Info   ] Starting...
[11:51:55.931][Tracking       ][Info   ] Crash report and usage statistics are enabled
[11:51:55.947][SegmentApi     ][Info   ] Usage statistic: appLaunched
[11:51:56.031][NamedPipeClient][Info   ] Sending Version()...
[11:51:56.093][NamedPipeClient][Info   ] Received response for Version
[11:51:56.093][SegmentApi     ][Info   ] Usage statistic: heartbeat
[11:51:53.150][BackendServer  ][Info   ] Started
[11:51:56.078][NamedPipeServer][Info   ] Version()
[11:51:56.078][NamedPipeServer][Info   ] Version done in 00:00:00.
[11:51:56.171][Updater        ][Info   ] Checking for updates on channel Beta...
[11:51:56.171][NamedPipeClient][Info   ] Sending Start(Docker.Core.Settings)...
[11:51:56.187][NamedPipeServer][Info   ] Start(Docker.Core.Settings)
[11:51:56.203][PowerMode      ][Info   ] Stop
[11:51:56.203][HyperV         ][Info   ] Stop
[11:51:56.234][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[11:51:56.234][PowerShell     ][Info   ] Creating a Runspace Pool...
[11:51:56.296][Updater        ][Info   ] Local build 9606 is as good as the remote 9606 on channel Beta
[11:51:56.755][PowerShell     ][Info   ] Runspace Pool created (Min=1, Max=2)
[11:51:56.879][HyperV         ][Info   ] Script started at 11:51:56.879
[11:51:58.691][HyperV         ][Info   ] Module loaded at 11:51:58.691
[11:51:59.186][HyperV         ][Info   ] VM MobyLinuxVM does not exist
[11:51:59.186][HyperV         ][Debug  ] [stop] took 00:00:02.9837302 to run
[11:51:59.186][OptimizeDisk   ][Info   ] Optimize
[11:51:59.202][PowerShell     ][Info   ] Run script...
[11:51:59.218][Moby           ][Info   ] Stop
[11:51:59.233][HyperVGuids    ][Info   ] Installing GUIDs...
[11:51:59.233][PowerMode      ][Info   ] Start
[11:51:59.233][HyperV         ][Info   ] Create
[11:51:59.233][PowerShell     ][Info   ] Run script with parameters: -Create True -VhdPathOverride  -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[11:51:59.249][HyperVGuids    ][Info   ] GUIDs installed
[11:51:59.249][Firewall       ][Info   ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[11:51:59.249][HyperV         ][Info   ] Script started at 11:51:59.249
[11:51:59.296][HyperV         ][Info   ] Module loaded at 11:51:59.296
[11:51:59.499][HyperV         ][Info   ] Enabled workaround for Build 10586 VMSwitch issue
[11:52:00.655][Firewall       ][Info   ] Ports are opened
[11:52:04.620][HyperV         ][Info   ] Creating Switch: DockerNAT...
[11:52:06.496][HyperV         ][Info   ] Switch created.
[11:52:07.268][HyperV         ][Info   ] Set IP address on switch
[11:52:08.471][HyperV         ][Info   ] Creating VM MobyLinuxVM...
[11:52:09.346][HyperV         ][Info   ] Setting CPUs to 2 and Memory to 2048 MB
[11:52:09.658][HyperV         ][Info   ] Attach VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx
[11:52:10.176][HyperV         ][Info   ] Connect Internal Switch DockerNAT
[11:52:10.303][HyperV         ][Info   ] Attach DVD C:\Program Files\Docker\Docker\Resources\mobylinux.iso
[11:52:11.328][HyperV         ][Info   ] VM created.
[11:52:11.328][HyperV         ][Debug  ] [create] took 00:00:12.0951166 to run
[11:52:11.328][PowerShell     ][Info   ] Run script '(Get-VM MobyLinuxVM).Id.Guid'...
[11:52:11.375][DataKit        ][Info   ] Starting C:\Program Files\Docker\Docker\Resources\com.docker.db.exe --url hyperv-connect://293d45f4-c86a-478f-bb8c-ca981c1a8010,\\.\pipe\dockerDataBase --color never
[11:52:11.469][DataKit        ][Info   ] Started
[11:52:11.469][Database       ][Info   ] Generating CA Cert Bundle
[11:52:11.485][Database       ][Info   ] CA Cert Bundle Generated
[11:52:11.688][DataKit        ][Info   ] Starting com.docker.db.exe 0.7.0-34-g6f04213 ...
[11:52:11.766][DataKit        ][Info   ] Thread 1 killed on uncaught exception Unix.Unix_error(40, "send_notification", "")
[11:52:11.782][DataKit        ][Info   ] com.docker.db.exe: internal error, uncaught exception:
[11:52:11.782][DataKit        ][Info   ]                    Unix.Unix_error(Unix.ENOTSOCK, "select", "")
[11:52:11.782][DataKit        ][Info   ]                    
[11:52:11.782][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:11.782][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:11.782][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:11.782][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:11.782][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:11.782][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:11.782][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:11.782][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:12.048][DataKit        ][Error  ] Process died
[11:52:13.350][Database       ][Error  ] 2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:12 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:13 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:13 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:13.350][Database       ][Error  ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
[11:52:14.366][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:14.366][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:14.366][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:14.366][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:14.366][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:14.366][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:14.366][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:14.366][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:15.872][Database       ][Error  ] 2017/01/09 11:52:14 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:14 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:14 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:14 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:15 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:15 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:15 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:15 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:15 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:15 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:15 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:15.872][Database       ][Error  ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
[11:52:16.883][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:16.883][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:16.883][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:16.883][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:16.883][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:16.883][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:16.883][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:16.883][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:18.389][Database       ][Error  ] 2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:17 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:18 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:18 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:18.389][Database       ][Error  ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
[11:52:19.395][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:19.395][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:19.395][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:19.395][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:19.395][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:19.395][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:19.395][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:19.395][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:20.891][Database       ][Error  ] 2017/01/09 11:52:19 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:19 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:19 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:19 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:20 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:20 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:20 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:20 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:20 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:20 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:20 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:20.891][Database       ][Error  ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
[11:52:21.908][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:21.908][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:21.908][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:21.908][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:21.908][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:21.908][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:21.908][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:21.908][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:23.391][Database       ][Error  ] 2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:22 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:23 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:23 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:23.391][Linux          ][Error  ] Failed to start: Unable to write to the database. Exit code: 1. Let's retry
[11:52:23.391][PowerShell     ][Info   ] Run script...
[11:52:25.822][HyperV         ][Info   ] Hyper-V is running
[11:52:25.822][PowerMode      ][Info   ] Stop
[11:52:25.822][HyperV         ][Info   ] Stop
[11:52:25.822][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[11:52:25.838][HyperV         ][Info   ] Script started at 11:52:25.838
[11:52:25.869][HyperV         ][Info   ] Module loaded at 11:52:25.869
[11:52:25.901][HyperV         ][Info   ] VM MobyLinuxVM is stopped
[11:52:25.901][HyperV         ][Debug  ] [stop] took 00:00:00.0781219 to run
[11:52:25.901][OptimizeDisk   ][Info   ] Optimize
[11:52:25.901][PowerShell     ][Info   ] Run script...
[11:52:27.169][Moby           ][Info   ] Stop
[11:52:27.169][HyperV         ][Info   ] Destroy
[11:52:27.169][PowerShell     ][Info   ] Run script with parameters: -Destroy True -KeepVolume True...
[11:52:27.185][HyperV         ][Info   ] Script started at 11:52:27.185
[11:52:27.216][HyperV         ][Info   ] Module loaded at 11:52:27.216
[11:52:27.231][HyperV         ][Info   ] VM MobyLinuxVM is stopped
[11:52:27.231][HyperV         ][Info   ] Destroying Switch DockerNAT...
[11:52:29.598][HyperV         ][Info   ] Removing VM MobyLinuxVM...
[11:52:29.645][HyperV         ][Debug  ] [destroy] took 00:00:02.4762603 to run
[11:52:29.645][Firewall       ][Info   ] Closing ports...
[11:52:30.770][Firewall       ][Info   ] Ports are closed
[11:52:30.770][HyperVGuids    ][Info   ] Removing GUIDs...
[11:52:30.770][HyperVGuids    ][Info   ] GUIDs removed
[11:52:30.770][HyperV         ][Info   ] Create
[11:52:30.770][PowerShell     ][Info   ] Run script with parameters: -Create True -VhdPathOverride  -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[11:52:30.786][HyperV         ][Info   ] Script started at 11:52:30.786
[11:52:30.817][HyperV         ][Info   ] Module loaded at 11:52:30.817
[11:52:30.864][HyperV         ][Info   ] Enabled workaround for Build 10586 VMSwitch issue
[11:52:34.395][HyperV         ][Info   ] Creating Switch: DockerNAT...
[11:52:35.928][HyperV         ][Info   ] Switch created.
[11:52:36.024][HyperV         ][Info   ] Set IP address on switch
[11:52:36.040][HyperV         ][Info   ] Creating VM MobyLinuxVM...
[11:52:36.555][HyperV         ][Info   ] Setting CPUs to 2 and Memory to 2048 MB
[11:52:36.711][HyperV         ][Info   ] Attach VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx
[11:52:37.039][HyperV         ][Info   ] Connect Internal Switch DockerNAT
[11:52:37.133][HyperV         ][Info   ] Attach DVD C:\Program Files\Docker\Docker\Resources\mobylinux.iso
[11:52:37.869][HyperV         ][Info   ] VM created.
[11:52:37.869][HyperV         ][Debug  ] [create] took 00:00:07.0985225 to run
[11:52:37.869][PowerMode      ][Info   ] Stop
[11:52:37.869][HyperV         ][Info   ] Stop
[11:52:37.869][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[11:52:37.884][HyperV         ][Info   ] Script started at 11:52:37.884
[11:52:37.916][HyperV         ][Info   ] Module loaded at 11:52:37.916
[11:52:37.931][HyperV         ][Info   ] VM MobyLinuxVM is stopped
[11:52:37.931][HyperV         ][Debug  ] [stop] took 00:00:00.0623466 to run
[11:52:37.931][OptimizeDisk   ][Info   ] Optimize
[11:52:37.931][PowerShell     ][Info   ] Run script...
[11:52:39.216][Moby           ][Info   ] Stop
[11:52:39.226][HyperV         ][Info   ] Create
[11:52:39.226][PowerMode      ][Info   ] Start
[11:52:39.226][HyperVGuids    ][Info   ] Installing GUIDs...
[11:52:39.227][Firewall       ][Info   ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[11:52:39.227][PowerShell     ][Info   ] Run script with parameters: -Create True -VhdPathOverride  -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[11:52:39.229][HyperVGuids    ][Info   ] GUIDs installed
[11:52:39.235][HyperV         ][Info   ] Script started at 11:52:39.234
[11:52:39.319][HyperV         ][Info   ] Module loaded at 11:52:39.319
[11:52:39.432][HyperV         ][Info   ] Using existing Switch: DockerNAT
[11:52:39.463][HyperV         ][Info   ] Using existing Switch IP address
[11:52:39.494][HyperV         ][Info   ] Setting CPUs to 2 and Memory to 2048 MB
[11:52:39.619][HyperV         ][Info   ] Connect Internal Switch DockerNAT
[11:52:39.869][HyperV         ][Info   ] VM created.
[11:52:39.869][HyperV         ][Debug  ] [create] took 00:00:00.6421538 to run
[11:52:39.869][PowerShell     ][Info   ] Run script '(Get-VM MobyLinuxVM).Id.Guid'...
[11:52:39.885][DataKit        ][Info   ] Starting C:\Program Files\Docker\Docker\Resources\com.docker.db.exe --url hyperv-connect://c1dbf3d7-a09a-4d9a-9a0e-f7578ee2b9de,\\.\pipe\dockerDataBase --color never
[11:52:39.916][DataKit        ][Info   ] Started
[11:52:39.916][Database       ][Info   ] Generating CA Cert Bundle
[11:52:39.947][Database       ][Info   ] CA Cert Bundle Generated
[11:52:40.228][DataKit        ][Info   ] Starting com.docker.db.exe 0.7.0-34-g6f04213 ...
[11:52:40.307][DataKit        ][Info   ] Thread 1 killed on uncaught exception Unix.Unix_error(40, "send_notification", "")
[11:52:40.322][DataKit        ][Info   ] com.docker.db.exe: internal error, uncaught exception:
[11:52:40.322][DataKit        ][Info   ]                    Unix.Unix_error(Unix.ENOTSOCK, "select", "")
[11:52:40.322][DataKit        ][Info   ]                    
[11:52:40.338][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:40.338][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:40.338][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:40.338][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:40.338][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:40.338][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:40.338][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:40.338][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:40.588][DataKit        ][Error  ] Process died
[11:52:40.613][Firewall       ][Info   ] Ports are opened
[11:52:41.852][Database       ][Error  ] 2017/01/09 11:52:40 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:40 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:40 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:40 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:41 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:41 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:41 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:41 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:41 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:41 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:41 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:41.852][Database       ][Error  ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
[11:52:42.868][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:42.868][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:42.868][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:42.868][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:42.868][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:42.868][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:42.868][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:42.868][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:44.353][Database       ][Error  ] 2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:43 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:44 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:44 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:44.353][Database       ][Error  ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
[11:52:45.369][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:45.369][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:45.369][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:45.369][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:45.369][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:45.369][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:45.369][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:45.369][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:46.852][Database       ][Error  ] 2017/01/09 11:52:45 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:45 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:45 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:45 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:46 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:46 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:46 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:46 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:46 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:46 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:46 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:46.852][Database       ][Error  ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
[11:52:47.867][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:47.867][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:47.867][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:47.867][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:47.867][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:47.867][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:47.867][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:47.867][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:49.347][Database       ][Error  ] 2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:48 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:49 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:49 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:49.347][Database       ][Error  ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
[11:52:50.357][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[11:52:50.357][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[11:52:50.357][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[11:52:50.357][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[11:52:50.357][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[11:52:50.357][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]}
[11:52:50.357][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[11:52:50.357][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[11:52:51.839][Database       ][Error  ] 2017/01/09 11:52:50 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:50 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:50 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:50 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:51 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:51 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:51 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:51 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:51 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:51 Retry dialing \\.\pipe\dockerDataBase in 100ms
2017/01/09 11:52:51 Failed to contact the database on \\.\pipe\dockerDataBase: open \\.\pipe\dockerDataBase: Le fichier spécifié est introuvable.

[11:52:51.839][PowerMode      ][Info   ] Stop
[11:52:51.839][HyperV         ][Info   ] Stop
[11:52:51.839][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[11:52:51.839][HyperV         ][Info   ] Script started at 11:52:51.839
[11:52:51.870][HyperV         ][Info   ] Module loaded at 11:52:51.870
[11:52:51.902][HyperV         ][Info   ] VM MobyLinuxVM is stopped
[11:52:51.902][HyperV         ][Debug  ] [stop] took 00:00:00.0625319 to run
[11:52:51.902][OptimizeDisk   ][Info   ] Optimize
[11:52:51.902][PowerShell     ][Info   ] Run script...
[11:52:53.136][Moby           ][Info   ] Stop
[11:52:53.136][HyperV         ][Info   ] Destroy
[11:52:53.136][PowerShell     ][Info   ] Run script with parameters: -Destroy True -KeepVolume True...
[11:52:53.152][HyperV         ][Info   ] Script started at 11:52:53.152
[11:52:53.183][HyperV         ][Info   ] Module loaded at 11:52:53.183
[11:52:53.199][HyperV         ][Info   ] VM MobyLinuxVM is stopped
[11:52:53.199][HyperV         ][Info   ] Destroying Switch DockerNAT...
[11:52:55.535][HyperV         ][Info   ] Removing VM MobyLinuxVM...
[11:52:55.580][HyperV         ][Debug  ] [destroy] took 00:00:02.4434825 to run
[11:52:55.580][Firewall       ][Info   ] Closing ports...
[11:52:56.647][Firewall       ][Info   ] Ports are closed
[11:52:56.647][HyperVGuids    ][Info   ] Removing GUIDs...
[11:52:56.647][HyperVGuids    ][Info   ] GUIDs removed
[11:52:56.647][NamedPipeClient][Error  ] Unable to send Start: Unable to write to the database. Exit code: 1
[11:52:56.647][NamedPipeServer][Error  ] Unable to execute Start: Unable to write to the database. Exit code: 1    à Docker.Backend.ContainerEngine.Linux.DoStart(Settings settings)
   à Docker.Backend.ContainerEngine.Linux.Start(Settings settings)
   à Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.<Register>b__0(Object[] parameters)
   à Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)
[11:52:56.663][Notifications  ][Error  ] Unable to write to the database. Exit code: 1
[11:52:56.663][CrashReport    ][Info   ] Preparing package to send with the diagnostics
[11:52:56.678][NamedPipeClient][Info   ] Sending DownloadVpnKitLogs(C:\Users\phuc.tran\AppData\Local\Temp\ng4modgb.2om\pcap.tar)...
[11:52:56.678][NamedPipeClient][Info   ] Sending DownloadVmLogs(C:\Users\phuc.tran\AppData\Local\Temp\ng4modgb.2om\mobyLogs.tar)...
[11:52:56.678][NamedPipeClient][Info   ] Sending DownloadWinContainersDebugInfo(C:\Users\phuc.tran\AppData\Local\Temp\ng4modgb.2om\win_containers)...
[11:52:56.678][NamedPipeClient][Info   ] Sending GetDebugInfo()...
[11:52:56.710][NamedPipeClient][Info   ] Received response for DownloadVpnKitLogs
[11:52:56.678][NamedPipeServer][Info   ] DownloadVmLogs(C:\Users\phuc.tran\AppData\Local\Temp\ng4modgb.2om\mobyLogs.tar)
[11:52:56.678][NamedPipeServer][Info   ] DownloadVpnKitLogs(C:\Users\phuc.tran\AppData\Local\Temp\ng4modgb.2om\pcap.tar)
[11:52:56.678][NamedPipeServer][Info   ] GetDebugInfo()
[11:52:56.710][NamedPipeClient][Info   ] Received response for DownloadVmLogs
[11:52:56.678][VpnKit         ][Warning] Unable to download logs: Le délai d'attente de l'opération a expiré.
[11:52:56.678][NamedPipeServer][Info   ] DownloadVpnKitLogs done in 00:00:00.
[11:52:56.694][NamedPipeServer][Info   ] DownloadWinContainersDebugInfo(C:\Users\phuc.tran\AppData\Local\Temp\ng4modgb.2om\win_containers)
[11:52:56.694][PowerShell     ][Info   ] Run script '(Get-VM MobyLinuxVM).Id.Guid'...
[11:52:56.710][HyperV         ][Warning] Unable to download logs: L’exécution de la commande s’est arrêtée, car la variable de préférence « ErrorActionPreference » ou le paramètre courant a la valeur Stop : Hyper-V n'a trouvé aucun ordinateur virtuel portant le nom « MobyLinuxVM ».
[11:52:56.710][NamedPipeServer][Info   ] DownloadVmLogs done in 00:00:00.0312498.
[11:53:01.363][NamedPipeClient][Info   ] Received response for DownloadWinContainersDebugInfo
[11:53:01.363][NamedPipeServer][Info   ] DownloadWinContainersDebugInfo done in 00:00:04.6690805.
[11:53:09.468][NamedPipeServer][Info   ] GetDebugInfo done in 00:00:12.7897102.
[11:53:09.471][NamedPipeClient][Info   ] Received response for GetDebugInfo
[11:53:09.645][CrashReport    ][Info   ] Uploading diagnostics...
[11:53:12.039][CrashReport    ][Info   ] Diagnostics successfully uploaded
[11:53:12.048][GUI            ][Info   ] Sending Bugsnag report b0ed90ba-93e2-40fd-984e-c176cfa1942c...
[11:53:13.325][GUI            ][Info   ] Bugsnag report b0ed90ba-93e2-40fd-984e-c176cfa1942c sent
[11:54:01.932][ErrorReportWindow][Info   ] Open logs

Any help please? Thanks in advance!

phuky94 avatar Jan 10 '17 09:01 phuky94

@phuky94 thanks for the report. It looks like one of the components in Docker for Windows (com.docker.db.exe) crashes on start while trying an operation on a Named Pipe. This is unusual...A few questions

Does this happen every time you start docker or only sometimes?

When you quit the application could you check which docker processes are running (in an elevate powershell, using Get-Process *docker*. Could you give us the output?

After quitting the application could you open an elevated powershell and try to start the process manually. Something like:

cd 'C:\Program Files\Docker\Docker\resources\'
.\com.docker.db.exe --url hyperv-connect://a99e7cd6-862d-4a35-90cb-36caffccd419,\\.\pipe\dockerDataBase -vvvv

(The UUID passed in doesn't matter for this test). If this fails could you send us the output?

Do you have any VirusScanner/Firewall software running apart from the standard Windows Defender/Firewall?

Thanks

rn avatar Jan 11 '17 16:01 rn

@pcharvet reported the same issue on #306

rn avatar Jan 11 '17 16:01 rn

I'm closing due to lack of activity. Please re-open if the problem persists with the latest Beta and you have the information suggested above. Thanks

rn avatar Jan 20 '17 12:01 rn

I'm running into the same problem. My Windows machine is a virtual one, downloaded from the Windows Dev Center, and I downloaded the Docker for Windows from the website (I tried stable and beta).

When I start, I get the "Unable to write to the database." as mentioned above. The log file is pretty similar to the one by @phuky94, except all in English.

This is what I get when I run the command as suggested by @rneugeba:

PS C:\Users\User> cd 'C:\Program Files\Docker\Docker\resources\'
PS C:\Program Files\Docker\Docker\resources> .\com.docker.db.exe --url hyperv-connect://a99e7cd6-862d-4a35-90cb-36caffcc
d419,\\.\pipe\dockerDataBase -vvvv
Starting com.docker.db.exe 0.7.0-34-g6f04213 ...
com.docker.db.exe: [DEBUG] Using in-memory store (use --git for a disk-backed store)
com.docker.db.exe: [ERROR] Failed to set up server socket listening on hyperv-connect://a99e7cd6-862d-4a35-90cb-36caffcc
d419: Unix.Unix_error(Unix.ENETDOWN, "socket", "")
com.docker.db.exe: internal error, uncaught exception:
                   (Failure accept_forever)

PS C:\Program Files\Docker\Docker\resources>

Some version info:

Version: 1.13.0-beta39 (9861)
Channel: beta
Sha1: 5e9e408b08db5110e62b0b8fa0643aa624a1a468
Started on: 2017/01/28 07:35:09.762
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Enterprise Evaluation
Edition: EnterpriseEval
Id: 1607
Build: 14393
BuildLabName: 14393.693.amd64fre.rs1_release.161220-1747

The crash window indicates that a report with this ID was uploaded somewhere, so maybe this helps: 3DBBB076-5797-49BA-BB3B-938C1E6147D2.

Breuls avatar Jan 28 '17 15:01 Breuls

@rneugeba I encountered the same error using the current stable version, even after reinstalling Windows,with standard Windows Defender/Firewall.

Bugsnag report c608325a-93d3-4c31-b6e1-481e3d476a9d

Version: 1.13.1 (10072) Channel: Stable Sha1: 94675c5a765e2c51fba6c10b87e0a1a4ed3dde51 Started on: 2017/02/25 03:27:17.671 Resources: C:\Program Files\Docker\Docker\Resources OS: Windows 10 Pro Edition: Professional Id: 1607 Build: 14393 BuildLabName: 14393.693.amd64fre.rs1_release.161220-1747

Here is the following the output you need.

PS C:\Users\sdcxv> Get-Process *docker*

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
   1047      62   226564     239784              2820   0 com.docker.service
    789      66   187364     152760       4.05  11912   1 Docker for Windows


PS C:\Users\sdcxv> Get-Process *docker*

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
   1123      63   227204     240120              2820   0 com.docker.service

PS C:\Program Files\Docker\Docker\resources> .\com.docker.db.exe --url hyperv-connect://f3fcdbbd-7153-4601-9daf-53f94f5f
cfbd,\\.\pipe\dockerDataBase --color never
Starting com.docker.db.exe 0.7.0-34-g6f04213 ...
Thread 1 killed on uncaught exception Unix.Unix_error(40, "send_notification", "")
com.docker.db.exe: internal error, uncaught exception:
                   Unix.Unix_error(Unix.ENOTSOCK, "select", "")

Sdcxv avatar Feb 24 '17 19:02 Sdcxv

I solved this issue by uninstalling Web Companion. Spyware can be a potential issue for named pipe communication.

kostapsimoulis avatar Jun 15 '17 03:06 kostapsimoulis

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

docker-robott avatar Jun 19 '20 03:06 docker-robott