美文网首页
Hyperledger Fabric Samples建立网络时的

Hyperledger Fabric Samples建立网络时的

作者: TiaNa_na | 来源:发表于2019-08-05 00:11 被阅读0次

这是之前学习时做的笔记,现在将其迁移到简书上。


1、DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host"; Reconnecting to {orderer.example.com:7050 <nil>}

解决方案:搭建环境时要注意版本,解决参考http://www.rendoumi.com/fabric-1-0zai-centos-7shang-mian-de-an-zhuang/
我的版本为:fabric 、fabric-samples为1.0,linux-amd64压缩包为1.0.6,docker镜像下载1.0.6。

2、安装Node.js,npm,Docker Compose,Python时报错

解决方案:官方提供了一键安装的命令这是IBM官网上的教程

3、generateArtifacts.sh:行58: /opt/gopath/src/github.com/hyperledger/fabric/examples/e2e_cli/../../release/linux-amd64/bin/cryptogen: 没有那个文件或目录没有那个目录
错误截图
解决方案:进入错误对应的目录下,发现文件夹为空,于是下载hyperledger-fabric-linux-amd64-1.0.6.tar.gz解压得到bin文件夹,替换空的bin文件。文件的版本号要根据自己的源码版本来选择
4、生成应⽤用通道的配置信息时出现错误:x509: ECDSA verification failureca.org1.example.com
错误截图
解决方案:生成初始区块时执行了命令 ../bin/cryptogen generate --config=./crypto-config.yaml。我的错误提示是ca.org1.example.com,故我根据下图查看了MSPDir: crypto-config/peerOrganizations/org1.example.com/msp/admincerts目录,发现多生成了ca证书,网上给出办法是直接删除ca证书。后来发现1.0版本不会出现此问题。
crypto-config.yaml
5、Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error(404):{"message":"network e2ecli_default not found"
解决方案
更多错误及解决方案https://www.baidu.com/link?url=k3bfhGiswe9bGutE5nHIcrHVAaItAQ1K_xMP6h9HyG1aG0wQ2k6fQMAyclz9rsD5g8uaYgonHBpfX5lrjTsEGHvNxcnQGqEBYQGstamseU98dERQTqVlPiB9YTyPKg4T&wd=&eqid=e4ca32de0013467a000000065d470131

相关文章

网友评论

      本文标题:Hyperledger Fabric Samples建立网络时的

      本文链接:https://www.haomeiwen.com/subject/yadmlctx.html