compose icon indicating copy to clipboard operation
compose copied to clipboard

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

Open justincormack opened this issue 10 years ago • 58 comments

Using 1.8-rc1 and docker 1.12-rc3 with the following compose file:

version: '2'
services:
  test:
    build:
      context: .

and Dockerfile:

FROM alpine

If I do:

whale:comprun justin$ docker-compose build test
Building test
Step 1 : FROM alpine
 ---> f70c828098f5
Successfully built f70c828098f5
whale:comprun justin$ docker-compose run test ls
http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call
                                                                             http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call
                                                                                                                                                          whale:comprun justin$ 

Looks like a missed case in https://github.com/docker/compose/pull/1374

cc @dnephin

justincormack avatar Jul 04 '16 16:07 justincormack

I now have the same issue. Just upgraded and my compose setup refuses to start :(

SantoDE avatar Jul 05 '16 20:07 SantoDE

@SantoDE I was able to restart after I removed all containers , I still get the log jack is incompatible with use of CloseNotifier in same ServeHTTP call and no other log outs (which is concerning) but everything seems to be running fine

jonniedarko avatar Jul 05 '16 20:07 jonniedarko

@jonniedarko oh you are right. The containers are up, but I dont have any more logs. Still an issue then I guess :/ cc: @justincormack

SantoDE avatar Jul 05 '16 20:07 SantoDE

Docker version 1.12.0-rc3, build 91e29e8, experimental is pretty much non-functional for me due to this bug.

I was lucky in that I still had an old Docker.dmg from May with Docker version 1.11.0, build 4dc5990 on it, but this change is seriously breaking.

DejaAugustine avatar Jul 05 '16 20:07 DejaAugustine

Busted in Boston, too.

PatrickDRusk avatar Jul 05 '16 20:07 PatrickDRusk

Hopefully the docker team can fix that fast :/

SantoDE avatar Jul 05 '16 20:07 SantoDE

Fingers crossed... was having no issues until I just installed the update. Had this one after fixing another that required me to rebuild my containers...

javawolfpack avatar Jul 05 '16 20:07 javawolfpack

Well, I get that error, but if I run docker-compose in daemon mode everything seems to be working fine.

JonathanTech avatar Jul 05 '16 20:07 JonathanTech

I can still attach using docker exec -it <container_name> bash and everything is working as expected. docker attach also works as expected.

JonathanTech avatar Jul 05 '16 20:07 JonathanTech

I need to run one of my containers in bash currently... so this is causing a significant headache :(

javawolfpack avatar Jul 05 '16 20:07 javawolfpack

Did this just start happening with RC3? It was fine with RC2?

dnephin avatar Jul 05 '16 20:07 dnephin

+1 for this issue. Just upgraded to Docker for Mac Version 1.12.0-rc3-beta18 (build: 9969) and I'm running into this issue

emgeee avatar Jul 05 '16 20:07 emgeee

@JonathanTech that's interesting... maybe I can run it manually but fails when I try interactive bash from compose.

javawolfpack avatar Jul 05 '16 20:07 javawolfpack

@dnephin Yep, RC2 was fine. Just right after I upgraded to RC3 the madness started.

SantoDE avatar Jul 05 '16 20:07 SantoDE

+1 on this issue as of RC3

milehimikey avatar Jul 05 '16 20:07 milehimikey

+1 only happened when I upgraded to Version 1.12.0-rc3-beta18 (build: 9969) minutes ago

javawolfpack avatar Jul 05 '16 20:07 javawolfpack

+1 for Version 1.12.0-rc3-beta18 (build: 9969)

antipin avatar Jul 05 '16 20:07 antipin

Anybody knows how to downgrade to RC2?

antipin avatar Jul 05 '16 20:07 antipin

+1 for Version 1.12.0-rc3-beta18 (build: 9969)

praveenperera avatar Jul 05 '16 20:07 praveenperera

@antipin, I can't find a back-rev to download.

I am able to docker exec into a container that is apparently hung when I do the docker-compose run.

PatrickDRusk avatar Jul 05 '16 20:07 PatrickDRusk