创建通道未知联盟时出错



我正在尝试使用第一个网络示例作为模板创建自定义网络设置。一切顺利,但是当我尝试从容器创建频道时cli出现此错误

2018-05-11 11:33:13.956 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2018-05-11 11:33:13.956 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2018-05-11 11:33:13.957 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0ABF060A1408021A0608F9FED5D70522...5CB2E57136F84747C182E82B76191345 
2018-05-11 11:33:13.957 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 6B8E0CAC07B99E8E993D0C4C8692797D12AECD3CA09C56AF07D769B2B0783DD1 
Error: got unexpected status: BAD_REQUEST -- Unknown consortium name: DocChain
Usage:
peer channel create [flags]
Flags:
-c, --channelID string   In case of a newChain command, the channel ID to create.
-f, --file string        Configuration transaction file generated by a tool such as configtxgen for submitting to orderer
-t, --timeout int

我从我的configtx.yaml文件中摘录

Profiles:
DocChainOrdererGenesis: #TwoOrgsOrdererGenesis:
Capabilities:
<<: *ChannelCapabilities
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererNUSTOrg
Capabilities:
<<: *OrdererCapabilities
Consortiums:
DocChain:
Organizations:
- *NUST
- *GIKI
- *LUMS
DocChainOrgsChannel:
Consortium: DocChain
Application:
<<: *ApplicationDefaults
Organizations:
- *NUST
- *GIKI
- *LUMS
Capabilities:
<<: *ApplicationCapabilities

我遇到了同样的问题,我解决了它运行此命令docker-compose -f docker-compose-cli.yaml down --volumes --remove-orphans,docker-compose yaml 文件所在的位置。 我不确定是什么导致了问题,但我认为我没有正确删除 docker 卷。

谢谢 evryone,我不知道为什么,
但重命名DocChainDocChainConsortium对我有用。

最新更新