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 in pgbouncer plugin #5999

Closed
jsnjack opened this issue Jun 17, 2019 · 0 comments · Fixed by #6000
Closed

panic in pgbouncer plugin #5999

jsnjack opened this issue Jun 17, 2019 · 0 comments · Fixed by #6000
Labels
bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf
Milestone

Comments

@jsnjack
Copy link
Contributor

jsnjack commented Jun 17, 2019

Relevant telegraf.conf:

[[inputs.pgbouncer]]
  ## specify address via a url matching:
  ##   postgres://[pqgotest[:password]]@localhost[/dbname]\
  ##       ?sslmode=[disable|verify-ca|verify-full]
  ## or a simple string:
  ##   host=localhost user=pqotest password=... sslmode=... dbname=app_production
  ##
  ## All connection parameters are optional.
  ##
  address = "host=localhost port=6432 user=dbuser database=pgbouncer"

System info:

Debian 8, telegraf 1.11.0-1, pgbouncer 1.5.4

Steps to reproduce:

  1. Enable pgbouncer input

Expected behavior:

Telegraf starts to report data

Actual behavior:

Telegraf is not able to start

Additional info:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x15ac136]
goroutine 43 [running]:
github.com/influxdata/telegraf/plugins/inputs/pgbouncer.(*PgBouncer).Gather(0xc000556cd0, 0x2a32740, 0xc000223660, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/plugins/inputs/pgbouncer/pgbouncer.go:105 +0x746
github.com/influxdata/telegraf/internal/models.(*RunningInput).Gather(0xc000139300, 0x2a32740, 0xc000223660, 0x2a17b80, 0xc000093ec0)
/go/src/github.com/influxdata/telegraf/internal/models/running_input.go:86 +0x6d
github.com/influxdata/telegraf/agent.(*Agent).gatherOnce.func1(0xc00027c0c0, 0xc000139300, 0x2a32740, 0xc000223660)
/go/src/github.com/influxdata/telegraf/agent/agent.go:299 +0x3f
created by github.com/influxdata/telegraf/agent.(*Agent).gatherOnce
/go/src/github.com/influxdata/telegraf/agent/agent.go:298 +0xdc
@danielnelson danielnelson added this to the 1.11.1 milestone Jun 17, 2019
@danielnelson danielnelson added bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf labels Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants