Tools, FAQ, Tutorials:
"composer network start" Errors
Why am I getting errors when running the "composer network start" command?
✍: FYIcenter.com
There are couple of reasons why you are getting errors when running the "composer network start" command to start business network.
Error Example 1 - The business network NBA file was not deployed correctly, or has been removed. Run the "composer network install" command again to deploy the NBA file.
$ cd tutorial-network $ composer network start --networkName tutorial-network \ --networkVersion 0.0.1 --networkAdmin admin \ --networkAdminEnrollSecret adminpw \ --card PeerAdmin@hlfv1 --file networkadmin.card \ ✖ 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: cannot get package for chaincode (tutorial-network:0.0.1) Command failed
Error Example 2 - Hyperledger Fabric environment is not installed properly. The error says "/bin/sh: npm: not found", but the peer node log says: 'SimulateProposal -> ERRO 3cc [composerchannel][d9903fc9] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: npm: not found'. Solution is to re-install the environment.
$ composer network start --networkName tutorial-network \ --networkVersion 0.0.1 --networkAdmin admin \ --networkAdminEnrollSecret adminpw \ --card PeerAdmin@hlfv1 --file networkadmin.card \ ✖ 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: failed to execute transaction ...: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: npm: not found" Command failed
Error Example 3 - Hyperledger Fabric environment is not installed properly. One known reason for this error that the default channel "composerchannel" is not defined in the Composer environment. Solution is to re-install the environment.
$ composer network start --networkName tutorial-network \ --networkVersion 0.0.1 --networkAdmin admin \ --networkAdminEnrollSecret adminpw \ --card PeerAdmin@hlfv1 --file networkadmin.card \ ✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: Failed to connect to any peer event hubs. It is required that at least 1 event hub has been connected to receive the commit event Command failed
Â
⇒ "composer network" Commands
⇠"composer network install" Errors
2020-12-26, 1855🔥, 0💬
Popular Posts:
FYIcenter JSON Validator and Formatter is an online tool that checks for syntax errors of JSON text ...
How to use the "return-response" Policy statement to build the response from scratch for an Azure AP...
How to use "xsl-transform" Azure API Policy Statement? The "xsl-transform" Policy Statement allows y...
How to create Hello-3.1.epub with WinRAR? I have all required files to create Hello-3.1.epub. To cre...
Where to find tutorials on EPUB file format? I want to know how to create EPUB books. Here is a larg...