Transaction processing for endorser [39.98.194.244:7151]: Chaincode status Code: (500) UNKNOWN. Description: cannot retrieve package for chaincode mycc/1.0, error open /var/hyperledger/production/chaincodes/mycc.1.0: no such file or directory
错误原因:表示在对应的peer 节点上没有安装对应的chaincode
2.执行invoke 交易的时:
Failed to move funds: CreateAndSendTransaction failed: SendTransaction failed: calling orderer 'orderer.example.com:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [orderer.example.com:7050]
Event Server Status Code: (10) ENDORSEMENT_POLICY_FAILURE. Description: received invalid transaction
错误原因:出现的错误,错误原因是背书策略错误。
4:执行 query 交易时
event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: target(s) required Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: target(s) required
出现这个错误的原因是我们没有在mychannel 的peers 部分添加对应的peer
5:执行query 与invoke 交易时
event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: queryChaincode failed: Transaction processing for endorser [39.98.194.244:7251]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [39.98.194.244:7251]