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?????
Related
I get this error from time to time when running builds with my dedicated runners, running on GKE.
What could be the problem here?
Is it related to the Gitlab instance or is it more a problem on the cluster side?
ERROR: Job failed (system failure): Internal error occurred: error executing command in container: error during connect: Get http://%!F(MISSING)var%!F(MISSING)run%!F(MISSING)docker.sock/v1.27/exec/f9ee0d021b8a6d7660d2334456a93f61108835077574545bcf00a484b45f5247/json: read unix #->/var/run/docker.sock: read: connection reset by peer
See the same thing randomly. There are some jobs more likely than others to trigger it but a retry usually works fine
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
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
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