I am researching on Hyperledger. After going through the basic tutorials and documentation, I have started setting up a Blockchain Business Network With Hyperledger Fabric & Composer Running on Multiple Physical Machine as described on https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/.
I am already done with setting up the Hyperledger environment. We are able to create business network archives (.bna) and business cards (.card) as well. But while I try to start the created business network (using composer network deploy and composer network start commands on Ubuntu CLI) the CLI responds with an error saying,
composer network start --networkAdmin admin --networkAdminEnrollSecret adminpw --card admin@admin_conn --file admin.card -a basic-sample-network.bna Starting business network from archive: basic-sample-network.bna Business network definition: Identifier: basic-sample-network@0.2.0-20180102082548 Description: The Hello World of Hyperledger Composer samples
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: cannot get package for the chaincode to be instantiated (basic-sample-network:0.16.6)-open /var/hyperledger/production/chaincodes/basic-sample-network.0.16.6: no such file or directory)
And on the playground UI,
It would be great if any of you could guide me to solve this problem.
Thanks in advance.
UPDATE :
Version of Composer : v0.19.0
Worked Out Link : https://hyperledger.github.io/composer/latest/business-network/bnd-deploy
This is where I got stucked now.
composer network install command worked fine. But network start command is not working fine.
user1@peer2:~/fabric-tools/rosternetwork$ composer network start --networkName rosternetwork --networkVersion 1.0.0 --card PeerAdmin@hlfv1 --networkAdmin admin -S adminpw Response from attempted peer comms was an error: Error: 2 UNKNOWN: chain code error (status: 500, message: cannot get package for chaincode (rosternetwork:1.0.0)) Command failed Starting business network rosternetwork at version 1.0.0
Processing these Network Admins: userName: admin
Starting business network definition. This may take a minute... Error: Error trying to start business network. 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 (rosternetwork:1.0.0)) Command failed
Searched with the error message, but didn't found any solution.