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

Error on statfs() system call for \"net:[4026533460]\": no such file or directory #773

Closed
netmonk opened this issue Dec 29, 2017 · 7 comments

Comments

@netmonk
Copy link
Contributor

netmonk commented Dec 29, 2017

Host operating system: output of uname -a

3.10.0-327.36.3.el7.x86_64

node_exporter version: output of node_exporter --version

node_exporter, version 0.15.2 (branch: HEAD, revision: 98bc649)
build user: root@d5c4792c921f
build date: 20171205-14:50:53
go version: go1.9.2

node_exporter command line flags

none

Are you running node_exporter in Docker?

no

What did you do that produced an error?

running node_exporter

What did you expect to see?

nothing

What did you see instead?

Dec 29 15:20:02 toto node_exporter: time="2017-12-29T15:20:02+01:00" level=error msg="Error on statfs() system call for \"net:[4026533460]\": no such file or directory" source="filesystem_linux.go:57" Dec 29 15:20:02 toto node_exporter: time="2017-12-29T15:20:02+01:00" level=error msg="Error on statfs() system call for \"net:[4026533460]\": no such file or directory" source="filesystem_linux.go:57"

toto:/proc# grep net /proc/mounts cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0 tmpfs /run/netns tmpfs rw,nosuid,nodev,mode=755 0 0 proc net:[4026533460] proc rw,nosuid,nodev,noexec,relatime 0 0 proc net:[4026533460] proc rw,nosuid,nodev,noexec,relatime 0 0

In lines 28/29 of prometheus/node_exporter/blob/master/collector/filesystem_linux.go you define excluded filesystem type and excluded mount point but those proc net:[4026533460] proc are not catched by both regexp. with lead to this error message in logs.

@netmonk
Copy link
Contributor Author

netmonk commented Dec 29, 2017

guess regexp line 29 shoudl be replaced by "^((sys|auto)fs|proc)$"

@grobie
Copy link
Member

grobie commented Dec 29, 2017

Sounds right, the type of the proc filesystem in Linux is proc and not procfs. Do you want to send a PR?

@netmonk
Copy link
Contributor Author

netmonk commented Dec 29, 2017

well beware
in freebsd it is procfs on linux it is proc

im not fluent enough in go to submit any PR. I prefer real expert to write the patch :)
I can imagine the original code was dev on a freebsd plateform

@grobie
Copy link
Member

grobie commented Dec 29, 2017

I'd vote for a simple regex list then ^(autofs|proc|procfs|sysfs)$ or maybe ^(autofs|proc(fs)?|sysfs)$, but let's keep it simple in general.

@micemuni
Copy link

@grobie @netmonk For me getting same but let me know where i have to modify these changes.? (proc filesystem)

@micemuni
Copy link

micemuni commented Oct 16, 2018

@grobie @netmonk i am running node exporter as docker service in Linuxkit VM. Once i reboot the server then Node exporter should restart after server reboot. But here Node exporter fails to start after instance reboot.

@XSHui
Copy link

XSHui commented Sep 5, 2019

@SuperQ @netmonk
I used

--collector.filesystem.ignored-mount-points="^/(sys|proc|dev|rootfs/var/lib/docker|rootfs/run/docker/netns)($|/)"

still get error

{"log":"time=\"2019-09-05T09:10:06Z\" level=error msg=\"Error on statfs() system call for \\\"net:[4026533829]\\\": no such file or directory\" source=\"filesystem_linux.go:57\"\n","stream":"stderr","time":"2019-09-05T09:10:06.442841008Z"}

why ?

node-exporter:v0.15.2

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

4 participants