Ubuntu20.04.1虚拟机跑fabric1.0官方e2e_cli例子踩坑

在用VMware的Ubuntu20.04.1虚拟机跑fabric官方e2e_cli例子(这里跑的是fabric1.0)时遇到了以下几个问题:
1.fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f21797a1259]
在这里插入图片描述
这个问题好像是网络配置那一块的问题
解决办法:
修改机器上的/etc/resolv.conf文件把有options的那一行加上#注释掉再重新运行(先down一下再up)在这里插入图片描述
2.Error_ Error endorsing chaincode_ rpc error_ code = Unknown desc = Error starting container_ API error (404)_ {_message___network e2ecli_default not found_}
在这里插入图片描述
这个问题不知道是不是官方的漏洞需要修改官方文件里的内容
解决办法:
修改fabric/examples/e2e_cli/base/peer-base.yaml/里的

- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2ecli_default

一行这里后面“e2ecli_default"要改为”e2e_cli_default"再重新运行
3.还有一个缺少文件的问题(官方直接git下来的一般都会缺)Cannot run peer because error when setting up MSP of type bccsp from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp: could not load a valid signer certificate from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/signcerts: stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/signcerts: no such file or directory
在这里插入图片描述

解决办法就是在fabric/examples/e2e_cli下放上下面这个文件里的bin文件夹
https://download.csdn.net/download/qq_45955628/14143027
就OK了。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值