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: runtime error: invalid memory address or nil pointer dereference #1261

Closed
randomeleven opened this issue Mar 15, 2017 · 0 comments
Closed
Assignees
Labels

Comments

@randomeleven
Copy link

randomeleven commented Mar 15, 2017

  • CentOS 6.5
  • Telegraf v1.2.1 (git: release-1.2 3b6ffb344e5c03c1595d862282a6823ecb438cff)
  • Influxdb version: 1.2.0
  • Kapacitor version 1.2.0, branch master, commit 5408057

I am having a problem when trying to start kapacitor, start/restart commands fail.
service kapacitor start says it has started [OK] , but service kapacitor status says [FAILED]

When checking /var/log/kapacitor/kapacitor.err , I get the following error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x51c319]

goroutine 1 [running]:
panic(0xb6fa40, 0xc420010080)
        /usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/influxdata/kapacitor/server.(*Server).setupIDs(0xc4201ba180, 0xc4201ad858, 0x2)
        /root/go/src/github.com/influxdata/kapacitor/server/server.go:715 +0x79
github.com/influxdata/kapacitor/server.New(0xc420142080, 0xccd314, 0x5, 0xcd31c0, 0x28, 0xccd31c, 0x6, 0x10ae1a0, 0xc42000d7c0, 0x0, ...)
        /root/go/src/github.com/influxdata/kapacitor/server/server.go:142 +0x55f
github.com/influxdata/kapacitor/cmd/kapacitord/run.(*Command).Run(0xc42000ebd0, 0xc42000c0b0, 0x4, 0x4, 0xc420089901, 0x108)
        /root/go/src/github.com/influxdata/kapacitor/cmd/kapacitord/run/command.go:121 +0xa81
main.(*Main).Run(0xc4201adef0, 0xc42000c0b0, 0x4, 0x4, 0xc420043f38, 0x40740b)
        /root/go/src/github.com/influxdata/kapacitor/cmd/kapacitord/main.go:80 +0x2e2
main.main()
        /root/go/src/github.com/influxdata/kapacitor/cmd/kapacitord/main.go:41 +0x20b

$kapacitord runs fine and starts kapactiro. But I prefer to use service start kapacitor

I understand that similar issues have been raised and fixed before ( like here: #1087).

Is the fix included in the version I am running or I should build the binaries myself?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants