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

[NamedPipeServer][Error ] Pipe failure: Pipe hasn't been connected yet

Open yvesdelvaux opened this issue 9 years ago • 63 comments

Expected behavior

I can restart Docker without restart my pc.

Actual behavior

Docker doesn't restart and freeze.

Information

  • Diagnostic ID : 6C2349F8-BC33-4B0F-9D88-DA5E76C8BD03/2017-02-10_14-32-36
  • Reproductible case : Update the docker or restart it
  • host distribution and version (Windows version, build number, etc) Windows 10 14393

Steps to reproduce the behavior

  1. Then the Docker is running, change anything in configuration and restart it
  2. Docker is in the state "Docker is starting" but it doesn't start. It seems to be in freeze state.

yvesdelvaux avatar Feb 10 '17 13:02 yvesdelvaux

Thanks for your report. Something seems to have gone wrong during the upgrade process. It's not clear what, but could you try:

  • Reset to factory defaults (from the whale menu, Settings, reset)
  • If that doesn't work, manually uninstall docker and download the latest installer from https://docs.docker.com/docker-for-windows/

Thanks

rn avatar Feb 10 '17 16:02 rn

@mmisztal1980 reported the same error with exactly the same error message on https://github.com/docker/for-win/issues/487 with diagnostics id 5239E3DB-D0D2-47AE-B158-5D03C5A0619A/2017-02-10_22-19-15

the error message is:

[16:35:11.136][NamedPipeServer][Error  ] Pipe failure: Pipe hasn't been connected yet.    at System.IO.Pipes.PipeStream.CheckReadOperations()
   at System.IO.Pipes.PipeStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
   at System.IO.Stream.<>c.<BeginEndReadAsync>b__43_0(Stream stream, ReadWriteParameters args, AsyncCallback callback, Object state)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncTrim[TInstance,TArgs](TInstance thisRef, TArgs args, Func`5 beginMethod, Func`3 endMethod)
   at System.IO.Stream.BeginEndReadAsync(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Stream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
   at System.IO.Stream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count)
   at Docker.Core.Pipe.NamedPipeServer.<HandleRequestAsync>d__11.MoveNext()
[16:35:11.156][Notifications  ][Error  ] Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.

rn avatar Feb 10 '17 22:02 rn

https://github.com/docker/for-win/issues CAFC569A-DA17-4E8C-ABA5-D9AF5DFA1809/2017-02-10_16-08-08 error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

Very frustrating for a newbie.

dvprao avatar Feb 11 '17 00:02 dvprao

@dvprao thanks for the report. I have already filed on internal issue

rn avatar Feb 11 '17 00:02 rn

@rneugeba It's impossible to use the "reset". All the options in the "Reset" pane are grayed out.

mmisztal1980 avatar Feb 11 '17 02:02 mmisztal1980

@rneugeba I've reinstalled docker for windows using the latest stable installer. Same issue.

mmisztal1980 avatar Feb 11 '17 02:02 mmisztal1980

@mmisztal1980 could you provide a diagnostics ID? thanks

rn avatar Feb 11 '17 09:02 rn

Latest uploaded diagnostic: 5239E3DB-D0D2-47AE-B158-5D03C5A0619A/2017-02-11_10-55-40

mmisztal1980 avatar Feb 11 '17 09:02 mmisztal1980

@mmisztal1980 thanks for the quick response. Your issue seems different. could you file a separate issue? Thanks

rn avatar Feb 11 '17 10:02 rn

I already did, but you closed it :D #487

mmisztal1980 avatar Feb 11 '17 10:02 mmisztal1980

Ah, sorry. Yes, you other logs under 5239E3DB-D0D2-47AE-B158-5D03C5A0619A/2017-02-10_22-19-15 do show this error. Sorry, for the confusion

rn avatar Feb 11 '17 10:02 rn

No problem, I suppose we can reopen it and continue there?

mmisztal1980 avatar Feb 11 '17 10:02 mmisztal1980

no, your other logs contain the same error as the report on this issue. we need to look into why there is a backtrace and why subsequently nothing works anymore.

Did older versions work for you? Did you install/update any software, in particular AV software?

rn avatar Feb 11 '17 10:02 rn

It used to work up to a week ago, there was an update recently, but it didn't work by then. My AV software is ESET NOD32, but I haven't made any updates to it's configuration recently.

From my perspective it stopped working silently, I haven't noticed exactly when and why.

mmisztal1980 avatar Feb 11 '17 10:02 mmisztal1980

Could you try disabling the AV software and see if it works?

Also, could you try to revert to 1.12.6 from here https://download.docker.com/win/stable/1.12.6.9655/InstallDocker.msi

and also 1.13.0 from here: https://download.docker.com/win/stable/1.13.0.9795/InstallDocker.msi

that would help us narrow down if it's something we changed.

Thanks

rn avatar Feb 11 '17 11:02 rn

I've disabled the following features in NOD:

  • HIPS (host intrusion prevention system)
  • Real-time file system protection

No effect, docker is still "stuck" in "Docker is starting state". I'll try the older versions next.

mmisztal1980 avatar Feb 11 '17 12:02 mmisztal1980

v1.12.6 :

Docker seems to be stuck again. Last meaninfgul enrtry in the log suggests that it was trying to create the Hyper-V NAT switch.

Channel: Stable
Sha1: 258480fd147da7888a440ed7808d255c0fb15bb7
Started on: 2017/02/11 13:05:41.563
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Enterprise
Edition: Enterprise
Id: 1607
Build: 14393
BuildLabName: 14393.693.amd64fre.rs1_release.161220-1747
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[13:05:41.509][Tracking       ][Info   ] Crash report and usage statistics are enabled
[13:05:41.585][SegmentApi     ][Info   ] Usage statistic: appLaunched
[13:05:41.653][NamedPipeClient][Info   ] Sending Version()...
[13:05:41.653][NamedPipeClient][Info   ] Received response for Version
[13:05:41.669][SegmentApi     ][Info   ] Usage statistic: heartbeat
[13:05:36.255][BackendServer  ][Info   ] Started
[13:05:36.256][Moby           ][Info   ] Connecting...
[13:05:41.653][NamedPipeServer][Info   ] Version()
[13:05:41.653][NamedPipeServer][Info   ] Version done.
[13:05:41.872][Notifications  ][Info   ] Docker is starting...
[13:05:41.872][Updater        ][Info   ] Checking for updates on channel Stable...
[13:05:41.887][NamedPipeClient][Info   ] Sending Start(Docker.Core.Settings)...
[13:05:41.887][NamedPipeServer][Info   ] Start(Docker.Core.Settings)
[13:05:41.887][HyperVGuids    ][Info   ] Installing GUIDs...
[13:05:41.903][HyperVGuids    ][Info   ] GUIDs installed
[13:05:41.903][Firewall       ][Info   ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[13:05:42.012][Updater        ][Info   ] We got a new version 10072 which is newer than 9655, asking user.
[13:05:42.012][SegmentApi     ][Info   ] Usage statistic: eventShowUpdateWindows
[13:05:42.327][Updater        ][Info   ] Check for updates done.
[13:05:42.984][Firewall       ][Info   ] Ports are opened
[13:05:42.986][HyperV         ][Info   ] Create
[13:05:42.993][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[13:05:45.144][HyperV         ][Info   ] Creating Switch: DockerNAT...
[13:06:14.242][SegmentApi     ][Info   ] Usage statistic: actionMenuSettings
[13:06:18.475][FeedbackSettings][Info   ] Open logs
[13:08:02.903][SegmentApi     ][Info   ] Usage statistic: actionMenuSettings
[13:09:17.835][FeedbackSettings][Info   ] Open logs
[13:10:24.675][SegmentApi     ][Info   ] Usage statistic: actionMenuFeedback
[13:10:26.063][FeedbackSettings][Info   ] Upload diagnostic
[13:10:26.066][NamedPipeClient][Info   ] Sending GetDebugInfo()...
[13:10:26.068][NamedPipeServer][Info   ] GetDebugInfo()
[13:10:37.591][NamedPipeServer][Info   ] GetDebugInfo done.
[13:10:37.605][NamedPipeClient][Info   ] Received response for GetDebugInfo
[13:10:37.612][Program        ][Info   ] Sending Bugsnag report e2ff260c-062c-4251-9040-c0ce6d2a7fb8...
[13:10:39.181][Program        ][Info   ] Bugsnag report e2ff260c-062c-4251-9040-c0ce6d2a7fb8 sent
[13:10:39.200][NamedPipeClient][Info   ] Sending DownloadVmLogs()...
[13:10:39.201][NamedPipeServer][Info   ] DownloadVmLogs()
[13:10:39.204][PowerShell     ][Info   ] Run script...

I'm attempting to upload a diagnostic but I'm not getting the UI to present me with the diagnostic's ID.

Hyper-V (MobyLinuxVM)

Last logs from the MobyLinuxVM originate from Jan29th. 'MobyLinuxVM' was shut down using the Shutdown Integration Component with parameters: Force = true, Reason = '' (Virtual machine ID AD7C949E-4A1C-4ACA-888E-119AED457A98)

Hyper-V (Networking)

Lat logs regarding the DockerNAT switch originate from Feb7th. Switch deleted, name='F8FC6FFE-90F0-46E8-9AC9-91ADBC1A0426', friendly name='DockerNAT'. I may have been reinstalling my NW drivers at that time.

mmisztal1980 avatar Feb 11 '17 12:02 mmisztal1980

Thanks for the answer. I have installed the new version manually. That's work for the moment. But the next update can fail if this issue is not solved.

I already have this problem at the previous update. The issue appears with the Windows container version of docker.

yvesdelvaux avatar Feb 11 '17 14:02 yvesdelvaux

+1

jhagege avatar Feb 12 '17 12:02 jhagege

@yvesdelvaux thanks for getting back. This is weird...Do you have any AV software installed?

@cyberjoac can you provide a diagnostic ID?

rn avatar Feb 12 '17 13:02 rn