0

我试图通过以下方式启动网络:

composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card

但后来我得到了这个错误:


Processing these Network Admins: 
    userName: admin

⠋ Starting business network definition. This may take a minute...
✖ 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

我已经找到了解决方案。在这里分享给遇到同样问题的人

4

1 回答 1

0

问题的解决方案是:

1)composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna

2)composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card

3)composer card import --file networkadmin.card

4)composer network ping --card admin@tutorial-network

于 2019-01-30T08:07:11.793 回答