Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hyperledger fabric 获取背书人客户端频道时出错:背书人客户端无法连接到peer0.org1.example.com:7051_Hyperledger Fabric_Hyperledger - Fatal编程技术网

Hyperledger fabric 获取背书人客户端频道时出错:背书人客户端无法连接到peer0.org1.example.com:7051

Hyperledger fabric 获取背书人客户端频道时出错:背书人客户端无法连接到peer0.org1.example.com:7051,hyperledger-fabric,hyperledger,Hyperledger Fabric,Hyperledger,我是Hyperleger面料的新手。我正在阅读一篇关于的教程,我被结构示例/第一个网络示例卡住了。我第一次跑步: ./byfn.sh generate 然后我跑: ./byfn.sh up 其结果是: Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... 2018-08-03 02:56:16

我是Hyperleger面料的新手。我正在阅读一篇关于的教程,我被结构示例/第一个网络示例卡住了。我第一次跑步:

./byfn.sh generate
然后我跑:

./byfn.sh up
其结果是:

Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
2018-08-03 02:56:16.574 UTC [main] main -> INFO 001 Exiting.....
LOCAL_VERSION=1.1.1-snapshot-DOCKER_IMAGE_VERSION=1.1.0
=================== WARNING ===================
  Local fabric binaries and docker images are  
  out of  sync. This may cause problems.       
===============================================
/vagrant/src/github.com/hyperledger/fabric-samples/first-network/../bin/cryptogen

##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
+ cryptogen generate --config=./crypto-config.yaml
org1.example.com
org2.example.com
+ res=0
+ set +x

/vagrant/src/github.com/hyperledger/fabric-samples/first-network/../bin/configtxgen
##########################################################
#########  Generating Orderer Genesis block ##############
##########################################################
+ configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
2018-08-03 02:56:19.174 UTC [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-08-03 02:56:19.330 UTC [msp] getMspConfig -> INFO 002 Loading NodeOUs
2018-08-03 02:56:19.396 UTC [msp] getMspConfig -> INFO 003 Loading NodeOUs
2018-08-03 02:56:19.406 UTC [common/tools/configtxgen] doOutputBlock -> INFO 004 Generating genesis block
2018-08-03 02:56:19.407 UTC [common/tools/configtxgen] doOutputBlock -> INFO 005 Writing genesis block
+ res=0
+ set +x

#################################################################
### Generating channel configuration transaction 'channel.tx' ###
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel
2018-08-03 02:56:19.552 UTC [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-08-03 02:56:19.590 UTC [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx
2018-08-03 02:56:19.648 UTC [msp] getMspConfig -> INFO 003 Loading NodeOUs
2018-08-03 02:56:19.710 UTC [msp] getMspConfig -> INFO 004 Loading NodeOUs
2018-08-03 02:56:19.747 UTC [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 005 Writing new channel tx
+ res=0
+ set +x

#################################################################
#######    Generating anchor peer update for Org1MSP   ##########
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP
2018-08-03 02:56:19.900 UTC [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-08-03 02:56:19.938 UTC [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update
2018-08-03 02:56:19.940 UTC [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update
+ res=0
+ set +x

#################################################################
#######    Generating anchor peer update for Org2MSP   ##########
#################################################################
+ configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP
2018-08-03 02:56:20.083 UTC [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-08-03 02:56:20.124 UTC [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update
2018-08-03 02:56:20.126 UTC [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update
+ res=0
+ set +x

Creating network "net_byfn" with the default driver
Creating volume "net_peer0.org2.example.com" with default driver
Creating volume "net_peer1.org2.example.com" with default driver
Creating volume "net_peer1.org1.example.com" with default driver
Creating volume "net_peer0.org1.example.com" with default driver
Creating volume "net_orderer.example.com" with default driver
Creating orderer.example.com ... 
Creating peer1.org2.example.com ... 
Creating peer0.org2.example.com ... 
Creating orderer.example.com
Creating peer1.org2.example.com
Creating peer0.org2.example.com
Creating peer1.org1.example.com ... 
Creating peer0.org1.example.com ... 
Creating peer1.org1.example.com
Creating peer1.org1.example.com ... done
Creating cli ... 
Creating cli ... done

 ____    _____      _      ____    _____ 
/ ___|  |_   _|    / \    |  _ \  |_   _|
\___ \    | |     / _ \   | |_) |   | |  
 ___) |   | |    / ___ \  |  _ <    | |  
|____/    |_|   /_/   \_\ |_| \_\   |_|  

Build your first network (BYFN) end-to-end test

Channel name : mychannel
Creating channel...
+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
+ res=0
+ set +x
2018-08-03 02:56:24.093 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2018-08-03 02:56:24.140 UTC [channelCmd] InitCmdFactory -> INFO 002 Endorser and orderer connections initialized
2018-08-03 02:56:24.344 UTC [main] main -> INFO 003 Exiting.....
===================== Channel 'mychannel' created ===================== 

Having all peers join the channel...
+ peer channel join -b mychannel.block
+ res=1
+ set +x
2018-08-03 02:56:24.489 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: proposal failed (err: rpc error: code = Unavailable desc = transport is closing)
Usage:
  peer channel join [flags]

Flags:
  -b, --blockpath string   Path to file containing genesis block

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

peer0.org1 failed to join the channel, Retry after 3 seconds
+ peer channel join -b mychannel.block
+ res=1
+ set +x
Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
Usage:
  peer channel join [flags]

Flags:
  -b, --blockpath string   Path to file containing genesis block

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

peer0.org1 failed to join the channel, Retry after 3 seconds
+ peer channel join -b mychannel.block
+ res=1
+ set +x
Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
Usage:
  peer channel join [flags]

Flags:
  -b, --blockpath string   Path to file containing genesis block

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

peer0.org1 failed to join the channel, Retry after 3 seconds
+ peer channel join -b mychannel.block
+ res=1
+ set +x
Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
Usage:
  peer channel join [flags]

Flags:
  -b, --blockpath string   Path to file containing genesis block

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

peer0.org1 failed to join the channel, Retry after 3 seconds
+ peer channel join -b mychannel.block
+ res=1
+ set +x
Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
Usage:
  peer channel join [flags]

Flags:
  -b, --blockpath string   Path to file containing genesis block

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

!!!!!!!!!!!!!!! After 5 attempts, peer0.org1 has failed to join channel 'mychannel'  !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========

ERROR !!!! Test failed
启动通道“mychannel”,CLI超时为“10”秒,CLI延迟为“3”秒
继续?[Y/n]Y
诉讼程序
2018-08-03 02:56:16.574 UTC[主]主->信息001退出。。。。。
本地\u版本=1.1.1-snapshot-DOCKER\u图像\u版本=1.1.0
===========================警告===================
本地结构二进制文件和docker映像
不同步。这可能会引起问题。
===============================================
/vagrant/src/github.com/hyperledger/fabric samples/first network/。/bin/cryptogen
##########################################################
#####使用cryptogen工具生成证书#########
##########################################################
+cryptogen generate--config=./crypto-config.yaml
org1.example.com
org2.example.com
+res=0
+集合+x
/vagrant/src/github.com/hyperledger/fabric samples/first network/。/bin/configtxgen
##########################################################
#########生成订单生成块##############
##########################################################
+configtxgen-profile twoorgorsorderergenesis-outputBlock./channel artifacts/genesis.block
2018-08-03 02:56:19.174 UTC[通用/工具/配置TXGEN]主->信息001加载配置
2018-08-03 02:56:19.330 UTC[msp]getMspConfig->INFO 002加载节点
2018-08-03 02:56:19.396 UTC[msp]getMspConfig->INFO 003加载节点
2018-08-03 02:56:19.406 UTC[通用/工具/配置TXGEN]数据块->信息块
2018-08-03 02:56:19.407 UTC[通用/工具/配置TXGEN]数据块->信息块
+res=0
+集合+x
#################################################################
###正在生成通道配置事务“channel.tx”###
#################################################################
+configtxgen-profile TwoOrgsChannel-outputCreateChannelTx./channel artifacts/channel.tx-channelID mychannel
2018-08-03 02:56:19.552 UTC[通用/工具/配置TXGEN]主->信息001加载配置
2018-08-03 02:56:19.590 UTC[通用/工具/配置TXGEN]doOutputChannelCreateTx->INFO 002生成新通道configtx
2018-08-03 02:56:19.648 UTC[msp]getMspConfig->INFO 003加载节点
2018-08-03 02:56:19.710UTC[msp]getMspConfig->INFO 004加载节点
2018-08-03 02:56:19.747 UTC[通用/工具/配置TXGEN]doOutputChannelCreateTx->INFO 005写入新频道tx
+res=0
+集合+x
#################################################################
#######为Org1MSP生成锚节点更新##########
#################################################################
+configtxgen-profile TwoOrgsChannel-OutputAchorPeersUpdate./channel artifacts/Org1MSPanchors.tx-channelID mychannel-asOrg Org1MSP
2018-08-03 02:56:19.900 UTC[通用/工具/配置TXGEN]主->信息001加载配置
2018-08-03 02:56:19.938 UTC[通用/工具/配置TXGEN]doOutputAnchorPeersUpdate->INFO 002生成锚节点更新
2018-08-03 02:56:19.940 UTC[通用/工具/配置TXGEN]doOutputAnchorPeersUpdate->信息003写入锚对等更新
+res=0
+集合+x
#################################################################
#######为Org2MSP生成锚节点更新##########
#################################################################
+configtxgen-profile TwoOrgsChannel-OutputAchorPeersUpdate./channel artifacts/Org2MSPanchors.tx-channelID mychannel-asOrg Org2MSP
2018-08-03 02:56:20.083 UTC[通用/工具/配置TXGEN]主->信息001加载配置
2018-08-03 02:56:20.124 UTC[通用/工具/配置TXGEN]doOutputAnchorPeersUpdate->INFO 002生成锚节点更新
2018-08-03 02:56:20.126 UTC[通用/工具/配置TXGEN]doOutputAnchorPeersUpdate->INFO 003写入锚节点更新
+res=0
+集合+x
使用默认驱动程序创建网络“net_byfn”
使用默认驱动程序创建卷“net_peer0.org2.example.com”
使用默认驱动程序创建卷“net_peer1.org2.example.com”
使用默认驱动程序创建卷“net_peer1.org1.example.com”
使用默认驱动程序创建卷“net_peer0.org1.example.com”
使用默认驱动程序创建卷“net_order.example.com”
正在创建order.example.com。。。
正在创建peer1.org2.example.com。。。
正在创建peer0.org2.example.com。。。
创建order.example.com
创建peer1.org2.example.com
创建peer0.org2.example.com
正在创建peer1.org1.example.com。。。
正在创建peer0.org1.example.com。。。
创建peer1.org1.example.com
正在创建peer1.org1.example.com。。。完成
正在创建客户端。。。
正在创建客户端。。。完成
____    _____      _      ____    _____ 
/ ___|  |_   _|    / \    |  _ \  |_   _|
\___ \    | |     / _ \   | |_) |   | |  
___) |   | |    / ___ \  |  _ <    | |  
|____/    |_|   /_/   \_\ |_| \_\   |_|  
构建您的第一个网络(BYFN)端到端测试
频道名称:mychannel
正在创建频道。。。
+对等通道创建-o order.example.com:7050-c mychannel-f./channel artifacts/channel.tx--tls true--cafile/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/orderorganizations/example.com/orders/order.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
+res=0
+集合+x
2018-08-03 02:56:24.093 UTC[channelCmd]InitCmdFactory->INFO 001背书人和订购人连接已初始化
2018-08-03 02:56:24.140 UTC[channelCmd]InitCmdFactory->INFO 002背书人和订购人连接已初始化
2018-08-03 02:56:24.344 UTC[主]主->信息003正在退出。。。。。
=================================已创建频道“我的频道”=======================================
让所有同龄人加入频道。。。
+对等通道连接-b mychannel.block
+res=1
+集合+x
2018-08-03 02:56:24.489 UTC[channelCmd]InitCmdFactory->INFO 001背书
docker rm -vf $(docker ps -a -q)
docker rmi -f $(docker images -a -q)
docker rm -f $(docker ps -aq) && docker rmi -f $(docker images | grep dev | awk '{print $3}') && docker volume prune