-
Notifications
You must be signed in to change notification settings - Fork 225
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
docker run fail,Error attaching fanotify #277
Comments
Fanotify is not an issue here, it falls back to the old on-demand mechanism. This is an issue:
It looks like you didn't build examples before running:
|
thanks a lot. I try to build examples, but got an error: root@vcs-node0:/ebpf_exporter# make -C examples |
Your clang 6.0 appears to be too old, which isn't surprising for Ubuntu 18.04. l don't think you'll have much success given your old environment, libbpf expects ubuntu 20.10 at least for BTF to work: You can try removing |
【env】
Ubuntu 18.04 server
【cmd】
docker run --rm -it --privileged -p 9435:9435 -v /ebpf_exporter/examples:/examples -v /sys/fs/cgroup:/sys/fs/cgroup:ro ebpf_exporter --config.dir=examples --config.names=biolatency
【result】
2023/09/22 09:14:08 Error attaching fanotify, using on-demand resolution instead: error calling fanotify_init: invalid argument
2023/09/22 09:14:08 Error attaching exporter: error creating module from "examples/biolatency.bpf.o" for config "biolatency": open examples/biolatency.bpf.o: no such file or directory
The text was updated successfully, but these errors were encountered: