v0.19.0作曲家网络启动失败

时间:2018-04-10 02:16:08

标签: hyperledger-fabric hyperledger-composer

作曲家版本:0.19.0

Mac OS

步骤:

  • 删除docker的所有图片
  • rm -rf~ / .composer
  • 从网络
  • 下载fabric-tools
  • ./ teardownFabric.sh
  • ./ createPeerAdminCard.sh
  • ./ startFabric.sh

  • docker ps:

      

    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 504b51337d01 hyperledger/fabric-peer:x86_64-1.1.0 "peer node start" 17 minutes ago Up 17 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com db82f914091d hyperledger/fabric-orderer:x86_64-1.1.0 "orderer" 17 minutes ago Up 17 minutes 0.0.0.0:7050->7050/tcp orderer.example.com efcdff601fec hyperledger/fabric-couchdb:x86_64-0.4.6 "tini -- /docker-ent…" 17 minutes ago Up 17 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb fda7819674bd hyperledger/fabric-ca:x86_64-1.1.0 "sh -c 'fabric-ca-se…" 17 minutes ago Up 17 minutes 0.0.0.0:7054->7054/tcp ca.org1.example.com

  • 作曲家网络安装 - 卡PeerAdmin @ hlfv1 --archiveFile basic-sample.bna(之前创建的bna文件)
  • composer network start --networkName basic-sample --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin @hlfv1 --file networkadmin.card
  

收到错误

     

✖ 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 (basic-sample:0.0.1)) Command failed

重试

使用npmrcFile:

  • 作曲家网络安装 - 卡PeerAdmin @ hlfv1 --archiveFile basic-sample.bna -o npmrcFile = npmConfig.txt
  • composer network start --networkName basic-sample --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin @hlfv1 --file networkadmin.card -o npmrcFile = npmConfig.txt

npmConfig.txt的内容:

registry=https://registry.npm.taobao.org

仍然失败。

1 个答案:

答案 0 :(得分:0)

我认为这与GitHub上的Composer prpoject上的问题记录完全相同。

https://github.com/hyperledger/composer/issues/3794

对此的简短回答是start命令上的网络名称错误。网络名称可能是基本样本网络。

检查名称和版本的方法是发出以下命令:

composer archive list -a basic-sample.bna