创建通道出现错误

来源:7-8 合约部署A

qq_慕容2195531

2020-05-09

创建通道出现错误

之前是没有问题的,昨天想再次创建却报错了,一切按教程来的,进入cli容器后输入:
peer channel create -o orderer.imocc.com:7050 -c assetschannel -f /etc/hyperledger/config/assetschannel.tx
然后报错

2020-05-09 03:07:23.043 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2020-05-09 03:07:23.043 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2020-05-09 03:07:26.052 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.22.0.3:7050: getsockopt: no route to host"; Reconnecting to {orderer.imocc.com:7050 <nil>}
Error: Error connecting due to  rpc error: code = Unavailable desc = grpc: the connection is unavailable
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
      --logging-level string       Default logging level and overrides, see core.yaml for full syntax
  -o, --orderer string             Ordering service endpoint
      --test.coverprofile string   Done (default "coverage.cov")
      --tls                        Use TLS when communicating with the orderer endpoint
  -v, --version                    Display current version of fabric peer server

之后查看orderer节点日志:

2020-05-09 02:02:58.127 UTC [policies] GetPolicy -> DEBU 0dc Returning policy Writers for evaluation
2020-05-09 02:02:58.127 UTC [policies] GetPolicy -> DEBU 0dd Returning policy Readers for evaluation
2020-05-09 02:02:58.127 UTC [policies] CommitProposals -> DEBU 0de As expected, current configuration has policy '/Channel/Readers'
2020-05-09 02:02:58.127 UTC [policies] GetPolicy -> DEBU 0df Returning policy Writers for evaluation
2020-05-09 02:02:58.127 UTC [policies] CommitProposals -> DEBU 0e0 As expected, current configuration has policy '/Channel/Writers'
2020-05-09 02:02:58.127 UTC [policies] GetPolicy -> DEBU 0e1 Returning policy Orderer/BlockValidation for evaluation
2020-05-09 02:02:58.127 UTC [policies] CommitProposals -> DEBU 0e2 As expected, current configuration has policy '/Channel/Orderer/BlockValidation'
2020-05-09 02:02:58.166 UTC [fsblkstorage] retrieveBlockByNumber -> DEBU 0e3 retrieveBlockByNumber() - blockNum = [0]
2020-05-09 02:02:58.166 UTC [fsblkstorage] newBlockfileStream -> DEBU 0e4 newBlockfileStream(): filePath=[/var/hyperledger/production/orderer/chains/testchainid/blockfile_000000], startOffset=[0]
2020-05-09 02:02:58.166 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 0e5 Remaining bytes=[8982], Going to peek [8] bytes
2020-05-09 02:02:58.166 UTC [fsblkstorage] nextBlockBytesAndPlacementInfo -> DEBU 0e6 Returning blockbytes - length=[8980], placementInfo={fileNum=[0], startOffset=[0], bytesOffset=[2]}
2020-05-09 02:02:58.166 UTC [orderer/multichain] newChainSupport -> DEBU 0e7 [channel: testchainid] Retrieved metadata for tip of chain (blockNumber=0, lastConfig=0, lastConfigSeq=0): 
2020-05-09 02:02:58.167 UTC [orderer/multichain] NewManagerImpl -> INFO 0e8 Starting with system channel testchainid and orderer type solo
2020-05-09 02:02:58.168 UTC [orderer/main] main -> INFO 0e9 Beginning to serve requests

也没发现问题所在,请问老师这是什么情况呢?

写回答

1回答

自游蜗牛

2020-05-09

连不上orderer。你排查下你的网络

0
4
自游蜗牛
回复
qq_慕容2195531
可以先去了解下docker的网络部分知识
2020-05-09
共4条回复

Hyperledger Fabric实战联盟链-企业端区块链原理精讲

兼顾区块链应用层和底层 进击区块链工程师

787 学习 · 564 问题

查看课程