英文:
leader not electing hyperLedger fabric raft ordering service
问题
当我尝试部署fabric-raft订购服务时,它显示以下日志。它不断启动选举,但没有选出领导者。我尝试将心跳时间更改为1秒,选举时间更改为10秒,但没有效果。然后我尝试更改GODEBUG=netdns=go
,但也没有效果。
英文:
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
这个错误是由以下两个原因引起的:
- 再次检查您的订购者配置。
- 启用 gRPC,因为在 Raft 中 gRPC 必须为 true。
英文:
this error will comes because of these two reasons
- check your orderer config once again
- 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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论