ipmi_exporter icon indicating copy to clipboard operation
ipmi_exporter copied to clipboard

Panic in `BMCNativeCollector`

Open mraerino opened this issue 10 months ago • 2 comments

Hi,

i just started testing the native collector on a fleet of nearly thousand hosts.

The exporter started panicing with this backtrace:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6314be]
goroutine 14413 [running]:
github.com/bougou/go-ipmi.(*SystemInfoParams).ToSystemInfo(0xc0003095e8)
        /go/pkg/mod/github.com/bougou/[email protected]/types_system_info_params.go:101 +0x3e
main.BMCNativeCollector.Collect({}, {{0x0, 0x0, 0x0}, {_, _}}, _, {{0xc00039cdd1, 0x1f}, {{0xc000292350, ...}, ...}})
        /app/collector_bmc_native.go:71 +0x294
main.ConfiguredCollector.Collect(...)
        /app/config.go:69
main.metaCollector.Collect({{0xc00039cdd1, 0x1f}, {0xabc8b5, 0x7}, 0xfbf760}, 0xc000197b90)
        /app/collector.go:118 +0x5b6
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
        /go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:458 +0xe5
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather in goroutine 1923
        /go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:467 +0x568

this might be an issue in go-ipmi, let me know if i should report it there

mraerino avatar Mar 05 '25 19:03 mraerino

@mraerino Hi~ I'm also experiencing this issue, freeIPMI works fine. Have you managed to solve it?

Clara12062 avatar Apr 23 '25 12:04 Clara12062

Haven't investigated it more, we also switched back to freeipmi

mraerino avatar Apr 23 '25 16:04 mraerino