https://bugzilla.redhat.com/show_bug.cgi?id=1258822
Bug ID: 1258822 Summary: The docker build command produces panic Product: Fedora Version: 21 Component: docker-io Severity: high Assignee: ichavero@redhat.com Reporter: mfojtik@redhat.com QA Contact: extras-qa@fedoraproject.org CC: adimania@gmail.com, admiller@redhat.com, golang@lists.fedoraproject.org, hushan.jia@gmail.com, ichavero@redhat.com, jchaloup@redhat.com, jperrin@centos.org, lsm5@redhat.com, mgoldman@redhat.com, miminar@redhat.com, s@shk.io, thrcka@redhat.com, vbatts@redhat.com, wolfy@nobugconsulting.ro
Description of problem:
The `docker build` command panics. The command prints "" after few steps of the docker build.
Client version: 1.7.1.fc21 Client API version: 1.19 Package Version (client): docker-io-1.7.1-3.git33de319.fc21.x86_64 Go version (client): go1.4.2 Git commit (client): 33de319/1.7.1 OS/Arch (client): linux/amd64 Cannot connect to the Docker daemon. Is 'docker -d' running on this host? lease number of selected component (if applicable):
Steps to Reproduce: 1. git clone https://github.com/openshift/jenkins 2. cd jenkins 3. make build
Actual results:
Step 0 : FROM centos:centos7 ---> 7322fbe74aa5 Step 1 : MAINTAINER Ben Parees bparees@redhat.com ---> Using cache ---> 15996a891236 Step 2 : ENV JENKINS_VERSION 1.609 HOME /var/lib/jenkins JENKINS_HOME /var/lib/jenkins ---> Using cache ---> 53337e305e98 Step 3 : LABEL k8s.io.description "Jenkins is a continuous integration server" k8s.io.display-name "Jenkins 1.609" openshift.io.expose-services "8080:http" openshift.io.tags "jenkins,jenkins1,ci" ---> Using cache ---> 17d72d6b80b9 Step 4 : EXPOSE 8080 50000 ---> Using cache ---> a8ffe929cb51 Step 5 : RUN curl http://pkg.jenkins-ci.org/redhat/jenkins.repo -o /etc/yum.repos.d/jenkins.repo && rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key && yum install -y tar zip unzip java-1.8.0-openjdk jenkins-1.609 && yum clean all && chmod og+rw /var/lib/jenkins && curl -L https://github.com/openshift/origin/releases/download/v1.0.2/openshift-origi... | tar -zx && mv oc /usr/local/bin && rm oadm && rm openshift ---> Running in 0455b7d5be68 unexpected EOF Makefile:18: recipe for target 'build' failed make: *** [build] Error 1
Interesting bits from the `journalctl -u docker`:
Sep 01 11:15:12 openshiftdev.local docker[1543]: 2015/09/01 11:15:12 http: panic serving @: runtime error: slice bounds out of range Sep 01 11:15:12 openshiftdev.local docker[1543]: goroutine 708 [running]: Sep 01 11:15:12 openshiftdev.local docker[1543]: net/http.func·011() Sep 01 11:15:12 openshiftdev.local docker[1543]: /usr/lib/golang/src/net/http/server.go:1130 +0xbb fp=0xc208a8ea40 sp=0xc208a8e960 Sep 01 11:15:12 openshiftdev.local docker[1543]: runtime.call16(0xc208a8fef0, 0xc20819c1b0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /usr/lib/golang/src/runtime/asm_amd64.s:401 +0x45 fp=0xc208a8ea58 sp=0xc208a8ea40 Sep 01 11:15:12 openshiftdev.local docker[1543]: runtime.gopanic(0xb89f60, 0xc20802a010) Sep 01 11:15:12 openshiftdev.local docker[1543]: /usr/lib/golang/src/runtime/panic.go:387 +0x3a8 fp=0xc208a8eac0 sp=0xc208a8ea58 Sep 01 11:15:12 openshiftdev.local docker[1543]: runtime.panicslice() Sep 01 11:15:12 openshiftdev.local docker[1543]: /usr/lib/golang/src/runtime/panic.go:18 +0x4e fp=0xc208a8eae8 sp=0xc208a8eac0 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/pkg/systemd.RegisterMachine(0xc20877da81, 0x13, 0xc208da8bc0, 0x40, 0x5acd, 0xc65450, 0x1, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/pkg/systemd/register.go:33 +0x624 fp=0xc208a8ec28 sp=0xc208a8eae8 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/daemon.(*Container).registerMachine(0xc2080b34a0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/daemon/container_linux.go:1044 +0xa4 fp=0xc208a8ed00 sp=0xc208a8ec28 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/daemon.(*Container).waitForStart(0xc2080b34a0, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/daemon/container.go:761 +0x2e6 fp=0xc208a8ee30 sp=0xc208a8ed00 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/daemon.(*Container).Start(0xc2080b34a0, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/daemon/container.go:295 +0x4cd fp=0xc208a8ef40 sp=0xc208a8ee30 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/builder.(*Builder).run(0xc2089baf00, 0xc2080b34a0, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/internals.go:605 +0x11b fp=0xc208a8f060 sp=0xc208a8ef40 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/builder.run(0xc2089baf00, 0xc208686c00, 0x3, 0x4, 0x0, 0xc2085e5c00, 0x1e6, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/dispatchers.go:348 +0x8d5 fp=0xc208a8f200 sp=0xc208a8f060 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/builder.(*Builder).dispatch(0xc2089baf00, 0x5, 0xc2084ddc80, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/evaluator.go:342 +0xdae fp=0xc208a8f418 sp=0xc208a8f200 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/builder.(*Builder).Run(0xc2089baf00, 0x7feff5f0e5c8, 0xc2086e6c70, 0x0, 0x0, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/evaluator.go:177 +0x4b5 fp=0xc208a8f598 sp=0xc208a8f418 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/builder.Build(0xc2080b42a0, 0xc208858410, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/job.go:174 +0x7f2 fp=0xc208a8f7b8 sp=0xc208a8f598 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/api/server.(*Server).postBuild(0xc2080fc3c0, 0xc2081289c7, 0x4, 0x7feff5ef6490, 0xc208695180, 0xc208858340, 0xc2087e5e30, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/api/server/server.go:1346 +0xe99 fp=0xc208a8f990 sp=0xc208a8f7b8 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/api/server.*Server.(github.com/docker/docker/api/server.postBuild)·fm(0xc2081289c7, 0x4, 0x7feff5ef6490, 0xc208695180, 0xc208858340, 0xc2087e5e30, 0x0, 0x0) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/api/server/server.go:1606 +0x7b fp=0xc208a8f9e0 sp=0xc208a8f990 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/docker/docker/api/server.func·008(0x7feff5ef6490, 0xc208695180, 0xc208858340) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/api/server/server.go:1566 +0xacd fp=0xc208a8fb88 sp=0xc208a8f9e0 Sep 01 11:15:12 openshiftdev.local docker[1543]: net/http.HandlerFunc.ServeHTTP(0xc2080fddc0, 0x7feff5ef6490, 0xc208695180, 0xc208858340) Sep 01 11:15:12 openshiftdev.local docker[1543]: /usr/lib/golang/src/net/http/server.go:1265 +0x41 fp=0xc208a8fba8 sp=0xc208a8fb88 Sep 01 11:15:12 openshiftdev.local docker[1543]: github.com/gorilla/mux.(*Router).ServeHTTP(0xc208103270, 0x7feff5ef6490, 0xc208695180, 0xc208858340) Sep 01 11:15:12 openshiftdev.local docker[1543]: /builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/vendor/src/github.com/gorilla/mux/mux.go:98 +0x297 fp=0xc208a8fcb0 sp=0xc208a8fba8
Expected results:
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
Michal Fojtik mfojtik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|unspecified |high
--- Comment #1 from Michal Fojtik mfojtik@redhat.com --- Raising the priority as this is affecting all OpenShift F21 vagrant boxes.
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
--- Comment #2 from Michal Fojtik mfojtik@redhat.com --- @thrcka suggested that this might be related to the golang version...
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |dwalsh@redhat.com
--- Comment #3 from Daniel Walsh dwalsh@redhat.com --- Is this fixed in docker-1.8?
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
--- Comment #4 from Michal Fojtik mfojtik@redhat.com --- Dan, I don't think we want to push 1.8 to F21 (I guess it requires more recent golang).
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
--- Comment #5 from Vincent Batts vbatts@redhat.com --- f21 has golang 1.4.2, which is the supported version
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
Lokesh Mandvekar lsm5@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|ichavero@redhat.com |lsm5@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
--- Comment #6 from Daniel Walsh dwalsh@redhat.com --- docker-io-1.8.1-2.git32b8b25.fc21 has been built.
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
--- Comment #7 from Michal Fojtik mfojtik@redhat.com --- (In reply to Daniel Walsh from comment #6)
docker-io-1.8.1-2.git32b8b25.fc21 has been built.
Thanks Dan! I will test it in ~3h and give it karma if the problem is fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
--- Comment #8 from Daniel Walsh dwalsh@redhat.com --- Fixed in docker-1.8.2
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
--- Comment #9 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
Fedora End Of Life honza.kurik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |WONTFIX Last Closed| |2015-12-02 10:11:29
https://bugzilla.redhat.com/show_bug.cgi?id=1258822
--- Comment #10 from Fedora End Of Life honza.kurik@gmail.com --- Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug.
Thank you for reporting this bug and we are sorry it could not be fixed.
golang@lists.fedoraproject.org