hyperledger-fabric - 读取核心配置文件: Unsupported Config Type时出错

标签 hyperledger-fabric hyperledger artifacts

我试图使用以下命令将 channel 配置事务工件传递给订购者:

peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile 
/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

但是我得到一个错误:
2018-03-17 20:55:21.380 GMT [main] main -> ERRO 001 Fatal error
 when initializing core config : error when reading core 
config file: Unsupported Config Type ""

这个错误是什么意思?以及我该如何解决?

使用docker ps -a
CONTAINER ID        IMAGE                                                                                                    COMMAND                  CREATED             STATUS                       PORTS                                              NAMES
5c27fce33911        hyperledger/fabric-tools:latest                                                                          "/bin/bash"              3 minutes ago       Up 3 minutes                                                                    cli
aabf72f81352        hyperledger/fabric-peer:latest                                                                           "peer node start"        3 minutes ago       Up 3 minutes                 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp     peer0.org1.example.com
73ddcafb5ce6        hyperledger/fabric-orderer:latest                                                                        "orderer"                3 minutes ago       Up 3 minutes                 0.0.0.0:7050->7050/tcp                             orderer.example.com
205448f5479a        hyperledger/fabric-peer:latest                                                                           "peer node start"        3 minutes ago       Up 3 minutes                 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp     peer1.org1.example.com
4e5ba2999f54        hyperledger/fabric-peer:latest                                                                           "peer node start"        3 minutes ago       Up 3 minutes                 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp     peer0.org2.example.com
fcc6b25b6422        hyperledger/fabric-peer:latest                                                                           "peer node start"        3 minutes ago       Up 3 minutes                 0.0.0.0:10051->7051/tcp, 0.0.0.0:10053->7053/tcp   peer1.org2.example.com
2f1536ffe265        dev-peer0.org1.example.com-fabcar-1.0-5c906e402ed29f20260ae42283216aa75549c571e2e380f3615826365d8269ba   "chaincode -peer.add…"   24 hours ago        Exited (255) 3 minutes ago                                                      dev-peer0.org1.example.com-fabcar-1.0
6ae48101bc34        hyperledger/fabric-ca                                                                                    "sh -c 'fabric-ca-se…"   24 hours ago        Exited (255) 3 minutes ago   0.0.0.0:7054->7054/tcp                             ca.example.com
dc9e5bb3cc8e        hyperledger/fabric-couchdb                                                                               "tini -- /docker-ent…"   24 hours ago        Exited (255) 3 minutes ago   4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp         couchdb

这是orderer.example.com的日志
enter image description here

最佳答案

您应该在CLI容器中才能执行peer channel create命令。

您将使用docker exec命令输入CLI容器:

docker exec -it cli bash



如果成功,您应该看到以下内容:

root@0d78bb69300d:/opt/gopath/src/github.com/hyperledger/fabric/peer#



在那边,您应该像这样运行peer channel create命令:

root@0d78bb69300d:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem



在运行此命令之前,请注意,您还应该在此CLI容器中运行用于为CHANNEL_NAME创建环境变量和为PEER0 创建其他环境变量的命令。

关于hyperledger-fabric - 读取核心配置文件: Unsupported Config Type时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49341851/

相关文章:

jenkins - Jenkins ,指纹伪像是什么意思?

hyperledger-fabric - 运行 Hyperledger Fabric basic-network : error validating ReadSet 时出现问题

composite-primary-key - Hyperledger 中的复合键函数

hyperledger - 在哪里可以找到 Hyperledger Fabric peer 命令可能的环境变量?

python - Hyperledger Indy 节点配置错误导致错误,并显示一条消息: "undefined symbol: indy_crypto_init_logger"

ibm-cloud - IBM hyperledger chainCode 状态中的字节大小限制是多少?

docker - Gitlab 的 artifacts zip 文件是空的

c++ - 选项卡控件上的列表控件 SetFocus 重绘错误

hyperledger - Hyperledger Fabric 是如何实现关联方隐私数据共享的?

docker - 为什么我的 super 账本结构网络中的chaincode占用1.45gb的空间?