简体   繁体   中英

Deploying a Hyperledger Composer blockchain business network to Hyperledger Fabric for a single organization

When I deployed a single-organization network in accordance with hyperledger composer, I used “composer network ping -c admin@tutorial-network” to test the business network connection and get this error.

Please help me, thank you

我在按照hyperledger composer部署单组织网络时,使用“composer network ping -c admin@tutorial-network”测试业务网络连接,出现这个错误。请帮帮我,谢谢

To solve this error...

"Error: Composer runtime (0.19.12) is not compatible with client (0.20.0)"

This looks like you have recently installed a new version of composer-cli (v0.20.0), and you are connecting to a Business Network that was originally installed with a composer client (v0.19.12). You will need to force an upgrade of your Business Network to get the upgraded runtime used.

You need to do the following:

  1. update the version of your business network in your package.json file.
  2. Create a new .bna file with composer archive create
  3. Then use composer network install to install the new version on the peer(s)
  4. Use composer network upgrade to upgrade the running version of the Business Network.
  5. Try the ping again :-)

Note that you need to use your PeerAdmin card for the network install and network start commands.

There is an example of this procedure in theComposer Queries tutorial.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM