Telegraf constant restart after upgrade to v1.26.0

After a standard upgrade, telegraf is now constantly crashing with the following:

Mar 16 20:42:45 home telegraf[18525]: panic: interface conversion: interface {} is nil, not map[string]uint64
Mar 16 20:42:45 home telegraf[18525]: goroutine 143 [running]:
Mar 16 20:42:45 home telegraf[18525]: github.com/influxdata/telegraf/plugins/inputs/ethtool.(*NamespaceGoroutine).Get(0xc000c34e40, {{0x3, 0x5dc, {0xc00047ecca, 0x6}, {0xc001300b34, 0x6, 0x29cc}, 0x13}, {0x70475c0, ...}})
Mar 16 20:42:45 home telegraf[18525]:         /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/namespace_linux.go:99 +0x125
Mar 16 20:42:45 home telegraf[18525]: github.com/influxdata/telegraf/plugins/inputs/ethtool.(*CommandEthtool).Get(0x0?, {{0x3, 0x5dc, {0xc00047ecca, 0x6}, {0xc001300b34, 0x6, 0x29cc}, 0x13}, {0x70475c0, ...}})
Mar 16 20:42:45 home telegraf[18525]:         /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/ethtool_linux.go:235 +0x55
Mar 16 20:42:45 home telegraf[18525]: github.com/influxdata/telegraf/plugins/inputs/ethtool.(*Ethtool).gatherEthtoolStats(0xc000ec60d0, {{0x3, 0x5dc, {0xc00047ecca, 0x6}, {0xc001300b34, 0x6, 0x29cc}, 0x13}, {0x70475c0, ...}}, ...)
Mar 16 20:42:45 home telegraf[18525]:         /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/ethtool_linux.go:135 +0x595
Mar 16 20:42:45 home telegraf[18525]: github.com/influxdata/telegraf/plugins/inputs/ethtool.(*Ethtool).Gather.func1({{0x3, 0x5dc, {0xc00047ecca, 0x6}, {0xc001300b34, 0x6, 0x29cc}, 0x13}, {0x70475c0, 0xc000c34e40}})
Mar 16 20:42:45 home telegraf[18525]:         /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/ethtool_linux.go:79 +0x58
Mar 16 20:42:45 home telegraf[18525]: created by github.com/influxdata/telegraf/plugins/inputs/ethtool.(*Ethtool).Gather
Mar 16 20:42:45 home telegraf[18525]:         /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/ethtool_linux.go:78 +0x2a8
Mar 16 20:42:45 home telegraf[18628]: 2023-03-16T20:42:45Z I! Loading config file: /etc/telegraf/telegraf.conf
Mar 16 20:42:45 home telegraf[18628]: 2023-03-16T20:42:45Z I! Starting Telegraf 1.26.0

I haven’t made any changes to the config and the config for ethtool looks like this:

[[inputs.ethtool]]
  interface_include = ["enp0s25","wlp3s0"]

Which has been working for a long time. Both of those are valid interface names and even if I comment out the include line, it still keeps crashing.

I’ve now had to stop the monitoring of the network.

Can someone please help?

Thanks J.

Can you check the artifacts in this PR and let me know if this crash stops?

Thanks!

Hi, sorry I don’t know how to do that.

There is a comment from the Telegraf Tiger on that PR. It has links to telegraf archives, that you can extract, and then run. It would help us to know if this existing PR fixes this issue as we had another user mention this same thing.

OK, thanks. I’m out of time for now. Will try to get to it as soon as I can.