重新启动后无法ping通业务网络

时间:2018-12-12 08:26:56

标签: hyperledger-composer

我遵循了https://hyperledger.github.io/composer/latest/installing/development-tools.htmlhttps://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.html上的说明。重新启动Ubuntu服务器后,我再次启动了光纤网络并尝试ping网络:

cd ~/fabric-dev-servers
export FABRIC_VERSION=hlfv12
./startFabric.sh
$ composer network ping --card admin@tutorial-network
Error: Error trying to ping. Error: make sure the chaincode tutorial-network has been successfully instantiated and try again: getccdata composerchannel/tutorial-network responded with error: could not find chaincode with name 'tutorial-network'
Command failed

1 个答案:

答案 0 :(得分:0)

根据@david_k的建议,我还安装并启动了网络,该网络运行良好:

$ cd ~/fabric-dev-servers/fabric-scripts/hlfv12/composer
$ docker-compose stop
$ docker-compose stop
$ cd ~/tutorial-network
$ composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna
$ composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card
$ composer network ping --card admin@tutorial-network
$ composer-rest-server