测试Fabric1.4性能时运行以下命令时报错
npx caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/fabric/fabric-v1.4.1/2org1peergoleveldb/fabric-go.yaml
首先是提示拉取镜像失败:Get https://registry-1.docker.io/v2/hyperledger/fabric-ca/manifests/1.4.1: net/http: TLS handshake timeout
然后报错如下:problem reading the PEM file :: Error: ENOENT: no such file or directory, open '/home/yujialing/go/src/github.com/hyperledger/caliper-benchmarks/networks/fabric/config_solo/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/key.pem’
1.首先解决拉取docker镜像失败的问题
将docker镜像换成国内源
vim /etc/docker/daemon.json
{
"registry-mirrors":["https://registry.docker-cn.com"]
}
![](https://i-blog.csdnimg.cn/blog_migrate/d5747d9503ed1f89d3a25ca6f3e1dc95.png)
重启docker
systemctl restart docker
查看docker信息
docker info
![](https://i-blog.csdnimg.cn/blog_migrate/66eb28568beaa74dcda9f08ea50663cc.png)
再次运行以下命令,拉取docker镜像的问题解决了,但证书问题仍未解决
npx caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/fabric/fabric-v1.4.1/2org1peergoleveldb/fabric-go.yaml
去到config_solo目录去查看
cd networks/fabric/config_s