Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic on api status: GET /v1 #822

Closed
fopina opened this issue Sep 17, 2020 · 0 comments · Fixed by #829
Closed

panic on api status: GET /v1 #822

fopina opened this issue Sep 17, 2020 · 0 comments · Fixed by #829
Labels

Comments

@fopina
Copy link
Contributor

fopina commented Sep 17, 2020

After upgrading my existing cluster to 3.0.5, nodes panic when GET /v1 is issued (used by my healthcheck script).

dkron[29843]: GET /v1 HTTP/1.0
dkron[29843]: Host: dkronserver
dkron[29843]: Connection: close
dkron[29843]: Connection: close
dkron[29843]: runtime error: invalid memory address or nil pointer dereference
dkron[29843]: /opt/hostedtoolcache/go/1.14.7/x64/src/runtime/panic.go:212 (0x449fc9)
dkron[29843]: /opt/hostedtoolcache/go/1.14.7/x64/src/runtime/signal_unix.go:695 (0x449e18)
dkron[29843]: /home/runner/go/pkg/mod/github.com/robfig/cron/[email protected]/cron.go:178 (0xdb0981)
dkron[29843]: /home/runner/work/dkron/dkron/dkron/api.go:121 (0x208732b)
dkron[29843]: /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0xc00b7a)
dkron[29843]: /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:83 (0xc1430f)
dkron[29843]: /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0xc00b7a)
dkron[29843]: /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0xc13440)
dkron[29843]: /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0xc00b7a)
dkron[29843]: /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:409 (0xc0a955)
dkron[29843]: /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:367 (0xc0a06c)
dkron[29843]: /opt/hostedtoolcache/go/1.14.7/x64/src/net/http/server.go:2836 (0x711ea2)
dkron[29843]: /opt/hostedtoolcache/go/1.14.7/x64/src/net/http/server.go:1924 (0x70d80b)
dkron[29843]: /opt/hostedtoolcache/go/1.14.7/x64/src/runtime/asm_amd64.s:1373 (0x463e30)

I haven't been able to reproduce it in a clean cluster, but it always happens in my existing one.
I upgraded from 3.0.2 and it broke. Downgraded to 3.0.4 and it works.
It'd seem to be related with 7de2275

** Specifications:**

  • OS: linux
  • Version 3.0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants