コンテナミラーリング関連プロジェクトのエラー分析手順

1.背景

ブロックチェーンプロジェクトを開始し、コンテナ化して実行します。

./byfn.sh -m up -s couchdb

戻りエラー


Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group]  /Channel/Application at version 0, but got version 1
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
 
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
 

しかし、これは本当のエラーではないかもしれません

 

次に、失敗したコンテナを表示します

docker ps -a

 

三、間違った場所を見つける

docker logs CONTAINER_ID

 

正常に起動した同じタイプのコンテナのログを表示して、実際のエラーがどこにあるかを比較することもできます

 

 

おすすめ

転載: blog.csdn.net/u013288190/article/details/112364972