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

Telegraf service crashes with "Panic: Runtime Error: Slice bounds out of range" #2385

Closed
deveth0 opened this issue Feb 9, 2017 · 2 comments

Comments

@deveth0
Copy link

deveth0 commented Feb 9, 2017

Bug report

System info: [Include InfluxDB version, operating system name, and other relevant details]
Debian 8 running Telegraf 1.2.0-1 from repos.influxdata.com

Steps to reproduce:

Expected behavior:
Telegraf does not crash

Actual behavior:
After some time the telegraf service crashes with the attached error. I'm not sure if this is related to the snmp errors we see but I'd expect that telegraf just ignores those.

Additional info:

2017-02-07T08:25:41Z E! ERROR: input [inputs.snmp] took longer to collect than collection interval (10s)
2017-02-07T08:26:00Z E! ERROR: input [inputs.snmp] took longer to collect than collection interval (10s)
2017-02-07T08:26:20Z E! ERROR: input [inputs.snmp] took longer to collect than collection interval (10s)
panic: runtime error: slice bounds out of range

goroutine 3522 [running]:
panic(0xf2a2e0, 0xc4200100e0)
        /usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/influxdata/telegraf/metric.(*metric).Fields(0xc420911780, 0xc420261110)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/metric/metric.go:279 +0x5dd
github.com/influxdata/telegraf/metric.(*metric).Point(0xc420911780, 0xc42071ac20)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/metric/metric.go:141 +0x80
github.com/influxdata/telegraf/plugins/outputs/influxdb.(*InfluxDB).Write(0xc420492100, 0xc42064a000, 0x7e, 0x7e, 0xc4208b0e58, 0x6b3911)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/outputs/influxdb/influxdb.go:194 +0x154
github.com/influxdata/telegraf/internal/models.(*RunningOutput).write(0xc4202086e0, 0xc42064a000, 0x7e, 0x7e, 0x7e, 0xc4208b0f28)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/models/running_output.go:170 +0xa1
github.com/influxdata/telegraf/internal/models.(*RunningOutput).Write(0xc4202086e0, 0x11562e0, 0xc420441040)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/models/running_output.go:154 +0x49c
github.com/influxdata/telegraf/agent.(*Agent).flush.func1(0xc420441040, 0xc4202086e0)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:232 +0x68
created by github.com/influxdata/telegraf/agent.(*Agent).flush
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:237 +0xb4

@sparrc
Copy link
Contributor

sparrc commented Feb 9, 2017

this has been fixed in 1.2.1, please upgrade

@sparrc sparrc closed this as completed Feb 9, 2017
@deveth0
Copy link
Author

deveth0 commented Feb 9, 2017

Cool, thank you! Could not find it in the changelog :)

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

No branches or pull requests

2 participants