Hyperledger Fabric:创建channelconfig捆绑包时出错

时间:2018-07-23 06:33:14

标签: hyperledger-fabric hyperledger

我正在尝试使用Hyperledger Fabric运行多对等区块链网络。我的网络有三个对等点。 这是configtx.yaml文件:

Profiles:

ComposerOrdererGenesis:
    Orderer:
        <<: *OrdererDefaults
        Organizations:
            - *OrdererOrg
    Consortiums:
        ComposerConsortium:
            Organizations:
                - *ManufacturerOrg
                - *CustomerOrg
                - *RegulatorOrg
ComposerChannel:
    Consortium: ComposerConsortium
    Application:
        <<: *ApplicationDefaults
        Organizations:
            - *ManufacturerOrg
            - *CustomerOrg
            - *RegulatorOrg


Organizations:


- &OrdererOrg

    Name: OrdererOrg
    ID: OrdererMSP


    MSPDir: crypto-config/ordererOrganizations/Orderer-org/msp



- &ManufacturerOrg

    Name: ManufacturerOrg


    ID: ManufacturerOrgMSP

    MSPDir: crypto-config/peerOrganizations/Manufacturer-org/msp

    # turn off security for the peer
    #AdminPrincipal: Role.MEMBER

    AnchorPeers:

        - Host: manufacturer-peer
          Port: 7051
- &CustomerOrg

    Name: CustomerOrg


    ID: CustomerOrgMSP

    MSPDir: crypto-config/peerOrganizations/Customer-org/msp

    # turn off security for the peer
    AdminPrincipal: Role.MEMBER

    AnchorPeers:

        - Host: customer-peer
          Port: 7051
- &RegulatorOrg

    Name: RegulatorOrg


    ID: RegulatorOrgMSP

    MSPDir: crypto-config/peerOrganizations/Regulator-org/msp

    # turn off security for the peer
    AdminPrincipal: Role.MEMBER

    AnchorPeers:

        - Host: regulator-peer
          Port: 7051


Orderer: &OrdererDefaults

# Orderer Type: The orderer implementation to start
# Available types are "solo" and "kafka"
OrdererType: solo

Addresses:
    - orderer.example.com:7050


BatchTimeout: 2s


BatchSize:

    MaxMessageCount: 10


    AbsoluteMaxBytes: 98 MB


    PreferredMaxBytes: 512 KB


Organizations:


Application: &ApplicationDefaults


Organizations:

通过docker-compose构建网络后,订购者容器退出,并在其日志文件中出现以下错误

  

2018-07-23 05:02:12.544 UTC [orderer / commmon / multichannel] newLedgerResources-> CRIT 086创建channelconfig软件包时出错:初始化configtx管理器失败:错误的通道ID:通道ID'ComposerChannel'包含非法字符   紧急情况:创建channelconfig捆绑包时出错:初始化configtx管理器失败:错误的频道ID:频道ID'ComposerChannel'包含非法字符

表示频道ID“ ComposerChannel”包含非法字符。请帮助我理解这意味着什么。 我很确定在定义通道时configtx.yaml文件中没有非法字符

1 个答案:

答案 0 :(得分:4)

频道ID只能包含小写字母数字字符和破折号。