在集群上创建频道时发生超时错误

时间:2019-06-19 01:16:03

标签: kubernetes hyperledger-fabric

我使用单独配置创建了一个2组织,每个组织具有2个对等方和1个订购者,以后将更改为筏配置。

kubernetes集群由3个无用的VM组成,具有1个主节点和2个节点工作节点。它们使用法兰绒链接。

我一直在关注此post。直到对等渠道创建部分为止,一切都做得很好。

已部署的豆荚

NAMESPACE     NAME                                   READY   STATUS    RESTARTS   AGE
kube-system   coredns-fb8b8dccf-5rsfd                1/1     Running   0          17h
kube-system   coredns-fb8b8dccf-vjs75                1/1     Running   0          17h
kube-system   etcd-k8s-master                        1/1     Running   0          17h
kube-system   kube-apiserver-k8s-master              1/1     Running   0          17h
kube-system   kube-controller-manager-k8s-master     1/1     Running   0          17h
kube-system   kube-flannel-ds-amd64-hpbfz            1/1     Running   0          17h
kube-system   kube-flannel-ds-amd64-kb4j2            1/1     Running   0          17h
kube-system   kube-flannel-ds-amd64-r5npk            1/1     Running   0          17h
kube-system   kube-proxy-9mqj9                       1/1     Running   0          17h
kube-system   kube-proxy-vr9zt                       1/1     Running   0          17h
kube-system   kube-proxy-xz2fg                       1/1     Running   0          17h
kube-system   kube-scheduler-k8s-master              1/1     Running   0          17h
org1          ca-7cfc7bc4b6-k8bjm                    1/1     Running   0          16h
org1          cli-55dd4df5bb-6vn7g                   1/1     Running   0          16h
org1          peer0-org1-5c65b984d5-685bp            2/2     Running   0          16h
org1          peer1-org1-7b9cf7fbd4-hf9b9            2/2     Running   0          16h
org2          ca-567ccf7dcd-sgbxz                    1/1     Running   0          16h
org2          cli-76bb768f7f-mt9nx                   1/1     Running   0          16h
org2          peer0-org2-6c8fbbc7f8-n6msn            2/2     Running   0          16h
org2          peer1-org2-77fd5f7f67-blqpk            2/2     Running   0          16h
orgorderer1   orderer0-orgorderer1-7b6947868-d9784   1/1     Running   0          16h

我尝试创建频道时出现错误消息

vagrant@k8s-master:~/articles-master/fabric_on_kubernetes/Fabric-on-K8S/setupCluster/crypto-config/peerOrganizations$ kubectl exec -it cli-55dd4df5bb-6vn7g bash --namespace=org1
root@cli-55dd4df5bb-6vn7g:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer0.orgorderer1:7050 -c mychannel -f ./channel-artifacts/channel.tx
2019-06-19 00:41:31.465 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2019-06-19 00:41:31.465 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2019-06-19 00:41:51.466 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: i/o timeout"; Reconnecting to {orderer0.orgorderer1:7050 <nil>}
Error: Error connecting due to  rpc error: code = Unavailable desc = grpc: the connection is unavailable

在链接的帖子中,有些人遇到同样的问题。有些人通过使用IP而不是域名来解决它。我试图放入ip,但是没有用。我该怎么做才能解决此问题?

1 个答案:

答案 0 :(得分:0)

您可以采取以下措施来对其进行修复:

  1. 检查是否满足所有Prerequisites

  2. 检查网络的加密材料或生成新的加密材料:cryptogen generate --config=crypto-config.yaml --output=

  3. 检查防火墙配置。您可能需要通过以下方式允许适当的端口:firewall-cmd --add-port=xxxx/tcp --permanent

  4. 检查您的iptables服务。您可能需要停止它。

请让我知道以上方法是否有帮助。