Skip to content

Instantly share code, notes, and snippets.

@bluecmd
Created July 22, 2016 15:25
Show Gist options
  • Save bluecmd/e9f00f813aa8891ada2be939d98e45ba to your computer and use it in GitHub Desktop.
Save bluecmd/e9f00f813aa8891ada2be939d98e45ba to your computer and use it in GitHub Desktop.
bash-4.3# ./cadvisor --logtostderr --port=8081
I0722 15:17:46.509166 1814 storagedriver.go:50] Caching stats in memory for 2m0s
I0722 15:17:46.509519 1814 manager.go:138] cAdvisor running in container: "/docker/905e57d8fa7c9d69e5b1eef9ea9b8766f57fb3dd86e9c05a267d34e38d769635"
W0722 15:17:46.510143 1814 manager.go:142] Unable to connect to Docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?
W0722 15:17:46.511665 1814 manager.go:146] unable to connect to Rkt api service: rkt: cannot tcp Dial rkt api service: dial tcp [::1]:15441: getsockopt: connection refused
I0722 15:17:46.513084 1814 fs.go:139] Filesystem partitions: map[/dev/loop0:{mountpoint:/ major:0 minor:35 fsType:btrfs blockSize:0}]
I0722 15:17:46.531825 1814 manager.go:192] Machine: {NumCores:16 CpuFrequency:2294471 MemoryCapacity:169369563136 MachineID:855598f383e14ecc9529e06e70139508 SystemUUID:39C33F42-7826-BA4F-D313-2554E61E3BE6 BootID:36a5ee51-a864-4745-80b0-ea7c4781a641 Filesystems:[{Device:/dev/loop0 Capacity:42194698240 Type:vfs Inodes:0}] DiskMap:map[8:0:{Name:sda Major:8 Minor:0 Size:34359738368 Scheduler:cfq}] NetworkDevices:[{Name:eth0 MacAddress:02:42:ac:11:00:02 Speed:10000 Mtu:1500}] Topology:[{Id:0 Memory:56580935680 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:15728640 Type:Unified Level:3}]} {Id:2 Memory:56128589824 Cores:[{Id:0 Threads:[1] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:4 Memory:0 Cores:[{Id:0 Threads:[2] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:6 Memory:0 Cores:[{Id:0 Threads:[3] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:8 Memory:0 Cores:[{Id:0 Threads:[4] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:10 Memory:0 Cores:[{Id:0 Threads:[5] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:12 Memory:0 Cores:[{Id:0 Threads:[6] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:14 Memory:0 Cores:[{Id:0 Threads:[7] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:16 Memory:0 Cores:[{Id:0 Threads:[8] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:18 Memory:0 Cores:[{Id:0 Threads:[9] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:20 Memory:0 Cores:[{Id:0 Threads:[10] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:22 Memory:0 Cores:[{Id:0 Threads:[11] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:24 Memory:0 Cores:[{Id:0 Threads:[12] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:26 Memory:0 Cores:[{Id:0 Threads:[13] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:28 Memory:0 Cores:[{Id:0 Threads:[14] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]} {Id:30 Memory:0 Cores:[{Id:0 Threads:[15] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:15728640 Type:Unified Level:3}]}] CloudProvider:Unknown InstanceType:Unknown InstanceID:None}
I0722 15:17:46.533078 1814 manager.go:198] Version: {KernelVersion:3.16.0-4-amd64 ContainerOsVersion:Unknown DockerVersion:Unknown CadvisorVersion:0.23.4 CadvisorRevision:fa873f0}
E0722 15:17:46.534647 1814 manager.go:235] Docker container factory registration failed: failed to validate Docker info: failed to detect Docker info: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
E0722 15:17:46.534711 1814 manager.go:240] 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 refused
I0722 15:17:46.534746 1814 factory.go:54] Registering systemd factory
I0722 15:17:46.536259 1814 factory.go:86] Registering Raw factory
I0722 15:17:46.537551 1814 manager.go:1072] Started watching for new ooms in manager
I0722 15:17:46.539888 1814 oomparser.go:185] oomparser using systemd
I0722 15:17:46.541074 1814 manager.go:281] Starting recovery of all containers
I0722 15:17:46.656729 1814 manager.go:286] Recovery completed
I0722 15:17:46.784165 1814 cadvisor.go:151] Starting cAdvisor version: 0.23.4-fa873f0 on port 8081
@aguformoso
Copy link

Similar thing happening to me...

Unable to connect to Docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?

And I am sure it is running...

docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled)
   Active: active (running) since Tue 2016-07-26 10:24:16 EDT; 1 day 2h ago
     Docs: https://docs.docker.com
 Main PID: 652 (docker)
   CGroup: /system.slice/docker.service
           ├─  652 /usr/bin/docker daemon -H fd://

Any progress?

I have pulled the latest version of cadvisor, running on Debian Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3a~test (2016-02-18) x86_64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment