tim
tim

Reputation: 1482

Hyperledger on IBM Cloud, chaincode launched and waiting for registration

Code

Currently I followed this article to develop my BNA to IBM blockchain cloud platform (started plan). Unluckily, I got the error when I try to run this line of code:

composer network start -c admin@mynetwork-fabric -A admin -C ./creds/admin-pub.pem -f delete.card -n my_network -V 0.0.4

Error

I am very sure that all parameters are good, the full errors are:

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: premature execution - chaincode (my_network:0.0.4) launched and waiting for registration

Or sometimes the error is:

Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT

I understand sometimes maybe there is a timeout, but I do not really got the launched and waiting for registration error.

P.S.

Solution:

  1. down grade composer-cli to 0.18.1
  2. change your package.json, composer-cli to 0.18.1
  3. npm install to create new bna
  4. reinstall
  5. restart

Upvotes: 0

Views: 292

Answers (1)

R Thatcher
R Thatcher

Reputation: 5570

If you are using IBM Cloud Starter Plan, then you need to be using v0.18.1 of Composer not v0.19.

Also, this is the doc you should be following:

https://console.bluemix.net/docs/services/blockchain/develop_starter.html#deploying-a-business-networks-on-starter-plan

Upvotes: 1

Related Questions