Cadvisor: Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuset: no such file or directory

Created on 3 Jan 2018  路  4Comments  路  Source: google/cadvisor

I'm getting the following on 0.28.3:

F0103 11:48:35.614947 1 cadvisor.go:156] Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuset: no such file or directory

0.25.0 and 0.27.3 are working fine.

Alpine Linux v3.4 Kernel version is 4.9.43-17.39.amzn1.x86_64

Most helpful comment

I had the same issue on Amazon linux (ECS). Needed to mount /cgroup (host) on /sys/fs/cgroup (cadvisor) wich is the path expected by cadvisor.
docker run --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/cgroup:/sys/fs/cgroup:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor google/cadvisor:latest

/sys/fs/cgroup exist on amazon linux but is empty.
https://github.com/google/cadvisor/blob/b9ab5d6ba96e2d840270b75c765faed0dad5004f/validate/validate.go#L197

All 4 comments

same problem here. We're downgrading to 0.27.3.
My host computer is a CentOS 7.3 with a Linux kernel version at 3.11.

I had the same issue on Amazon linux (ECS). Needed to mount /cgroup (host) on /sys/fs/cgroup (cadvisor) wich is the path expected by cadvisor.
docker run --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/cgroup:/sys/fs/cgroup:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor google/cadvisor:latest

/sys/fs/cgroup exist on amazon linux but is empty.
https://github.com/google/cadvisor/blob/b9ab5d6ba96e2d840270b75c765faed0dad5004f/validate/validate.go#L197

@jbgachot, awesome!!!

Thanks ;-)

@jbgachot, THANKYOU!!!

Was this page helpful?
0 / 5 - 0 ratings