-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Permission denied on statfs() #66
Comments
Hi @Zikoel Let me look into this. |
I disabled the node-exporter in the stack until we figure out why it is not behaving correctly across the different OS platforms. In the mean time cAdvisor is still working. |
Refer to this comment. You'll have to run as root or ignore those mountpoints, i.e. run node_exporter with something like |
@Zikoel Is this working for you based on the information provided? |
fixed in #74 |
I copied the fix (the new regex for collector.filesystem.ignored-mount-points) in my docker-compose file for node_exporter and still getting the "Error on statfs() system call... permissions denied" messages: Any ideas? |
Can you replace
to
and retry. |
Unfortunately that didn't work either.
After adding this I no longer see the error messages. Does this by any means affect the metrics that node_exporter gather? Or it is totally irrelevant...? In another experiment I changed the user to root in node_exporter's Dockerfile (USER root) and the error message was not present even when the aforementioned mount point was not in ignored-mount-points. So I can see to options: |
Hello! I'm using: [Unit] Description=Prometheus node_exporter Wants=basic.target After=basic.target network.target [Service] User=node-exporter Group=node-exporter ExecStart=/usr/local/bin/node_exporter \ --collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)" ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=always [Install] WantedBy=multi-user.target I already tested all options from the answers above, doesn't works. Error: Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/var/lib/docker/containers/3b904624f3f78c0a0bea28242d71b058649e496cd370f61dfd914d611dec669c/shm\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/var/lib/docker/containers/98cf0acb0a216b90c829beada7f07ae0ffa8c718563f1bc0a417e9dbf976b6cf/shm\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/var/lib/docker/containers/0c7fcfe251dbf2c963f5a2f6ebd188f8520b492409666c8879269817ac06c2d8/shm\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/var/lib/docker/containers/df231cc28c1a9600c5941bdb6ee0485d890ddab7782f9ccca6f508943214e52b/shm\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/run/docker/netns/ecf6554bda8d\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/run/docker/netns/d0d90749145b\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/run/docker/netns/91a83012616c\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/run/docker/netns/b16cf914fc6e\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/run/docker/netns/ingress_sbox\": permission denied" source="filesystem_linux.go:57" Dez 12 11:46:22 chuck-norris.always.survives node_exporter[17479]: time="2017-12-12T11:46:22+01:00" level=error msg="Error on statfs() system call for \"/run/docker/netns/1-k5hvwdpqsj\": permission denied" source="filesystem_linux.go:57" Am I doing something wrong? Should I use --collector.filesystem.ignored-mount-points = .regex* or --collector.filesystem.ignored-mount-points .regex* I'm implementing using Puppet. Thanks in Advance! |
And one last thing: Version 0.14(Node Exporter) works without Problems. |
@gabrielstein |
Same problem here as described by @gabrielstein. Version 0.14 works perfect. The @llitfkitfk mentioned workaround with option |
I'm still getting Anything rootfs related is giving permission errors. This wasn't an issue in v14. My docker run command is:
Is there something I'm missing? |
For information, I solve the problem with the option:
like suggest @sradnev (#66 (comment)) without Hope this help. |
level=error msg="ERROR: cpu collector failed after 0.000392s: open /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq: permission denied" source="collector.go:132" |
If you are launching node exporter via systemd, the standard way to modify the startup parameters is by editing file
You need to modify this line:
Into this:
and then restart by:
|
When I start docker-composer on log output I see a bunch of error every time metrics was called from prometeus. The error was permissions denied:
node-exporter_1 | time="2017-10-17T10:40:38Z" level=error msg="Error on statfs() system call for \"/rootfs/run/docker/netns/default\": permission denied" source="filesystem_linux.go:57"
node-exporter_1 | time="2017-10-17T10:40:38Z" level=error msg="Error on statfs() system call for \"/rootfs/var/lib/docker/overlay2/38801ac617091d009b3767fffd86acf3c3a8bd676065ed13ee04826cd2294a5e/merged\": permission denied" source="filesystem_linux.go:57"
There is a solution for this? I run docker-compose on debian 9
The text was updated successfully, but these errors were encountered: