composer network ping -c admin#tutorial-network
I got this error:
Error trying to ping. Unexpected end of JSON input.
Hyperledger: Error trying to ping. Unexpected end of JSON input
The reason for this error is that on the chaincode the identity admin is not activated/registered. There is an error in the output at
[composerchannel][d72614d6] failed to invoke chaincode name:"tutorial-network" , error: transaction returned with failure: Error: The current identity, with the name 'admin' and the identifier 'ce733115c6736cd28b4c499f52c28a2f7ed2b8f1a753615907afa1f4551738f0', has not been registered
What is the solution to this error?
I'm would guess you are trying to use Composer 0.19.x with a Fabric 1.2 network. Composer 0.19 doesn't support Fabric 1.2, you need to use a Fabric 1.1 network
Related
After raising the network and creating the channel, I try to display the javascript chaincode but it returns an error.
The specific error is:
Error: Chaincode install failed with status 500 - error in simulation failed to execute transaction d66197cd7608c1b939d3b78dd3b46e72a8afdf45cd80f86fb025bbbbfc4abd52: error sending: timeout expired while executing transaction
Someone know a solution?????
I am having difficulty starting a new business network using HyperLedger Composer. I have been following this developer’s guide:
https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.
I have successfully completed all of the steps leading up to the composer network start command, including installing the network. When I run:
composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin#hlfv1 --file networkadmin.card
I receive the following error:
“ ✖ 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
eda196cff575945b24d2e123823f1b4ba3fefdf8c1525794f7869b47acad906e:
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 “
A few notes:
- I have used "composer archive list -a tutorial-network.bna” to confirm the version and network name
- I have checked that the network name is correct in the start command
- A few of the posts I have read and followed regarding this issue are listed below, and they have not solved the problem I am facing:
https://github.com/hyperledger/composer/issues/4043
https://github.com/hyperledger/composer/issues/3794
v0.19.2 hyperledger composer network start failed
One thing I have noticed is that the peer admin card is not associated with a business network, as determined by running:
composer network list --card PeerAdmin#hlfv1
I am not sure how to associate the card with a network, or if that is causing any issues.
Any suggestions regarding what may be causing this issue would be greatly appreciated, thank you.
I am following the tutorial on: https://hyperledger.github.io/composer/v0.19/applications/web
To implement a frontend to my chain code. But when I try to put in the command:
composer network start --networkName perishable-network --networkVersion 0.2.7-deploy.0 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin#hlfv1
It gives me the error:
✖ 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: is
not a valid endorsement system chaincode) Command failed
When I did composer install on my bna however I got this information which I am using in the network start command.
✔ Installing business network. This may take a minute... Successfully
installed business network perishable-network, version 0.2.7-deploy.0
Command succeeded
How can I fix this error?
You are trying to use Composer 0.20 with Hyperledger Fabric 1.1. Unfortunately they are not compatible. You should either downgrade to Composer 0.19 or upgrade your fabric for 1.2
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.
I'm testing the scalability of a block chain app that I am going to build using hyper ledger composer. I am using the basic-sample-network for testing purposes. I have installed the basic-sample-network using the tutorial found here https://hyperledger.github.io/composer/tutorials/developer-guide.html. It is located on an aws instance running Ubuntu 16.04 with t2.xlarge storage. I setup a rest service on the aws instance, and started to spam requests to test the scalability. After a while, I got the following errors.
Unhandled error for request POST /api/org.example.mynetwork.Trader: Error: error trying to query chaincode. Error: Error executing chaincode: Failed to execute transaction (Timeout expired while executing transaction)
at channel.queryByChaincode.then.catch (/home/ubuntu/composer/my-network/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:758:34)
Unhandled error for request POST /api/org.example.mynetwork.Commodity: Error: error trying to query chaincode. Error: Error executing chaincode: premature execution - chaincode (my-network:0.9.2) is being launched
at channel.queryByChaincode.then.catch (/home/ubuntu/composer/my-network/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:758:34)
Any clue to what is causing this problem?
Note that this issue is being tracked here:
https://github.com/hyperledger/composer/issues/1670