0
点赞
收藏
分享

微信扫一扫

容器镜像相关项目 错误 分析步骤


一、背景

启动一个区块链项目,容器化运行。

./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


三、找到错误的地方

docker logs CONTAINER_ID

容器镜像相关项目 错误 分析步骤_区块链_02

容器镜像相关项目 错误 分析步骤_docker_03


也可以查看正常启动的同类型容器的日志,对比是哪儿真正的错误




举报

相关推荐

0 条评论