Hyperledger对等节点启动错误

时间:2016-10-24 06:26:05

标签: installation hyperledger peer

运行命令启动对等节点时出现以下错误。 错误:

  

grpc:addrConn.resetTransport无法创建客户端传输:连接错误:desc =" transport:拨打tcp 127.0.0.1:5005:getsockopt:连接被拒绝&#34 ;;重新连接到{" 127.0.0.1:5005" }

有人可以帮帮我吗?

1 个答案:

答案 0 :(得分:0)

在我根据http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/build/的说明在虚拟VM中设置开发环境之后,我也遇到了这种情况。

在peer / core.yaml中配置与“127.0.0.1:5005”的连接:

167:            # orderer to talk to
168:            orderer: 127.0.0.1:5005

因此,对等体期望orderer服务侦听该端口。默认情况下,oderer服务(https://github.com/hyperledger/fabric/blob/master/orderer/README.md)侦听端口5151。这是在https://github.com/hyperledger/fabric/blob/master/orderer/orderer.yaml中配置的。

使用make orderer构建订购者,并以orderer开头。将peer/core.yaml中的端口调整为5151(orderer服务侦听的端口),使用make peer重建对等端,启动peer node start,您将看到错误消息消失和peer正确启动:

...
09:51:50.430 [chaincode] notify -> DEBU 056 notifying Txid:vscc
09:51:50.430 [chaincode] Launch -> DEBU 057 sending init completed
09:51:50.430 [chaincode] Launch -> DEBU 058 LaunchChaincode complete
09:51:50.430 [sysccapi] RegisterSysCC -> INFO 059 system chaincode %s(%s) registered vscc github.com/hyperledger/fabric/core/system_chaincode/vscc
09:51:50.433 [committer] NewDeliverService -> INFO 05a Creating committer for single noops endorser
09:51:50.437 [nodeCmd] serve -> INFO 05b Starting peer with ID=name:"jdoe" , network ID=dev, address=0.0.0.0:7051, rootnodes=, validator=true
Nil tx from block
Commit success, created a block!