领导者不选举 HyperLedger Fabric Raft 订购服务。

huangapple go评论63阅读模式
英文:

leader not electing hyperLedger fabric raft ordering service

问题

当我尝试部署fabric-raft订购服务时,它显示以下日志。它不断启动选举,但没有选出领导者。我尝试将心跳时间更改为1秒,选举时间更改为10秒,但没有效果。然后我尝试更改GODEBUG=netdns=go,但也没有效果。

英文:

领导者不选举 HyperLedger Fabric Raft 订购服务。

When i try to deploy fabric-raft ordering service, it shows these logs. it starts election repetitively without electing a leader. i tried changing heartbeat time to 1 sec and election time to 10 sec but that is not working. then i tried to changing GODEBUG=netdns=go but that is not working too.

答案1

得分: 2

如果领袖没有被选举,很可能是因为节点无法通信。您应该将gRPC日志设置为调试级别,以及将集群通信日志设置为调试级别,然后查看是否收到了消息。

英文:

If the leader isn't elected, it's probably because the nodes cannot communicate. You should enable the gRPC logging to debug level, as well as the cluster communication logging to debug level and see if you see messages being received.

答案2

得分: 2

这个错误是由以下两个原因引起的:

  1. 再次检查您的订购者配置。
  2. 启用 gRPC,因为在 Raft 中 gRPC 必须为 true。
英文:

this error will comes because of these two reasons

  1. check your orderer config once again
  2. enable the grpc because in raft grpc is to be true.

答案3

得分: 0

"虽然这并不被推荐,但你可以通过设置ORDERER_GENERAL_LISTENADDRESS=0.0.0.0来监听所有IP地址。"

英文:

Although this is not recommended, one thing you can do is listen on all IP addresses by setting ORDERER_GENERAL_LISTENADDRESS=0.0.0.0

huangapple
  • 本文由 发表于 2020年1月3日 23:35:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/59581298.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定