【问题标题】:failed to create a channel in hyperledger fabric test-network未能在超级账本结构测试网络中创建通道
【发布时间】:2021-04-30 18:38:46
【问题描述】:

我正在使用 Windows 10 pro,我已经运行了该示例,但我收到此“错误:发布”https://localhost:7053/participation/v1/channels”:EOF

频道创建失败”频道创建过程中的错误。 这是详细的错误: $ ./network.sh createChannel 创建频道“我的频道”。 如果网络未启动,则尝试启动 CLI 超时为“5”且 CLI 延迟为“3”秒并使用数据库“leveldb”的节点 生成通道创世块“mychannel.block” /c/Users/houss/fabric-samples/bin/configtxgen

  • configtxgen -profile TwoOrgsApplicationGenesis -outputBlock ./channel-artifacts/mychannel.block -channelID mychannel 2021-04-27 00:22:56.240 WAT [common.tools.configtxgen] main -> INFO 001 加载配置 2021-04-27 00:22:56.248 WAT [common.tools.configtxgen.localconfig] 完成初始化-> INFO 002 订购者类型:etcdraft 2021-04-27 00:22:56.248 WAT [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options 未设置,设置为 tick_interval:"500ms"election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size: 16777216 2021-04-27 00:22:56.248 WAT [common.tools.configtxgen.localconfig] 加载-> INFO 004 加载配置:C:\Users\houss\fabric-samples\test-network\configtx\configtx.yaml 2021-04-27 00:22:56.253 WAT [common.tools.configtxgen] doOutputBlock -> INFO 005 生成创世块 2021-04-27 00:22:56.253 WAT [common.tools.configtxgen] doOutputBlock -> INFO 006 创建应用程序通道创世块 2021-04-27 00:22:56.255 WAT [common.tools.configtxgen] doOutputBlock -> INFO 007 写入创世区块
  • 分辨率=0 创建频道 mychannel 使用组织 1
  • osnadmin 频道加入 --channelID mychannel --config-block ./channel-artifacts/mychannel.block -o localhost:7053 --ca-file /c/Users/houss/fabric-samples/test-network/organizations /ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --client-cert /c/Users/houss/fabric-samples/test-network/organizations/ ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt --client-key /c/Users/houss/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer .example.com/tls/server.key
  • res=1
  • osnadmin 频道加入 --channelID mychannel --config-block ./channel-artifacts/mychannel.block -o localhost:7053 --ca-file /c/Users/houss/fabric-samples/test-network/organizations /ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --client-cert /c/Users/houss/fabric-samples/test-network/organizations/ ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt --client-key /c/Users/houss/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer .example.com/tls/server.key
  • res=1
  • osnadmin 频道加入 --channelID mychannel --config-block ./channel-artifacts/mychannel.block -o localhost:7053 --ca-file /c/Users/houss/fabric-samples/test-network/organizations /ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --client-cert /c/Users/houss/fabric-samples/test-network/organizations/ ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt --client-key /c/Users/houss/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer .example.com/tls/server.key
  • res=1
  • osnadmin 频道加入 --channelID mychannel --config-block ./channel-artifacts/mychannel.block -o localhost:7053 --ca-file /c/Users/houss/fabric-samples/test-network/organizations /ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --client-cert /c/Users/houss/fabric-samples/test-network/organizations/ ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt --client-key /c/Users/houss/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer .example.com/tls/server.key
  • 分辨率=1 错误:发布“https://localhost:7053/participation/v1/channels”:EOF

频道创建失败

【问题讨论】:

    标签: hyperledger-fabric


    【解决方案1】:

    请问您是通过哪个链接安装 Fabric 的?

    【讨论】:

    • 我遵循了 windows 的超级账本结构步骤,我已经切换到 ubuntu 为我工作,问题似乎是文件夹路径是为 ubunto 设计的,你必须更改每个“\”,因为这个想法是在它的容器上运行每个组织,所以即使在 vm 上使用 ubuntu 也会更容易
    猜你喜欢
    • 2020-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-12
    相关资源
    最近更新 更多