在用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了。