Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.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
Kubernetes 未能在超时期间发送实例化事务并获取通知。未定义[fabric1.0 k8s]_Kubernetes_Hyperledger Fabric - Fatal编程技术网

Kubernetes 未能在超时期间发送实例化事务并获取通知。未定义[fabric1.0 k8s]

Kubernetes 未能在超时期间发送实例化事务并获取通知。未定义[fabric1.0 k8s],kubernetes,hyperledger-fabric,Kubernetes,Hyperledger Fabric,我正在尝试在k8s上部署Hyperledger fabric 1.0.5,并使用余额转移对其进行测试。在实例化链码之前,一切都正常,我得到如下结果: [2019-01-02 23:23:14.392] [ERROR] instantiate-chaincode - Failed to send instantiate transaction and get notifications within the timeout period. undefined [2019-01-02 23:23:1

我正在尝试在k8s上部署Hyperledger fabric 1.0.5,并使用余额转移对其进行测试。在实例化链码之前,一切都正常,我得到如下结果:

[2019-01-02 23:23:14.392] [ERROR] instantiate-chaincode - Failed to send instantiate transaction and get notifications within the timeout period. undefined
[2019-01-02 23:23:14.393] [ERROR] instantiate-chaincode - Failed to order the transaction. Error code: undefined
我使用
kubectl日志
获取peer0的日志,如下所示:

[ConnProducer] NewConnection -> ERRO 61a Failed connecting to orderer2.orderer1:7050 , error: context deadline exceeded
[ConnProducer] NewConnection -> ERRO 61b Failed connecting to orderer1.orderer1:7050 , error: context deadline exceeded
[ConnProducer] NewConnection -> ERRO 61c Failed connecting to orderer0.orderer1:7050 , error: context deadline exceeded
[deliveryClient] connect -> DEBU 61d Connected to 
[deliveryClient] connect -> ERRO 61e Failed obtaining connection: Could not connect to any of the endpoints: [orderer2.orderer1:7050 orderer1.orderer1:7050 orderer0.orderer1:7050]
我检查了
order0:7050
的连接,没有发现任何问题

接下来我该怎么办


感谢您的帮助!

您没有描述您在部署Hyperledger结构时遵循的runbook,但看起来您的POD无法找到彼此。如果您遵循Kubernetes标准,您的POD应该位于
order1
名称空间中,并且希望您有
order0
order1
order2
的Kubernetes


您可以在“结构组件之间的通信”部分中阅读有关结构组件之间通信的更多信息。另外,请阅读“解决链码沙箱问题”,其中显示了
--dns搜索的解决方法,它看起来像是防火墙问题


在k8s上运行hlf时,我禁用了防火墙服务。

谢谢!我发现我误解了k8s的服务配置。但我有一个新问题……我收到了这样的错误消息如果是另一个问题,请问另一个SO问题