问题:
图中这个服务会出现频繁掉线的问题
它的错误信息是:
caused: errCode: 500, errMsg: do metadata operation failed
;caused:com.alibaba.nacos.consistency.exception.ConsistencyException: com.alibaba.nacos.core.distributed.raft.exception.NoLeaderException:The Raft Group [naming_instance_metadata] did not find the Leader node;caused:com.alibaba.nacos.core.distributed.raft.exception.NoLeaderException: The RaftGroup [naming_instance_metadata] did not find the Leader node;
解决思路:
1.找到nacos的data目录
2.删除data目录下的protocol文件夹
3.重启服务
4.问题解决
问题原因:
IP地址注册混乱,删除了用来存储注册信息的protocol文件夹