-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[BUG] Using [[inputs.sqlserver]] causes segfault after updating telegraf to v. 1.2.0 #2317
Copy link
Copy link
Closed
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behaviorpanicissue that results in panics from Telegrafissue that results in panics from Telegraf
Milestone
Description
Bug report
After updating TICK from prev. v. to v.1.2.0 telegraf.service exited with error, please see log in "Additional info" below.
Relevant part of telegraf.conf:
# Read metrics from Microsoft SQL Server
[[inputs.sqlserver]]
interval = "60s"
servers = [
"Server=wks2382;Port=1433;User Id=telegraf;Password=somePassw;app name=telegraf;log=1;",
]
Other content in the config is unchanged.
System info:
Linux osboxes 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
telegraf version 1.2.0, influxdb v. 1.2.0.
Steps to reproduce:
- Update to TICK 1.2.0
Expected behavior:
Actual behavior:
Additional info:
Jan 25 13:11:01 osboxes systemd[1]: Started The plugin-driven server agent for reporting metrics into InfluxDB.
Jan 25 13:11:01 osboxes telegraf[1808]: 2017-01-25T13:11:01Z I! Starting Telegraf (version 1.2.0)
Jan 25 13:11:01 osboxes telegraf[1808]: 2017-01-25T13:11:01Z I! Loaded outputs: influxdb
Jan 25 13:11:01 osboxes telegraf[1808]: 2017-01-25T13:11:01Z I! Loaded inputs: inputs.swap inputs.disk inputs.diskio inputs.processes inputs.system inputs.sqlserver inputs.cpu inputs.kernel inputs.mem
Jan 25 13:11:01 osboxes telegraf[1808]: 2017-01-25T13:11:01Z I! Tags enabled: host=osboxes
Jan 25 13:11:01 osboxes telegraf[1808]: 2017-01-25T13:11:01Z I! Agent Config: Interval:10s, Quiet:false, Hostname:"osboxes", Flush Interval:10s
Jan 25 13:11:11 osboxes telegraf[1808]: panic: runtime error: invalid memory address or nil pointer dereference
Jan 25 13:11:11 osboxes telegraf[1808]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x654edb]
Jan 25 13:11:11 osboxes telegraf[1808]: goroutine 424 [running]:
Jan 25 13:11:11 osboxes telegraf[1808]: panic(0xf2a2e0, 0xc420010070)
Jan 25 13:11:11 osboxes telegraf[1808]: /usr/local/go/src/runtime/panic.go:500 +0x1a1
Jan 25 13:11:11 osboxes telegraf[1808]: github.com/influxdata/influxdb/client/v2.(*client).Write(0xc4201080c0, 0x18fd660, 0xc4208aaa20, 0x0, 0x0)
Jan 25 13:11:11 osboxes telegraf[1808]: /home/ubuntu/telegraf-build/src/github.com/influxdata/influxdb/client/v2/client.go:354 +0xfb
Jan 25 13:11:11 osboxes telegraf[1808]: github.com/influxdata/telegraf/plugins/outputs/influxdb.(*InfluxDB).Write(0xc42000a900, 0xc42096c000, 0x3e8, 0x3e8, 0xc420658da0, 0x6b3911)
Jan 25 13:11:11 osboxes telegraf[1808]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/outputs/influxdb/influxdb.go:202 +0x27b
Jan 25 13:11:11 osboxes telegraf[1808]: github.com/influxdata/telegraf/internal/models.(*RunningOutput).write(0xc4201a8a00, 0xc42096c000, 0x3e8, 0x3e8, 0x3e8, 0x2)
Jan 25 13:11:11 osboxes telegraf[1808]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/models/running_output.go:170 +0xa1
Jan 25 13:11:11 osboxes telegraf[1808]: github.com/influxdata/telegraf/internal/models.(*RunningOutput).AddMetric(0xc4201a8a00, 0x18ff3a0, 0xc4205bf480)
Jan 25 13:11:11 osboxes telegraf[1808]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/models/running_output.go:112 +0x149
Jan 25 13:11:11 osboxes telegraf[1808]: github.com/influxdata/telegraf/agent.(*Agent).flusher.func1(0xc420765d40, 0xc4202380c0, 0xc4208cdc20, 0xc420026090)
Jan 25 13:11:11 osboxes telegraf[1808]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:278 +0x1e7
Jan 25 13:11:11 osboxes telegraf[1808]: created by github.com/influxdata/telegraf/agent.(*Agent).flusher
Jan 25 13:11:11 osboxes telegraf[1808]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:286 +0xee
Jan 25 13:11:11 osboxes systemd[1]: telegraf.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 25 13:11:11 osboxes systemd[1]: telegraf.service: Unit entered failed state.
Jan 25 13:11:11 osboxes systemd[1]: telegraf.service: Failed with result 'exit-code'.
Jan 25 13:11:11 osboxes systemd[1]: telegraf.service: Service hold-off time over, scheduling restart.
Jan 25 13:11:11 osboxes systemd[1]: Stopped The plugin-driven server agent for reporting metrics into InfluxDB.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behaviorpanicissue that results in panics from Telegrafissue that results in panics from Telegraf