2021-10-28 07:35:49.560 UTC [orderer.consensus.etcdraft] campaign -> INFO 064 1 [logterm: 1, index: 3] sent MsgPreVote request to 3 at term 1 channel=byfn-sys-channel node=1
2021-10-28 07:35:54.027 UTC [orderer.common.broadcast] ProcessMessage -> WARN 065 [channel: weblog888] Rejecting broadcast of config message from 172.16.1.206:40172 with SERVICE_UNAVAILABLE: rejected by Configure: no Raft leader
2021-10-28 07:35:54.027 UTC [comm.grpc.server] 1 -> INFO 066 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.16.1.206:40172 grpc.code=OK grpc.call_duration=7.528399ms
2021-10-28 07:35:58.060 UTC [orderer.consensus.etcdraft] Step -> INFO 067 1 is starting a new election at term 1 channel=byfn-sys-channel node=1
2021-10-28 07:35:58.060 UTC [orderer.consensus.etcdraft] becomePreCandidate -> INFO 068 1 became pre-candidate at term 1 channel=byfn-sys-channel node=1
2021-10-28 07:35:58.060 UTC [orderer.consensus.etcdraft] poll -> INFO 069 1 received MsgPreVoteResp from 1 at term 1 channel=byfn-sys-channel node=1
2021-10-28 07:35:58.060 UTC [orderer.consensus.etcdraft] campaign -> INFO 06a 1 [logterm: 1, index: 3] sent MsgPreVote request to 2 at term 1 channel=byfn-sys-channel node=1
2021-10-28 07:35:58.060 UTC [orderer.consensus.etcdraft] campaign -> INFO 06b 1 [logterm: 1, index: 3] sent MsgPreVote request to 3 at term 1 channel=byfn-sys-channel node=1
No Raft Leader
3个物理机共识节点都启动成功,但是不能创建通道,提示没有raft领导,推测通信问题,
解决问题
1.host问题
在orderer节点的docker-compose文件中增加host配置
这样解析出来ip就可
extra_hosts:
- peer0.org1.example.com:192.168.3.138
- peer1.org1.example.com:192.168.3.162
- peer0.org2.example.com:192.168.3.163
- peer1.org2.example.com:192.168.3.167
- orderer.example.com:192.168.3.138
- orderer1.example.com:192.168.3.162
- orderer2.example.com:192.168.3.163
- orderer3.example.com:192.168.3.167
- orderer4.example.com:192.168.3.138
- orderer5.example.com:192.168.3.162
- ca_peerOrg1:192.168.3.162
- ca_peerOrg2:192.168.3.167
- zookeeper1.example.com:192.168.3.138
- zookeeper2.example.com:192.168.3.162
- zookeeper3.example.com:192.168.3.163
- kafka1.example.com:192.168.3.138
- kafka2.example.com:192.168.3.162
- kafka3.example.com:192.168.3.163
- kafka4.example.com:192.168.3.167