rootsongjc / kubernetes-handbook

Kubernetes中文指南/云原生应用架构实战手册
https://jimmysong.io/book/kubernetes-handbook
Creative Commons Attribution 4.0 International
11.11k stars 2.95k forks source link

k8s1.10.0 install weavescope1.9-agent报错 #254

Closed sunruipu closed 4 years ago

sunruipu commented 6 years ago

weavescope 1.9 app端取不到数据,页面无法加载信息,weavescope1.9 agent报错信息如下:

<probe> INFO: 2018/08/03 03:21:58.251064 command line args: --mode=probe --probe-only=true --probe.docker=true --probe.docker.bridge=docker0 --probe.kubernetes=true 172.21.234.196:80
<probe> INFO: 2018/08/03 03:21:58.251148 probe starting, version 97377f45, ID 748a8223a8d0f3df
<probe> WARN: 2018/08/03 03:21:58.261132 Cannot resolve 'scope.weave.local.': dial tcp 172.20.58.1:53: connect: connection refused
<probe> ERRO: 2018/08/03 03:21:58.261436 Error fetching app details: only encoded map or array can be decoded into a struct
<probe> WARN: 2018/08/03 03:21:58.287483 Error setting up the eBPF tracker, falling back to proc scanning: cannot write "p:ptcp_v4_connect tcp_v4_connect\n" to kprobe_events: write /sys/kernel/debug/tracing/kprobe_events: device or resource busy
2018/08/03 03:21:58 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial unix ///var/run/dockershim.sock: connect: no such file or directory"; Reconnecting to {///var/run/dockershim.sock <nil>}
<probe> INFO: 2018/08/03 03:21:58.288123 kubernetes: targeting api server https://172.21.0.1:443
<probe> WARN: 2018/08/03 03:21:58.291493 Error collecting weave status, backing off 10s: Get http://127.0.0.1:6784/report: dial tcp 127.0.0.1:6784: connect: connection refused. If you are not running Weave Net, you may wish to suppress this warning by launching scope with the `--weave=false` option.
<probe> ERRO: 2018/08/03 03:21:58.297018 conntrack stderr:NOTICE: Netlink socket buffer size has been set to 8388608 bytes.
<probe> ERRO: 2018/08/03 03:21:58.297913 conntrack stderr:NOTICE: Netlink socket buffer size has been set to 8388608 bytes.
<probe> ERRO: 2018/08/03 03:21:59.263183 Error fetching app details: only encoded map or array can be decoded into a struct
2018/08/03 03:21:59 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial unix ///var/run/dockershim.sock: connect: no such file or directory"; Reconnecting to {///var/run/dockershim.sock <nil>}
<probe> ERRO: 2018/08/03 03:21:59.321326 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:00.302837 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
2018/08/03 03:22:00 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial unix ///var/run/dockershim.sock: connect: no such file or directory"; Reconnecting to {///var/run/dockershim.sock <nil>}
<probe> ERRO: 2018/08/03 03:22:01.263046 Error fetching app details: only encoded map or array can be decoded into a struct
<probe> ERRO: 2018/08/03 03:22:01.304485 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:01.379682 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-probe?arch=amd64&flag_kernel-version=4.4.117-1.el7.elrepo.x86_64&flag_kubernetes_enabled=true&flag_os=linux&os=linux&signature=nE3s8phP9ReLbS%2Bh4ACEZZPGKnwOMFsPtxqeF0tTb70%3D&version=97377f45: dial tcp 172.217.24.51:443: connect: connection timed out
<probe> ERRO: 2018/08/03 03:22:02.303767 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:03.301281 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
2018/08/03 03:22:03 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial unix ///var/run/dockershim.sock: connect: no such file or directory"; Reconnecting to {///var/run/dockershim.sock <nil>}
<probe> ERRO: 2018/08/03 03:22:04.302846 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:04.483723 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-probe?arch=amd64&flag_kernel-version=4.4.117-1.el7.elrepo.x86_64&flag_kubernetes_enabled=true&flag_os=linux&os=linux&signature=nE3s8phP9ReLbS%2Bh4ACEZZPGKnwOMFsPtxqeF0tTb70%3D&version=97377f45: dial tcp 172.217.24.51:443: connect: connection timed out
<probe> ERRO: 2018/08/03 03:22:05.263392 Error fetching app details: only encoded map or array can be decoded into a struct
<probe> ERRO: 2018/08/03 03:22:05.302670 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:06.304131 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:07.308801 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> WARN: 2018/08/03 03:22:08.296055 Error collecting weave status, backing off 20s: Get http://127.0.0.1:6784/report: dial tcp 127.0.0.1:6784: connect: connection refused. If you are not running Weave Net, you may wish to suppress this warning by launching scope with the `--weave=false` option.
<probe> ERRO: 2018/08/03 03:22:08.305089 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
2018/08/03 03:22:08 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial unix ///var/run/dockershim.sock: connect: no such file or directory"; Reconnecting to {///var/run/dockershim.sock <nil>}
<probe> ERRO: 2018/08/03 03:22:09.303559 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:10.304101 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:11.302920 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:12.303410 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:13.263510 Error fetching app details: only encoded map or array can be decoded into a struct
<probe> ERRO: 2018/08/03 03:22:13.303025 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
2018/08/03 03:22:13 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial unix ///var/run/dockershim.sock: connect: no such file or directory"; Reconnecting to {///var/run/dockershim.sock <nil>}
<probe> ERRO: 2018/08/03 03:22:14.303328 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable
<probe> ERRO: 2018/08/03 03:22:15.304624 error generating report: rpc error: code = Unavailable desc = grpc: the connection is unavailable

该如何解决?谢谢~

rootsongjc commented 6 years ago

从报错信息来看

Cannot resolve 'scope.weave.local.': dial tcp 172.20.58.1:53: connect: connection refused

请检查DNS是否正常,还有跨节点的pod通信是否正常。