错误:广播客户端出错:rpc错误:代码=不可用desc =传输:写入tcp

问题描述 投票:0回答:1

我正在尝试使用命令创建具有自定义加密材料的通道(在fabricSample中不起作用)>

 peer channel create -c myc -o orderer2.IdentityPreservationSystem.com:7050

并收到此错误

Error: Error getting broadcast client: rpc error: code = Unavailable desc = transport: write tcp 172.20.0.7:42446->172.20.0.3:7050: write: connection reset by peercontainers are running with the services of peers CA and orderers.

完整输出

 2020-01-26 19:10:00.072 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2020-01-26 19:10:00.232 UTC [common/tools/configtxgen/localconfig] Load -> INFO 002 Loaded configuration: /etc/hyperledger/fabric/configtx.yaml
Error: Error getting broadcast client: rpc error: code = Unavailable desc = transport: write tcp 172.20.0.7:42446->172.20.0.3:7050: write: connection reset by peer
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        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 with 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 validating the TLS connection to the orderer.
      --tls                                 Use TLS when communicating with the orderer endpoint
  -v, --version                             Display current version of fabric peer server

[我正在尝试使用命令对等通道create -c myc -o orderer2.IdentityPreservationSystem.com:7050并使用自定义加密材料创建一个通道(在fabricSample中不起作用)并获取...

cryptography hyperledger-fabric blockchain hyperledger-fabric-ca hyperledger-chaincode
1个回答
0
投票
您的创建命令中有错误。您需要为使用configtxgen命令生成的通道指定通道事务文件(.tx)。
© www.soinside.com 2019 - 2024. All rights reserved.