Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperledger Composer v0.16.0 network start error

I'm trying Hyperledger Composer v0.16.0. According to this procedure, I want to Deploy BNA to Fabric network on cloud. but following error occurs. Kindly let me know how I can solve it.

command:

composer network start --card PeerAdmin@myfabric --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile trade-network.bna --file networkadmin.card

result:

tarting business network from archive: trade-network.bna
Business network definition:
    Identifier: [email protected]
    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: chaincode instantiation policy violated(Failed to authenticate policy))
like image 654
SKuri Avatar asked Dec 04 '17 02:12

SKuri


3 Answers

Error: No valid responses from any peers may be b/c you don't ./startFabric (in fabric-tools folder) or may be the .acl file (permissions.acl) have error (try change it to the beginning version).

like image 82
Phan Hoàng Nhân Avatar answered Oct 06 '22 00:10

Phan Hoàng Nhân


The error 'Error: Error trying to instantiate composer runtime.' Suggests you have not run the composer runtime install command e.g. composer runtime install -c PeerAdmin@fabric-network -n tutorial-network Or that the command did not complete successfully.

The other possibility is that your fabric has stopped or is not contactable.

like image 30
R Thatcher Avatar answered Oct 06 '22 00:10

R Thatcher


The runtime must be installed on fabric for the network to start.

"composer runtime install -c PeerAdmin@hlfv1 -n "

The Steps:

1) ./startFabric.sh,

2) ./createPeerAdminCard.sh,

3) composer runtime install -c PeerAdmin@hlfv1 -n ,

4) composer network start -a ./@0.0.1.bna -A admin -S adminpw -c PeerAdmin@hlfv1

like image 25
SJ LaPorte Avatar answered Oct 06 '22 00:10

SJ LaPorte