我在HLF v1.3上运行三个对等节点。为了与Fabric交互,我使用JS。在旋转容器、安装、实例化和连续运行测试调用大约一天后,我开始接收以下错误:
在API容器日志中:
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - invoke chaincode proposal was bad
[2018-11-12 13:59:15.131] [ERROR] invoke-chaincode - Failed to invoke chaincode. Cause: Failed to send proposal and receive all good ProposalResponse在相应的peer容器日志上:
peer0.1.y9mur3rk78x7@master0 | 2018-11-12 13:59:15.131 UTC [protoutils] ValidateProposalMessage -> WARN 627982 channel [mychannel]: MSP error: channel doesn't exist考虑到在此之前,我们的测试亚军每秒钟都能成功地调用HLF,那么会导致HLF突然丢失/删除一个通道并开始返回这些错误。
为了了解更多的背景情况,这些集装箱正以码头群模式运行。
发布于 2018-11-12 20:10:29
如果使用docker logs命令,例如,'docker日志peer0.org1.example.com',您可以检查ca、couchdb、peer、orderer的所有日志。我相信你能找到一些理由。如果您正在使用shell脚本运行,有时睡眠在某个时候是有帮助的。
具体来说,在创建通道之后,您需要设置睡眠片刻。默认睡眠时间为15秒,例如fabric开发服务器配置。我使用了3秒,但这取决于您的硬件和业务网络。
https://stackoverflow.com/questions/53264837
复制相似问题