-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fails startup on RHEL: Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuacct,cpu: no such file or directory #1843
Comments
If you dont use
|
Confirming:
After removing
The message "cAdvisor running in container: "/sys/fs/cgroup/cpuacct,cpu"" may or may not suggest the kernel is still exposing the necessary data within the container, and that bindmounting |
I have the same issue - "Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuacct: no such file or directory"
|
Fails on the latest AWS Amazon Linux as well. |
Also having this issue on Amazon Linux. Removing |
What worked for me was mounting the following volumes on amazon linux
I think the key was |
I encountered the same issue I using kubeadm install k8s v1.14, it's show the issue, I then try run cadvisor with docker as follow, it show the same error docker run from the readme sudo docker run
|
It seems the issue was addressed sometime between 0.28 and 0.33, although we haven't bothered to check which exact version/patch fixed it. We've tested 0.33 (container starts successfully) without workaround on CentOS 8. Maybe wait for a second confirmation since we don't have a lot of data/understanding, but it's looking like this issue can be closed. |
@tn-osimis Please allow me to disagree on closing the issue. At the current time, RHEL7 is hugely more widespread than RHEL8. Also, with the opportunity to run either docker or podman/buildah/etc, monitoring containers on RHEL7 becomes a very popular feature. |
@ElCoyote27 ah, if it still fails on RHEL7/CentOS7 then definitely keep it open indeed. Could you confirm you tested again on a recent cAdvisor version? The reason I ask is because we did check to see if the offending file in |
@tn-osimis Sure, let me test on RHEL7.7 and report back. |
@tn-osimis Still fails on RHEL7 (tested on RHEL7.7):
|
That one works for 0.27.3 on RHEL7.7 (but is ugly as hell)
|
Please note that the above 'workaround' also works for 0.33.0 on RHEL7.7 |
@ElCoyote27 I could not replicate that workaround with
I get these error for random volumes under |
@secustor Remove the 'xfs' section. It probably means you don't have any XFS filesystems (the module isn't loaded). Or do a 'modprobe xfs' on the host. |
@ElCoyote27 Thx, by removing the offending volumes I have managed get it running.
|
hi im running rhel 7.8 and the latest version of cadvisor , but im also getting the error: Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuacct,cpu: no such file or directory Ive tried adding the following to my docker run command: --volume=/cgroup:/cgroup:ro but no luck If i try: i get a different error: /usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:235: starting container process caused "container init exited prematurely". Is it actually possible to use Cadvisor with rhel at the moment? thanks Dave |
ive added a comment on 2155 , with a cfg that seems to work for me. |
#2155 (comment) - the docker command in this comment for #2155 worked for me. |
docker info:
docker cmd:
log: https://www.pastefile.com/WJ7uuP
Looks a lot like:
With v0.28.0 it will actually start - but spit out a number of error messages like:
The text was updated successfully, but these errors were encountered: