同行无法加入频道

时间:2019-10-01 13:21:15

标签: hyperledger-fabric


    Organizations:
      - &OrdererOrg
        Name: OrderingService
        ID: OrdererMSP
        MSPDir: crypto-config/ordererOrganizations/reliance-network.com/msp

      - &RelianceCapital
        Name: RelianceCapitalMSP
        ID: RelianceCapitalMSP
        MSPDir: crypto-config/peerOrganizations/reliancecapital.reliance-network.com/msp
        AnchorPeers:
          - Host: peer0.reliancecapital.reliance-network.com
            Port: 7051

      - &RelianceCommunications
        Name: RelianceCommunicationsMSP
        ID: RelianceCommunicationsMSP
        MSPDir: crypto-config/peerOrganizations/reliancecommunications.reliance-network.com/msp
        AnchorPeers:
          - Host: peer0.reliancecommunications.reliance-network.com
            Port: 9051

      - &RelianceEntertainment
        Name: RelianceEntertainmentMSP
        ID: RelianceEntertainmentMSP
        MSPDir: crypto-config/peerOrganizations/relianceentertainment.reliance-network.com/msp
        AnchorPeers:
          - Host: peer0.relianceentertainment.reliance-network.com
            Port: 11051

      - &RelianceInfrastructure
        Name: RelianceInfrastructureMSP
        ID: RelianceInfrastructureMSP
        MSPDir: crypto-config/peerOrganizations/relianceinfrastructure.reliance-network.com/msp
        AnchorPeers:
          - Host: peer0.relianceinfrastructure.reliance-network.com
            Port: 13051

      - &ReliancePower
        Name: ReliancePowerMSP
        ID: ReliancePowerMSP
        MSPDir: crypto-config/peerOrganizations/reliancepower.reliance-network.com/msp
        AnchorPeers:
          - Host: peer0.reliancepower.reliance-network.com
            Port: 15051
    #Capabilities

    Capabilities:
      Global: &ChannelCapabilities
        V1_3: true
      Orderer: &OrdererCapabilities
        V1_1: true
      Application: &ApplicationCapabilities
        V1_3: true

    #Application

    Application: &ApplicationDefaults
      Organizations:

    #Orderer
    Orderer: &OrdererDefaults

      OrdererType: solo
      Addresses:
        - orderer.reliance-network.com:7050
      BatchTimeout: 5s
      BatchSize:
        MaxMessageCount: 10
        AbsoluteMaxBytes: 256 MB
        PreferredMaxBytes: 512 KB
      Kafka:
        Brokers: 
          - 127.0.0.1:9092

      Organizations:



    #Profiles
    Profiles:
        OrdererGenesis:
          Capabilities:
            <<: *ChannelCapabilities
          Orderer:
            <<: *OrdererDefaults
            Organizations:
              - *OrdererOrg
            Capabilities:
              <<: *OrdererCapabilities
          Consortiums:
            RelianceConsortium:
              Organizations:
                - *RelianceCapital
                - *RelianceCommunications
                - *RelianceEntertainment
                - *RelianceInfrastructure
                - *ReliancePower
        RelianceOrgs:
          Consortium: RelianceConsortium
          Application:
            <<: *ApplicationDefaults
            Organizations:
              - *RelianceCapital
              - *RelianceCommunications
              - *RelianceEntertainment
              - *RelianceInfrastructure
              - *ReliancePower
            Capabilities:
              <<: *ApplicationCapabilities

<!-- end snippet -->

我正在尝试创建一个拥有5个组织的网络。

1)能够成功创建加密配置文件 2)通道工件已成功创建 3)渠道交易创建成功 4)成功创建锚点对等事务 5)成功创建频道 6)第一个组织的对等0可以加入频道

但是,当第一个对等点1尝试加入通道时,出现以下错误。可能是什么原因。

******错误:错误获取通道的认可客户端:认可客户端无法连接到peer1.reliancecapital.reliance-network.com:8051:无法创建新的连接:连接错误:desc =“传输:拨号时出错:拨打tcp 192.168.64.12:8051:连接:连接被拒绝“ ******

1 个答案:

答案 0 :(得分:0)

我不知道这是否仍然有用,但是您似乎手头有DNS解析问题。如果要通过docker-composer启动此设置,则可能需要修改/etc/host以将对peer1.reliancecapital.reliance-network.com的请求路由到本地主机。

您还可以通过docker-compose文件中的peer1.reliancecapital.reliance-network.com选项将extra_hosts静态绑定到计算机的IP。另外,请确保您的所有同级都在同一个docker网络中。