initDeliver - > ERRO 129无法拨打到0.0.0.0:7050,因为grpc:拨打

时间:2017-01-08 05:02:14

标签: hyperledger-fabric

我做错了什么?

我试图熟悉Hyperledger。我以为我会在本地运行Fabric并使用Marbles演示。我认为下面的错误解释了为什么Marbles无法访问本地Fabric。我根据Marbles'在Bluemix上部署了Blockchain。说明和工作正常。

我按照这里的说明操作: https://hyperledger-fabric.readthedocs.io/en/latest/Setup/Network-setup/

在Ubuntu上运行Docker 1.12.5(4.4.0-57-generic)

无论我是运行单个对等体还是多个对等体,我都会收到每个对等体的以下错误。我是否从vp0 peer的已发布端口中删除7050:7050没有任何区别。我无法卷曲我认为应该是7050的REST端点。

vp0_1  | 2017-01-08 04:46:42.723 UTC [committer] initDeliver -> ERRO 129 Cannot dial to 0.0.0.0:7050, because of grpc: timed out when dialing
vp0_1  | 2017-01-08 04:46:42.723 UTC [committer] startDeliver -> ERRO 12a Can't initiate deliver protocol [grpc: timed out when dialing]
vp1_1  | 2017-01-08 04:46:43.443 UTC [committer] initDeliver -> ERRO 12d Cannot dial to 0.0.0.0:7050, because of grpc: timed out when dialing
vp1_1  | 2017-01-08 04:46:43.443 UTC [committer] startDeliver -> ERRO 12e Can't initiate deliver protocol [grpc: timed out when dialing]

这里是我从指令[不熟悉docker-compose]中篡改的docker-compose.yml:

vp0:
  image: hyperledger/fabric-peer
  ports:
    - "7050:7050"
    - "7051:7051"
    - "7052:7052"  
  environment:
  - CORE_PEER_ADDRESSAUTODETECT=true
  - CORE_VM_ENDPOINT=unix:///var/run/docker.sock
  - CORE_LOGGING_LEVEL=DEBUG
  - CORE_PEER_ID=vp0
  command: peer node start
vp1:
  image: hyperledger/fabric-peer
  environment:
  - CORE_PEER_ADDRESSAUTODETECT=true
  - CORE_VM_ENDPOINT=unix:///var/run/docker.sock
  - CORE_LOGGING_LEVEL=DEBUG
  - CORE_PEER_ID=vp1
  - CORE_PEER_DISCOVERY_ROOTNODE=vp0:7051
  command: peer node start
  links:
  - vp0

2 个答案:

答案 0 :(得分:0)

随后运行docker-compose,问题似乎不再发生。我所知道的唯一变化是:

- 我做了一些Docker管家,清理旧容器/图像 - 时间过去了

答案 1 :(得分:0)

我认为您的问题是您没有声明订货人服务 尝试添加

orderer:
    container_name: orderer
    image: hyperledger/fabric-orderer:latest
    environment:
      - ORDERER_GENERAL_LEDGERTYPE=ram
      - ORDERER_GENERAL_BATCHTIMEOUT=10s
      - ORDERER_GENERAL_BATCHSIZE_MAXMESSAGECOUNT=10
      - ORDERER_GENERAL_MAXWINDOWSIZE=1000
      - ORDERER_GENERAL_ORDERERTYPE=solo
      - ORDERER_GENERAL_LOGLEVEL=debug
      - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
      - ORDERER_GENERAL_LISTENPORT=7050
      - ORDERER_RAMLEDGER_HISTORY_SIZE=100    
    command: orderer
    ports:
      - 7050:7050
    volumes:        
        - ./orderer-config.yaml:/etc/hyperledger/fabric/orderer.yaml 
    networks:
- bridge