netdata 安装错误解决

1.下载超时

错误如下:

curl -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-yO2WoN/sha256sum.txt https://storage.googleapis.com/netdata-nightlies/sha256sums.txt curl: (56) TCP connection reset by peer
 FAILED  

[/tmp/netdata-kickstart-yO2WoN]# curl -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-yO2WoN/netdata-latest.tar.gz https://storage.googleapis.com/netdata-nightlies/netdata-latest.tar.gz curl: (7) Failed connect to storage.googleapis.com:443; Operation now in progress
 FAILED  

grep: /tmp/netdata-kickstart-yO2WoN/sha256sum.txt: No such file or directory
 ABORTED  Tarball checksum validation failed. Stopping netdata installation and leaving tarball in /tmp/netdata-kickstart-yO2WoN

原因:

使用如下命令在线安装由于无法连接google下载文件导致出错

# make sure you run `bash` for your shell
bash

# install Netdata directly from GitHub source
bash <(curl -Ss https://my-netdata.io/kickstart.sh)

解决:

使用离线安装,

参考:https://github.com/netdata/netdata/blob/master/packaging/installer/methods/offline.md

 

2.安装报错

错误如下:

GEN     
 netdata externaldeps/libwebsockets/libwebsockets.a(unix-caps.c.o): In function `lws_plat_drop_app_privileges':
 unix-caps.c:(.text+0x2d9): undefined reference to `cap_get_proc'
...

使用如下离线安装命令,安装出错:

# kickstart.sh
bash kickstart.sh --local-files /tmp/netdata-(version-number-here).tar.gz /tmp/sha256sums.txt /tmp/go.d.plugin-(version-number-here).(OS)-(architecture).tar.gz /tmp/config.tar.gz /tmp/install-required-packages.sh

bash /tmp/netdata/kickstart.sh --local-files /tmp/netdata/netdata-v1.23.2.tar.gz  /tmp/netdata/sha256sums.txt /tmp/netdata/go.d.plugin-v0.20.0.linux-amd64.tar.gz /tmp/netdata/config.tar.gz /tmp/netdata/install-required-packages.sh 

解决:

在运行命令添加 --disable-cloud  具体如下 

bash /tmp/netdata/kickstart.sh --local-files /tmp/netdata/netdata-v1.23.2.tar.gz  /tmp/netdata/sha256sums.txt /tmp/netdata/go.d.plugin-v0.20.0.linux-amd64.tar.gz /tmp/netdata/config.tar.gz /tmp/netdata/install-required-packages.sh  --disable-cloud

参考:

https://github.com/netdata/netdata/issues/8589

 

 

 

你可能感兴趣的:(netdata)