Bug 1517120 - docker-latest daemon could NOT start with "http: panic serving @: reflect: call of reflect.Value.Int on zero Value" error
Summary: docker-latest daemon could NOT start with "http: panic serving @: reflect: ca...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: docker-latest
Version: 27
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Frantisek Kluknavsky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-24 09:26 UTC by if_else
Modified: 2018-11-30 22:00 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-11-30 22:00:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description if_else 2017-11-24 09:26:29 UTC
docker-latest service under Fedora 27 x86_64 could NOT start:

# rpm -q docker-latest
docker-latest-1.13-34.git27e468e.fc27.x86_64

# journalctl -u docker-latest -b

Nov 24 17:02:16 do systemd[1]: Started Docker Application Container Engine.
Nov 24 17:02:16 do dockerd-latest[8013]: time="2017-11-24T17:02:16.846336008+08:00" level=info msg="API listen on /var/run/docker.sock"
Nov 24 17:02:21 do dockerd-latest[8013]: http: panic serving @: reflect: call of reflect.Value.Int on zero Value
                                         goroutine 89 [running]:
                                         net/http.(*conn).serve.func1(0xc42062f0e0)
                                                 /usr/lib/golang/src/net/http/server.go:1693 +0xd0
                                         panic(0x1719220, 0xc420632ee0)
                                                 /usr/lib/golang/src/runtime/panic.go:491 +0x283
                                         reflect.Value.Int(0x0, 0x0, 0x0, 0x198c4be)
                                                 /usr/lib/golang/src/reflect/value.go:908 +0x141
                                         github.com/docker/docker/api/server/middleware.getFdFromWriter(0x25dbb20, 0xc420132000, 0xc420161345)
                                                 /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/middleware/audit_linux.go:86 +0x403
                                         github.com/docker/docker/api/server/middleware.logAction(0x25dbb20, 0xc420132000, 0xc4204e0000, 0xc4202e7200, 0xc4204e0000, 0x1694380)
                                                 /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/middleware/audit_linux.go:212 +0xe2
                                         github.com/docker/docker/api/server/middleware.AuditMiddleware.WrapHandler.func1(0x25df4a0, 0xc42082b380, 0x25dbb20, 0xc420132000, 0xc4204e0000, 0xc42082b320, 0xc42004cb38,
                                                 /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/middleware/audit_linux.go:26 +0x55
                                         github.com/docker/docker/api/server.(*Server).makeHTTPHandler.func1(0x25dbb20, 0xc420132000, 0xc4204e0000)
                                                 /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/server.go:146 +0x1e5
                                         net/http.HandlerFunc.ServeHTTP(0xc42089efc0, 0x25dbb20, 0xc420132000, 0xc4204e0000)
                                                 /usr/lib/golang/src/net/http/server.go:1914 +0x44
                                         github.com/docker/docker/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc42006f310, 0x25dbb20, 0xc420132000, 0xc4204e0000)
                                                 /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/vendor/github.com/gorilla/mux/mux.go:103 +0x22b
                                         github.com/docker/docker/api/server.(*routerSwapper).ServeHTTP(0xc4206304f0, 0x25dbb20, 0xc420132000, 0xc4204e0000)
                                                 /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/router_swapper.go:29 +0x70
                                         net/http.serverHandler.ServeHTTP(0xc420066dd0, 0x25dbb20, 0xc420132000, 0xc4204e0000)
                                                 /usr/lib/golang/src/net/http/server.go:2610 +0xb4
                                         net/http.(*conn).serve(0xc42062f0e0, 0x25dd7a0, 0xc4203813c0)
                                                 /usr/lib/golang/src/net/http/server.go:1797 +0x71d
                                         created by net/http.(*Server).Serve
                                                 /usr/lib/golang/src/net/http/server.go:2711 +0x288

Comment 1 Ranjith Rajaram 2017-12-18 10:29:53 UTC
We had a similar bug
https://bugzilla.redhat.com/show_bug.cgi?id=1474752

Comment 2 Antonio Murdaca 2017-12-18 15:35:20 UTC
This has been fixed quite some time ago: https://github.com/projectatomic/docker/commit/b5e3294e8666bb6d8da564286ed4c2790c7b9af1

please update your docker in your F27

Comment 3 Ranjith Rajaram 2017-12-19 10:34:04 UTC
BZ #1474752 was for docker package while this is for docker-latest. With docker package, we no longer see this problem

Fedora 27 yum repo's have docker-latest-1.13-34.git27e468e.fc27.x86_64 as the latest.

root@vm252-122 ~]# rpm -q docker-latest
docker-latest-1.13-34.git27e468e.fc27.x86_64
[root@vm252-122 ~]# service docker-latest start
Redirecting to /bin/systemctl start docker-latest.service
[root@vm252-122 ~]# docker info
error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.26/info: EOF

logs

Dec 19 16:03:16 vm252-122 dockerd-latest[15792]: http: panic serving @: reflect: call of reflect.Value.Int on zero Value

If has been addressed, can you please let me know the docker-latest package version.

Comment 4 Michael Hrivnak 2018-01-24 22:27:58 UTC
I also see this problem with docker-latest-1.13-34.git27e468e.fc27.x86_64

Comment 5 Daniel Walsh 2018-01-28 05:42:05 UTC
Michael please give us the stack trace that you are seeing.

Comment 6 Antonio Murdaca 2018-01-28 10:35:16 UTC
this is fixed already by https://github.com/projectatomic/docker/commit/b5e3294e8666bb6d8da564286ed4c2790c7b9af1

We just need to rebuild docker-latest in f27 with the latest commit from https://github.com/projectatomic/docker/commits/docker-1.13.1

Comment 8 Daniel Walsh 2018-01-28 14:56:46 UTC
Docker package has docker-1.13 and a newer build.  Franticek can you update docker-latest to match and then make docker package replace to docker-latest package so we can drop support for it.

Comment 9 Olivier Samyn 2018-01-29 09:25:28 UTC
I understand current docker package version is locked to allow kubernetes compatibility. 
So docker-latest is still relevant and should be updated to the latest available docker-ce version (17.12) instead of just dropping  it.

See https://bugzilla.redhat.com/show_bug.cgi?id=1492331 .

Comment 10 Lokesh Mandvekar 2018-01-29 14:50:48 UTC
(In reply to Olivier Samyn from comment #9)
> I understand current docker package version is locked to allow kubernetes
> compatibility. 
> So docker-latest is still relevant and should be updated to the latest
> available docker-ce version (17.12) instead of just dropping  it.
> 
> See https://bugzilla.redhat.com/show_bug.cgi?id=1492331 .

There's moby-engine coming up for it. See Bug 1539161.

Comment 11 Sebastian Jug 2018-04-05 02:28:28 UTC
Seeing this error with:
docker-latest-1.13-34.git27e468e.fc27.x86_64
docker-common-1.13.1-51.git4032bd5.fc27.x86_64

journalctl output:
dockerd-latest[2527]: http: panic serving @: reflect: call of reflect.Value.Int on zero Value
  goroutine 94 [running]:
  net/http.(*conn).serve.func1(0xc420ab60a0)
          /usr/lib/golang/src/net/http/server.go:1693 +0xd0
  panic(0x1719220, 0xc420160340)
          /usr/lib/golang/src/runtime/panic.go:491 +0x283
  reflect.Value.Int(0x0, 0x0, 0x0, 0x198c4be)
          /usr/lib/golang/src/reflect/value.go:908 +0x141
  github.com/docker/docker/api/server/middleware.getFdFromWriter(0x25dbb20, 0xc42044c000, 0xc42053a046)
          /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/middlew
  github.com/docker/docker/api/server/middleware.logAction(0x25dbb20, 0xc42044c000, 0xc420010200, 0xc420421000, 0xc420010200, 0x169438                                                          /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/middlew
  github.com/docker/docker/api/server/middleware.AuditMiddleware.WrapHandler.func1(0x25df4a0, 0xc420a321b0, 0x25dbb20, 0xc42044c000, 0                                                          /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/middlew
  github.com/docker/docker/api/server.(*Server).makeHTTPHandler.func1(0x25dbb20, 0xc42044c000, 0xc420010200)
          /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/server.
  net/http.HandlerFunc.ServeHTTP(0xc420a4e780, 0x25dbb20, 0xc42044c000, 0xc420010200)
          /usr/lib/golang/src/net/http/server.go:1914 +0x44
  github.com/docker/docker/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc42030cf50, 0x25dbb20, 0xc42044c000, 0xc420010200)
          /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/vendor/github.com/
  github.com/docker/docker/api/server.(*routerSwapper).ServeHTTP(0xc4202c9cf0, 0x25dbb20, 0xc42044c000, 0xc420010200)
          /builddir/build/BUILD/docker-27e468e0954bba26b1176cee25a03560114fcb82/_build/src/github.com/docker/docker/api/server/router_
  net/http.serverHandler.ServeHTTP(0xc42033c9c0, 0x25dbb20, 0xc42044c000, 0xc420010200)
          /usr/lib/golang/src/net/http/server.go:2610 +0xb4
  net/http.(*conn).serve(0xc420ab60a0, 0x25dd7a0, 0xc420220100)
          /usr/lib/golang/src/net/http/server.go:1797 +0x71d
  created by net/http.(*Server).Serve
          /usr/lib/golang/src/net/http/server.go:2711 +0x288

Comment 12 Sebastian Jug 2018-04-05 02:35:24 UTC
As suggested the docker package works fine, just not docker-latest which is ironically an older version.

Comment 13 Ben Cotton 2018-11-27 15:10:15 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. 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 '27'.

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 27 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.

Comment 14 Ben Cotton 2018-11-30 22:00:12 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 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.


Note You need to log in before you can comment on or make changes to this bug.