I'm quite regularly experiencing hangs when calling .build(...) from the python client.
The client hangs when I try to consume from the stream generator.
Does anyone have any suggestions as to why this might be hanging?
The call I'm making is the following:
client.build(
tag=self._image_tag,
path=self._repos_dir,
rm=True,
stream=True)
I see these logs from my worker & the docker daemon:
[2014-09-17 12:20:41,009: DEBUG/Worker-5] "POST /run/docker.sock/v1.12/build?q=False&rm=True&t=job_54197c973aedca001425cec5_img&nocache=False HTTP/1.1" 200 None
[debug] server.go:1046 Calling GET /_ping
[info] GET /v1.12/_ping
[debug] server.go:1046 Calling POST /build
[info] POST /v1.12/build?q=False&rm=True&t=job_54197c973aedca001425cec5_img&nocache=False
[c5bbc5f0] +job build()
[debug] archive.go:90 [tar autodetect] n: [68 111 99 107 101 114 102 105 108 101]
[debug] archive.go:90 [tar autodetect] n: [68 111 99 107 101 114 102 105 108 101]
[debug] dispatchers.go:193 Command to be executed: [/bin/sh -c set -e; export DEBIAN_FRONTEND=noninteractive; sed -E -i 's|archive\.ubuntu\.com|
rdg-linux.cisco.com|g' /etc/apt/sources.list /etc/apt/sources.list.d/proposed.list; apt-get -q update; apt-get -q install -y --no-install-recommends python python-dev python-pip build-essential git; rm -rf /var/lib/apt/lists/*]
[debug] internals.go:361 [BUILDER] Use cached version
[debug] internals.go:361 [BUILDER] Use cached version
[c5bbc5f0] -job build() = OK (0)