akhil krishna
akhil krishna

Reputation: 326

Error trying to instantiate composer runtime. Error: No valid responses from any peers. for Multi organization hyperledger fabric 1.1

I am trying to setup hyperledger fabric + composer setup with multi organizations locally. The steps I followed to setup hyperledger network is below.

Generate crypto materials and channel

Having all peers join the channel with setting appropriate env veriables - peer channel join -b ehrchannel.block Updating anchor peers for two organisations by setting env variables

After that I have followed Hyperledger composer document to configure composer. But on step 17 on the doc, I am getting an error

composer network start -c PeerAdmin@ehr-network-hos1 -a marbles-network.bna -o endorsementPolicyFile=/tmp/composer/endorsement-policy.json -A admin1 -C admin2/admin-pub.pem -A admin2 -C admin2/admin-pub.pem
Starting business network from archive: marbles-network.bna
Business network definition:
        Identifier: [email protected]
        Description: Marble Trading Network

Processing these Network Admins:
        userName: admin1
        userName: admin2

✖ 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: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for chaincode (marbles-network:0.18.2))
Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for chaincode (marbles-network:0.18.2))
Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for chaincode (marbles-network:0.18.2))
Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for chaincode (marbles-network:0.18.2))

Command failed

What are the potential issues? Thank you so much in advance.

Upvotes: 1

Views: 537

Answers (2)

R Thatcher
R Thatcher

Reputation: 5570

What versions of Composer and Fabric are you using ? If you are using Composer v0.18.2 you need to have the GA version of Fabric v1.1.

The releases document for Composer details the compatible versions of Composer and Fabric. https://github.com/hyperledger/composer/releases

Also you might have a typo in your command ... -A admin1 -C admin2/admin-pub.pem -A admin2 -C admin2/admin-pub.pem are you specifying the wrong folder for admin1 ?

Upvotes: 1

lissdy
lissdy

Reputation: 371

Check fabric node logs to find clue:

docker logs [orderer/peer/...]

Upvotes: 1

Related Questions