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

runtime error: index out of range #748

Closed
ashu16815 opened this issue Nov 29, 2017 · 3 comments
Closed

runtime error: index out of range #748

ashu16815 opened this issue Nov 29, 2017 · 3 comments

Comments

@ashu16815
Copy link

Host operating system: output of uname -a

Linux caplifs02.telecom.tcnz.net 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter --version
node_exporter, version 0.15.1 (branch: HEAD, revision: ba5da2c)
build user: root@b73d73f4fc5e
build date: 20171107-17:50:51
go version: go1.9.2

node_exporter command line flags

./node_exporter &

Are you running node_exporter in Docker?

No

What did you do that produced an error?

started node_exporter and it breaks in few seconds

What did you expect to see?

node metrics should pick by node_exporter

What did you see instead?

INFO[0000] Listening on :9100 source="node_exporter.go:76"
panic: runtime error: index out of range

goroutine 67 [running]:
github.com/prometheus/node_exporter/collector.(*cpuCollector).updateCPUfreq(0xc42023c690, 0xc420168fc0, 0x0, 0x0)
/go/src/github.com/prometheus/node_exporter/collector/cpu_linux.go:164 +0x13ad
github.com/prometheus/node_exporter/collector.(*cpuCollector).Update(0xc42023c690, 0xc420168fc0, 0x104adc0, 0x0)
/go/src/github.com/prometheus/node_exporter/collector/cpu_linux.go:94 +0x60
github.com/prometheus/node_exporter/collector.execute(0xabf498, 0x3, 0x1013220, 0xc42023c690, 0xc420168fc0)
/go/src/github.com/prometheus/node_exporter/collector/collector.go:118 +0x7e
github.com/prometheus/node_exporter/collector.nodeCollector.Collect.func1(0xc420168fc0, 0xc4201ee030, 0xabf498, 0x3, 0x1013220, 0xc42023c690)
/go/src/github.com/prometheus/node_exporter/collector/collector.go:109 +0x53
created by github.com/prometheus/node_exporter/collector.nodeCollector.Collect
/go/src/github.com/prometheus/node_exporter/collector/collector.go:108 +0x109

@SuperQ
Copy link
Member

SuperQ commented Nov 29, 2017

This is likely a duplicate of #745

@ashu16815
Copy link
Author

Thanks a lot for quick response.
When you are planning for official release as I have put this on production instance for that I need to take from official release.

@ashu16815
Copy link
Author

Hi,

I build this and its working now. Thanks a lot for quick help.
waiting for official release now.

Thanks and Regards,
Ankit Gupta

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