Cadvisor: inotify_add_watch /sys/fs/cgroup/cpuacct,cpu

Created on 27 Oct 2016  路  4Comments  路  Source: google/cadvisor

I get an error whe i exec

sudo docker run \
  --volume=/:/rootfs:ro \
  --volume=/var/run:/var/run:rw \
  --volume=/sys:/sys:ro \
  --volume=/var/lib/docker/:/var/lib/docker:ro \
  --publish=8080:8080 \
  --detach=true \
  --name=cadvisor \
  google/cadvisor:latest

The error:

I1027 07:26:01.613983       1 storagedriver.go:50] Caching stats in memory for 2m0s
I1027 07:26:01.614428       1 manager.go:140] cAdvisor running in container: "/docker/36cca3d23b1a1a648932678f2676440322717d9fd92c4843d867617f49e8216b"
W1027 07:26:01.624145       1 manager.go:148] unable to connect to Rkt api service: rkt: cannot tcp Dial rkt api service: dial tcp [::1]:15441: getsockopt: connection refused
I1027 07:26:01.630207       1 fs.go:116] Filesystem partitions: map[/dev/mapper/docker-8:3-67366434-23cab2b5818a137e25d251cf4f45e8c3a6cb4568b84825c2a82e7770e4f431d5:{mountpoint:/ major:253 mi
nor:1 fsType:xfs blockSize:0} /dev/sda3:{mountpoint:/var/lib/docker/devicemapper major:8 minor:3 fsType:xfs blockSize:0} /dev/sda1:{mountpoint:/rootfs/boot major:8 minor:1 fsType:xfs blockSize:0}]I1027 07:26:01.631891       1 manager.go:195] Machine: {NumCores:1 CpuFrequency:2592001 MemoryCapacity:1024311296 MachineID:44fc41b0b519417ba79d19ba9e052eb7 SystemUUID:87964D56-38A3-C634-43E9
-85D5D3E72E51 BootID:9cfb852f-e2f8-479b-8b8c-6c94e0d0e9f9 Filesystems:[{Device:/dev/mapper/docker-8:3-67366434-23cab2b5818a137e25d251cf4f45e8c3a6cb4568b84825c2a82e7770e4f431d5 Capacity:10725883904 Type:vfs Inodes:10484736 HasInodes:true} {Device:/dev/sda3 Capacity:19001245696 Type:vfs Inodes:18566144 HasInodes:true} {Device:/dev/sda1 Capacity:311078912 Type:vfs Inodes:307200 HasInodes:true}] DiskMap:map[253:0:{Name:dm-0 Major:253 Minor:0 Size:107374182400 Scheduler:none} 253:1:{Name:dm-1 Major:253 Minor:1 Size:10737418240 Scheduler:none} 8:0:{Name:sda Major:8 Minor:0 Size:21474836480 Scheduler:deadline}] NetworkDevices:[{Name:eno16777736 MacAddress:00:0c:29:e7:2e:51 Speed:1000 Mtu:1500}] Topology:[{Id:0 Memory:1073205248 Cores:[{Id:0 Threads:[0] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:4194304 Type:Unified Level:3}]}] CloudProvider:Unknown InstanceType:Unknown InstanceID:None}I1027 07:26:01.633301       1 manager.go:201] Version: {KernelVersion:3.10.0-327.36.3.el7.x86_64 ContainerOsVersion:Alpine Linux v3.4 DockerVersion:1.12.3 CadvisorVersion:v0.24.0 CadvisorRevi
sion:0cdf491}E1027 07:26:01.639162       1 factory.go:291] devicemapper filesystem stats will not be reported: unable to find thin_ls binary
I1027 07:26:01.639177       1 factory.go:295] Registering Docker factory
W1027 07:26:01.639191       1 manager.go:244] Registration of the rkt container factory failed: unable to communicate with Rkt api service: rkt: cannot tcp Dial rkt api service: dial tcp [::1
]:15441: getsockopt: connection refusedI1027 07:26:01.639196       1 factory.go:54] Registering systemd factory
I1027 07:26:01.639292       1 factory.go:86] Registering Raw factory
I1027 07:26:01.639383       1 manager.go:1082] Started watching for new ooms in manager
W1027 07:26:01.639585       1 manager.go:272] Could not configure a source for OOM detection, disabling OOM events: unable to find any kernel log file available from our set: [/var/log/kern.l
og /var/log/messages /var/log/syslog]I1027 07:26:01.640138       1 manager.go:285] Starting recovery of all containers
I1027 07:26:01.684401       1 manager.go:290] Recovery completed
F1027 07:26:01.684420       1 cadvisor.go:151] Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuacct,cpu: no such file or directory

My os is CentOS-7-x86_64-Minimal, and there is the folder /sys/fs/cgroup/cpu,cpuacct/, but /sys/fs/cgroup/cpuacct,cpu.

How i can do? Thanks.

Most helpful comment

This is fixed in cAdvisor 0.24.1 (docker run google/cadvisor:v0.24.1). I'll update latest to point to that release soon.

All 4 comments

This is fixed in cAdvisor 0.24.1 (docker run google/cadvisor:v0.24.1). I'll update latest to point to that release soon.

@timstclair It's OK. Thanks.

28.3 has the same issue, but 27.3 works fine. Just FYI

28.3 has the same issue, but 27.3 works fine. Just FYI

+1

Filed https://github.com/google/cadvisor/issues/1850

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AnthonyWC picture AnthonyWC  路  6Comments

rikatz picture rikatz  路  5Comments

hridyeshpant picture hridyeshpant  路  7Comments

selvik picture selvik  路  8Comments

ghost picture ghost  路  5Comments