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

failed to parse /proc/net/softnet_stat #1625

Closed
FlorinAndrei opened this issue Feb 27, 2020 · 6 comments · Fixed by #1640
Closed

failed to parse /proc/net/softnet_stat #1625

FlorinAndrei opened this issue Feb 27, 2020 · 6 comments · Fixed by #1640
Labels
Milestone

Comments

@FlorinAndrei
Copy link

Host operating system: output of uname -a

Linux cscale-82-156.XXXXXXXXX.com 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 1.0.0-rc.0 (branch: HEAD, revision: ef7c058)
build user: root@b38a2df1a38b
build date: 20200220-12:54:05
go version: go1.13.8

node_exporter command line flags

./node_exporter
--collector.cpu.info
--collector.buddyinfo
--collector.interrupts
--collector.ksmd
--collector.logind
--collector.mountstats
--collector.processes
--collector.qdisc
--collector.schedstat
--collector.systemd
--collector.tcpstat

Are you running node_exporter in Docker?

no

What did you do that produced an error?

launched node_exporter

What did you expect to see?

no errors

What did you see instead?

level=error ts=2020-02-27T22:48:20.264Z caller=collector.go:161 msg="collector failed" name=softnet duration_seconds=0.001846591 err="could not get softnet statistics: failed to parse /proc/net/softnet_stat: 10 columns were detected, but 11 were expected"

This is the contents of the softnet_stat file:

00029620 00000000 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0012f6e7 00000000 0000000e 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0028b596 00000000 00000012 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0028d1b4 00000000 00000009 00000000 00000000 00000000 00000000 00000000 00000000 00000000
002f9d70 00000000 0000000d 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0003baa1 00000000 00000003 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0008b9c2 00000000 00000004 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00034422 00000000 00000006 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00044ae8 00000000 00000003 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00027c94 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002b962 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0003140b 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
000306fd 00000000 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00027096 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002f6e0 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002f073 00000000 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
000277ba 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002e199 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002d252 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002d4f1 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0304743c 00000000 00000465 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0049bc3a 00000000 0000000e 00000000 00000000 00000000 00000000 00000000 00000000 00000000
001f9954 00000000 00000006 00000000 00000000 00000000 00000000 00000000 00000000 00000000
002ea54d 00000000 00000009 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002c5b6 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002a126 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002c899 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
000288f8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
000290c8 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00070452 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00027548 00000000 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002603d 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00027321 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00026bbf 00000000 00000003 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00027018 00000000 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
000251d5 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00025877 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0002b9ef 00000000 00000004 00000000 00000000 00000000 00000000 00000000 00000000 00000000
000266e5 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00024e27 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
@SuperQ
Copy link
Member

SuperQ commented Feb 28, 2020

Thanks for the bug report, this needs to be fixed in the procfs library. It looks like older kernels have different fields.

@SuperQ SuperQ added this to the v1.0.0 milestone Feb 28, 2020
@SuperQ SuperQ added the bug label Feb 28, 2020
SuperQ added a commit to prometheus/procfs that referenced this issue Feb 28, 2020
Allow 9 or more columns from softnet, older kernels had fewer columns.

Fix for prometheus/node_exporter#1625

Signed-off-by: Ben Kochie <superq@gmail.com>
SuperQ added a commit to prometheus/procfs that referenced this issue Mar 6, 2020
Allow 9 or more columns from softnet, older kernels had fewer columns.

Fix for prometheus/node_exporter#1625

Signed-off-by: Ben Kochie <superq@gmail.com>
SuperQ added a commit to prometheus/procfs that referenced this issue Mar 9, 2020
Allow 9 or more columns from softnet, older kernels had fewer columns.

Fix for prometheus/node_exporter#1625

Signed-off-by: Ben Kochie <superq@gmail.com>
@francistan89
Copy link

Is there a fix on this issue?

Getting the same issue when running node exporter on Centos 6..

"level=error ts=2020-03-15T19:33:12.156Z caller=collector.go:161 msg="collector failed" name=softnet duration_seconds=0.000105656 err="could not get softnet statistics: failed to parse /proc/net/softnet_stat: 10 columns were detected, but 11 were expected"

Thanks.

@SuperQ
Copy link
Member

SuperQ commented Mar 15, 2020

The fix is upstream, but I'm waiting on one more other fix to be merged and I can cut a release.

As a workaround, you can disable softnet with --no-collector.softnet.

@francistan89
Copy link

Thank you. I will try that workaround. Hopefully will get a proper fix soon.

SuperQ added a commit that referenced this issue Mar 19, 2020
Bump procfs to latest release.

Fixes: #1625
Fixes: #1634

Signed-off-by: Ben Kochie <superq@gmail.com>
SuperQ added a commit that referenced this issue Mar 19, 2020
Bump procfs to latest release.

Fixes: #1625
Fixes: #1634

Signed-off-by: Ben Kochie <superq@gmail.com>
remijouannet pushed a commit to remijouannet/procfs that referenced this issue Oct 20, 2022
Allow 9 or more columns from softnet, older kernels had fewer columns.

Fix for prometheus/node_exporter#1625

Signed-off-by: Ben Kochie <superq@gmail.com>
@roy-spark
Copy link

The fix is upstream, but I'm waiting on one more other fix to be merged and I can cut a release.

As a workaround, you can disable softnet with --no-collector.softnet.

This workaround doesn't affect my logs.

grafana-main-deployment-node-exporter-1   | ts=2023-06-14T18:52:18.792Z caller=collector.go:169 level=error msg="collector failed" name=arp duration_seconds=9.098e-06 err="could not get ARP entries: error reading arp \"/host/proc/net/arp\": open /host/proc/net/arp: no such file or directory"```

@SuperQ
Copy link
Member

SuperQ commented Jun 15, 2023

@roy-spark That's because that is the arp collector, not softnet.

@prometheus prometheus locked as resolved and limited conversation to collaborators Jun 15, 2023
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this issue Apr 9, 2024
Bump procfs to latest release.

Fixes: prometheus#1625
Fixes: prometheus#1634

Signed-off-by: Ben Kochie <superq@gmail.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this issue Apr 9, 2024
Bump procfs to latest release.

Fixes: prometheus#1625
Fixes: prometheus#1634

Signed-off-by: Ben Kochie <superq@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants