我正在尝试Hyperledger Composer v0.16.0.根据这个过程,我想在云上部署BNA到Fabric网络.但发生以下错误.请告诉我如何解决它.
命令:
composer network start --card PeerAdmin@myfabric --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile trade-network.bna --file networkadmin.card
Run Code Online (Sandbox Code Playgroud)
结果:
tarting business network from archive: trade-network.bna
Business network definition:
Identifier: trade-network@0.1.13
Description: Commodities Trading Business Network
Processing these Network Admins:
userName: admin
? Starting business network definition. This may take a minute...
Error: Error trying to instantiate composer runtime. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: chaincode error (status: 500, message: …Run Code Online (Sandbox Code Playgroud) 我用BYFN将认可政策从"OR"改为"AND" 并实例化了Chaincode.但是,即使在执行Invoke之后,分类帐中的数据也不会更改.我确认"OR"条件正在运行.(分类帐中的数据已更改)
请告诉我如何解决它.
peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "**OR** ('Org1MSP.member','Org2MSP.member')"
Run Code Online (Sandbox Code Playgroud)
==>
peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "**AND** ('Org1MSP.member','Org2MSP.member')"
Run Code Online (Sandbox Code Playgroud)