Hyperledger Composer部署业务网络错误

时间:2018-06-09 17:27:08

标签: hyperledger-fabric hyperledger hyperledger-composer

有人可以帮我解决此错误

this is what I input:  composer network start --networkName land- 
registry --networkVersion 0.0.1 --networkAdmin admin -- 
networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card


Error: Error trying to start business network. Error: Unable to initalize 
channel. Attempted to contact 1 Peers. Last error was Error: Error: 2 UNKNOWN: 
access denied: channel [composerchannel] creator org [Org1MSP]

1 个答案:

答案 0 :(得分:0)

1. Remove your old fabric-tools / fabric-dev-servers (whatever you've called it) directory

2. mkdir ~/fabric-tools && cd ~/fabric-tools     #inside the directory

3. curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz 

4. cd fabric-tools ; tar -xvf fabric-dev-servers.tar.gz

5. ./stopFabric.sh ; ./teardownFabric.sh ; ./fabric-tools/startFabric.sh
6. ./createPeerAdminCard.sh
7. cd ~/landreg-network/   # wherever your BNA file is etc

finally:

8. composer network install --card PeerAdmin@hlfv1 --archiveFile land-registry@0.0.1.bna

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