Docker Community Forums

Share and learn in the Docker community.

[RESOLVED by Hotfix] Receiving http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call from docker compose up


(Mitcholiver) #1

Expected behavior

Following the Quick Start instructions for rails (https://docs.docker.com/compose/rails/), containers start with specified service running

Actual behavior

After following instructions the following is printed on the command line:
Successfully built 810c5f1e2c0e
WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.
http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call
http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call

Information

No changes were made to the quick start guide.
No problems found running diagnostics:
Docker for Mac: version: mac-v1.12.0-beta18
OS X: version 10.11.5 (build: 15F34)
logs: /tmp/20160705-231817.tar.gz
[OK] docker-cli
[OK] app
[OK] menubar
[OK] virtualization
[OK] system
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux

Steps to reproduce the behavior

Follow the quick start guide exactly.


(Mitcholiver) #2

This issue is fixed by Docker version 1.12.0-rc3, build 91e29e8, experimental.


(Jamshid) #3

Are you sure? https://github.com/docker/compose/issues/3685 says a hotfix was released this morning, but I don’t know where to get it. I’m on (From About) Version 1.12.0-rc3-beta18 (build: 9969) and get the error:
[Hi]jack is incompatible with use of CloseNotifier in same ServeHTTP call

$ docker version
Client:
 Version:      1.12.0-rc3
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   91e29e8
 Built:        Sat Jul  2 00:09:24 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc3
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   876f3a7
 Built:        Tue Jul  5 02:20:13 2016
 OS/Arch:      linux/amd64
 Experimental: true

(Mitcholiver) #4

I was prompted to install the hotfix this morning. After installing it, all was well. Have you tried checking for updates in the Moby menu?


(Jkilbride) #5

I am getting the same error:

http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call

First time I’ve ever seen it. I am also on Version 1.12.0-rc3-beta18 (build: 9969):

$ docker version
Client:
 Version:      1.12.0-rc3
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   91e29e8
 Built:        Sat Jul  2 00:09:24 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc3
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   876f3a7
 Built:        Tue Jul  5 02:20:13 2016
 OS/Arch:      linux/amd64
 Experimental: true

I just checked for updates in the moby menu and it said I was up to date. This seems to happen when I try to login to more than one container at a time, e.g. I run docker-compose logs for one container and docker-compose exec for another.


(Mitcholiver) #6

Hopefully they release an update with a version bump soon. I’m glad I caught the update, because this was making me rage yesterday.


(Jkilbride) #7

@mitcholiver

Yeah, I"m kind of dead in the water, right now. Can you verify that you’re still seeing the problem I have? All I did was tail the logs in one container and then try to start a login shell in another. Can we mark this thread as not resolved, or should I start another thread?

Thanks!


(Mitcholiver) #8

I’m not seeing the problem. I’ll note that it is resolved by a hotfix in the subject.