I am following the my-network tutorial from the Hyperledger Composer docs and am getting the following error when deploying the .bna file to Fabric.
The command I use is:
composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString
Error message:
✖ Deploying business network definition. This may take a minute...
Error: error trying deploy. Error: error trying install chaincode. Error: Connect Failed
Command failed
I am on OSX and have all the required preliminaries.
I had exactly the same error - assuming you are following the Hyperledger Composer Developer Guide.
I think this error comes about because at the end of installing the developer environment you run a command to stop and tear down the Fabric, but then the Developer Guide does not instruct you to restart it.
To fix I changed back to the fabric-tools directory and re-started Fabric:
cd ../..
./startFabric.sh
Returning to the original directory I then tried deploying it again:
cd my-network/dist/
composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString
This got me to the Command succeeded
all clear the guide tells you to expect.
Good luck.