{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/1275","labels_url":"https://api.github.com/repos/docker/compose/issues/1275/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/1275/comments","events_url":"https://api.github.com/repos/docker/compose/issues/1275/events","html_url":"https://github.com/docker/compose/issues/1275","id":67441088,"number":1275,"title":"APIError: 500 Server Error on first docker-compose up / build","user":{"login":"nathanleclaire","id":1476820,"avatar_url":"https://avatars.githubusercontent.com/u/1476820?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleclaire","html_url":"https://github.com/nathanleclaire","followers_url":"https://api.github.com/users/nathanleclaire/followers","following_url":"https://api.github.com/users/nathanleclaire/following{/other_user}","gists_url":"https://api.github.com/users/nathanleclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleclaire/subscriptions","organizations_url":"https://api.github.com/users/nathanleclaire/orgs","repos_url":"https://api.github.com/users/nathanleclaire/repos","events_url":"https://api.github.com/users/nathanleclaire/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleclaire/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/compose/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-09T20:10:26Z","updated_at":"2015-04-28T16:08:03Z","closed_at":null,"body":"cc @aanand \r\n\r\nI noticed this when testing the most recent RC (4)\r\n\r\nSteps to reproduce:\r\n\r\n1. Clone https://github.com/nathanleclaire/hubfwd\r\n2. Run `docker-compose up` in the repo\r\n\r\nExpected behavior: It doesn't blow up\r\nActual behavior: It blows up\r\n\r\nOn the first `up` and the first `up` only, so build smells suspicious.\r\n\r\n```\r\nCreating hubfwd_app_1...\r\nBuilding app...\r\nStep 0 : FROM golang:1.4.2\r\n ---> 121a93c90463\r\nStep 1 : RUN go get -u github.com/codegangsta/negroni\r\n ---> Running in 5e2161a172f9\r\n ---> 623f1c94741b\r\nRemoving intermediate container 5e2161a172f9\r\nStep 2 : RUN go get -u github.com/gorilla/mux\r\n ---> Running in c74924a6c8fd\r\n ---> 7923dd360f79\r\nRemoving intermediate container c74924a6c8fd\r\nStep 3 : RUN go get -u github.com/Sirupsen/logrus\r\n ---> Running in 93443d6cf298\r\n ---> 3ae5e3801312\r\nRemoving intermediate container 93443d6cf298\r\nStep 4 : RUN mkdir -p /go/src/github.com/nathanleclaire/hubfwd\r\n ---> Running in 8deddcbb0f1d\r\n ---> 6586dfbe5b2e\r\nRemoving intermediate container 8deddcbb0f1d\r\nStep 5 : WORKDIR /go/src/github.com/nathanleclaire/hubfwd\r\n ---> Running in bb42cbdf1032\r\n ---> 0d824f6e8519\r\nRemoving intermediate container bb42cbdf1032\r\nStep 6 : COPY . /go/src/github.com/nathanleclaire/hubfwd\r\n ---> ad6983d66cf7\r\nRemoving intermediate container e16e62829fb7\r\nStep 7 : CMD go build\r\n ---> Running in 550e4ab79b39\r\n ---> 15ebeafc0600\r\nRemoving intermediate container 550e4ab79b39\r\nSuccessfully built 15ebeafc0600\r\nAttaching to hubfwd_app_1\r\nException in thread Thread-1:\r\nTraceback (most recent call last):\r\n  File \"/compose/build/docker-compose/out00-PYZ.pyz/threading\", line 810, in __bootstrap_inner\r\n  File \"/compose/build/docker-compose/out00-PYZ.pyz/threading\", line 763, in run\r\n  File \"/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.multiplexer\", line 41, in _enqueue_output\r\n  File \"/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.log_printer\", line 59, in _make_log_generator\r\n  File \"/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.utils\", line 77, in split_buffer\r\n  File \"/compose/build/docker-compose/out00-PYZ.pyz/docker.client\", line 199, in _multiplexed_response_stream_helper\r\n  File \"/compose/build/docker-compose/out00-PYZ.pyz/docker.client\", line 143, in _get_raw_response_socket\r\n  File \"/compose/build/docker-compose/out00-PYZ.pyz/docker.client\", line 95, in _raise_for_status\r\nAPIError: 500 Server Error: Internal Server Error (\"http: Hijack is incompatible with use of CloseNotifier\")\r\n```\r\n\r\nI'm on OSX using a VM created by `docker-machine` in VirtualBox (boot2docker)."},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/97121479","html_url":"https://github.com/docker/compose/issues/1275#issuecomment-97121479","issue_url":"https://api.github.com/repos/docker/compose/issues/1275","id":97121479,"user":{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T16:08:03Z","updated_at":"2015-04-28T16:08:03Z","body":"I think problem is in keep-alive, so in one connection you `build` and `attach`. To fix this you need to create new connection, not sure how can we fix it on docker side."}}