Hyperledger fabric Hyperledger结构对等2-通道启动时出错

Hyperledger fabric Hyperledger结构对等2-通道启动时出错,hyperledger-fabric,Hyperledger Fabric,我正在使用基于GitHub的Hyperledger结构代码。当我手动执行从生成证书到通过cli容器启动网络的所有步骤时,执行时会出现以下错误 peer channel create-o order.example.com:7050-c$channel_NAME-f./channel artifacts/channel.tx--tls$CORE_peer_tls_ENABLED--cafile/opt/gopath/src/github.com/hyperledger/fabric/peer/cr

我正在使用基于GitHub的Hyperledger结构代码。当我手动执行从生成证书到通过cli容器启动网络的所有步骤时,执行时会出现以下错误

peer channel create-o order.example.com:7050-c$channel_NAME-f./channel artifacts/channel.tx--tls$CORE_peer_tls_ENABLED--cafile/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordereorganizations/example.com/orderers/order.example.com/msp/cacerts/ca.example.com-cert.pem

我甚至做到了
export FABRIC\u CFG\u PATH=$PWD
但我仍然得到以下错误:

2017-06-15 19:35:37.332 UTC[msp]getMspConfig->INFO 001中间证书文件夹未在[/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/p]找到‌​组织/组织‌​1.example.com/users/‌​Admin@org1.example.c‌​om/msp/Mediatec‌​erts]。正在跳过。:[stat/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/pe‌​组织/组织1‌​.example.com/users/A‌​dmin@org1.example.co‌​m/msp/intermediatece‌​rts:没有这样的文件或目录]

2017-06-15 19:35:37.332 UTC[msp]getMspConfig->INFO 002 crls文件夹未在[/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/p]找到‌​组织/组织‌​1.example.com/users/‌​Admin@org1.example.c‌​om/msp/Mediatec‌​erts]。正在跳过。:[stat/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/pe‌​组织/组织1‌​.example.com/users/A‌​dmin@org1.example.co‌​m/msp/crls:没有这样的文件或目录]

2017-06-15 19:35:37.333 UTC[msp]getMspConfig->INFO 003在[/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/p]上找不到msp配置文件‌​组织/组织‌​1.example.com/users/‌​Admin@org1.example.c‌​om/msp/config.yaml]:[stat/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/pe‌​组织/组织1‌​.example.com/users/A‌​dmin@org1.example.co‌​m/msp/config.yaml:没有这样的文件或目录]

当我尝试通过./network.sh up中提供的自动脚本运行它时,我得到以下错误:

2017-06-15 20:18:45.664 UTC[grpc]Printf->DEBU 006未能拨打订购方。example.com:7050:连接错误:desc=“传输:身份验证握手失败:x509:证书已过期或尚未生效”;请重试。错误:由于rpc错误导致连接错误:code=Internal desc=连接错误:desc=“传输:身份验证握手失败:x509:证书已过期或尚未生效”

首先,请注意,您在这里收到的消息

2017-06-15 19:35:37.332 UTC[msp]getMspConfig->INFO 002 crls文件夹未在[/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/p]找到‌​组织/组织‌​1.example.com/users/‌​Admin@org1.example.c‌​om/msp/Mediatec‌​erts]。正在跳过。:[stat/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/pe‌​组织/组织1‌​.example.com/users/A‌​dmin@org1.example.co‌​m/msp/crls:没有这样的文件或目录]

它们不是错误消息,这很好

接下来,请注意

导出结构\u CFG\u路径=$PWD

configtxgen
工具的上下文相关,在执行对等cli命令时没有意义


不知道你到底想用
network.sh
脚本做什么,它的主要目标是运行端到端测试,两个组织各有两个对等点,安装并实例化chaicode,发布事务并查询断言预期结果的结果。

我不知道为什么会发生这种错误。执行network.sh脚本应该可以创建一个没有任何问题的网络。您是否尝试手动“运行工具”?

删除并重新启动docker容器对我进行了修复,像我的旧安装一样,可能有过时的证书。

我指的是创建并启动网络,以便查询或调用事务。