使用在多个物理机中运行的Hyperledger Fabric和Composer建立区块链业务网络

时间:2018-09-21 05:05:18

标签: hyperledger-fabric


I am trying to setting up blockchain network in two different machines by following this tutorial https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine.

In one machine(main), it s working fine but when i am running startFabric-Peer2.sh on 2nd machine it showing me below error

docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@ org1. example. com/msp" peer2. org1. example. com peer channel fetch config -o orderer. example. com:7050 -c composerchannel
2018-01-09 15:16:17.365 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-01-09 15:16:17.365 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-01-09 15:16:17.412 UTC [grpc] Printf -> DEBU 003 grpc: addrConn . resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup orderer. example. com on 127.0.0.11:53: no such host"; Reconnecting to {orderer. example. com:7050 }
Error: Error connecting due to  rpc error: code = Unavailable desc = grpc: the connection is unavailable

To resolve this i have changed orderer.example.com:7050 to my local IP address 192.168.5.199:7050 in startFabric-Peer2.sh file . But when i am running this on 2nd machine it showing me below error as

docker exec -e “CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp” [peer2.org1.example.com](http://peer2.org1.example.com/) peer channel fetch config -o 192.168.5.199:7050 -c composerchannel
2018-09-17 13:58:18.608 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-09-17 13:58:18.608 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-09-17 13:58:18.610 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2018-09-17 13:58:18.610 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2018-09-17 13:58:18.610 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2018-09-17 13:58:18.611 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2018-09-17 13:58:18.611 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2018-09-17 13:58:18.611 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0AC9060A1B08021A0608FAE5FEDC0522…94607C4A684C12080A020A0012020A00
2018-09-17 13:58:18.611 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 41C793427C7C30635AD44D9E308E395109E2D4630D49DA40D1F2C98BF1F441BD
2018-09-17 13:58:18.613 UTC [channelCmd] readBlock -> DEBU 00a Got status: &{NOT_FOUND}
Error: can’t read the block: &{NOT_FOUND}

I am totally unable to understand it where the issue is and how to resolve it. Please help me to resolve this.


0 个答案:

没有答案