centos 5 安装 Ci 发生报错

cloudinsight

#1

解决 CentOS 5 安装 Cloud Insight 报错问题

CentOS 5 安装 Cloud Insight 时报错如图 :

查看 oneapm-ci-agent-install.log 的日志,部分如下:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
http://yum.oneapm.com/x86_64/repodata/ae9772f136d882fd8f61b9c71e29c2630db3d5b211ef4ddc2b976af3006ebe1a-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
http://yum.oneapm.com/x86_64/repodata/ae9772f136d882fd8f61b9c71e29c2630db3d5b211ef4ddc2b976af3006ebe1a-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/ae9772f136d882fd8f61b9c71e29c2630db3d5b211ef4ddc2b976af3006ebe1a-primary.sqlite.bz2 from oneapm-ci-agent: [Errno 256] No more mirrors to try.
e[31m

以上出错原因是发布 Cloud Insight 探针包时默认的 checksum(检验码)是 sha256 ,而 CentOS 5/rhel 5 版本不符合这个,所以安装不了这个安装包。

解决方法

首先安装一个 hash加密的模块:

yum install python-hashlib

然后一键复制安装探针

就这样。


Cloud Insight 安装 Centos 5.5 报错