0

I followed the instructions on https://hyperledger.github.io/composer/latest/installing/development-tools.html and https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.html. After a restart of the Ubuntu server I started the fabric again and tried to ping the network:

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
jpsstack
  • 1,221
  • 4
  • 18
  • 29

1 Answers1

0

As advised by @david_k, I also installed and started the network, which works well:

$ 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 
jpsstack
  • 1,221
  • 4
  • 18
  • 29