频道创建失败

时间:2018-07-02 12:31:37

标签: docker hyperledger-fabric

我是Hyperledger Fabric的一个完整的新手,正如文档中所述,我安装了所有必备软件并设置了Network Artifacts。但是之后,我想启动网络。我收到此错误,我不知道该怎么办:

Error: failed to create deliver client: orderer client failed to connect to orde
rer.example.com:7050: failed to create new connection: x509: certificate signed
by unknown authority (possibly because of "x509: ECDSA verification failure" whi
le trying to verify candidate authority certificate "tlsca.example.com")
Usage:
  peer channel create [flags]

Flags:
  -c, --channelID string   In case of a newChain command, the channel ID to crea
te.
  -f, --file string        Configuration transaction file generated by a tool su
ch as configtxgen for submitting to orderer
  -t, --timeout int        Channel creation timeout (default 5)

Global Flags:
      --cafile string                       Path to file containing PEM-encoded
trusted certificate(s) for the ordering endpoint
      --certfile string                     Path to file containing PEM-encoded
X509 public key to use for mutual TLS communication with the orderer endpoint
      --clientauth                          Use mutual TLS when communicating wi
th the orderer endpoint
      --keyfile string                      Path to file containing PEM-encoded
private key to use for mutual TLS communication with the orderer endpoint
      --logging-level string                Default logging level and overrides,
 see core.yaml for full syntax
  -o, --orderer string                      Ordering service endpoint
      --ordererTLSHostnameOverride string   The hostname override to use when va
lidating the TLS connection to the orderer.
      --tls                                 Use TLS when communicating with the
orderer endpoint
  -v, --version                             Display current version of fabric pe
er server

!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========

ERROR !!!! Test failed

操作系统:Windows 7 Hyperledger Fabric:1.1 最新的Docker安装

1 个答案:

答案 0 :(得分:0)

在多次尝试使网络运行之后,我创建了一些容器,必须使用命令docker ps -aq将其删除。另外,在此之前,我还必须使用命令./byfn.sh -m down关闭网络。然后,我使用byfn.sh -m generate -c mychannelbyfn.sh -m up -c mychannel -s couchdb重新启动了所有功能,然后一切都按照所描述的文档中的方式工作。