场景 nacos有段时间暂停了和微服暂停 然后解除暂停后更改本地代码再注册这个微服务实列
就报错
om.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after all servers([124.70.17.213:8848]) tried: ErrCode:500, ErrMsg:caused:
java.util.concurrent.ExecutionException: com.alibaba.nacos.consistency.exception.ConsistencyException: The Raft Group [naming_persistent_service_v2] did not find the Leader node;
caused: com.alibaba.nacos.consistency.exception.ConsistencyException:
The Raft Group [naming_persistent_service_v2] did not find the Leader node;caused: The Raft Group [naming_persistent_service_v2] did not find the Leader node;
我的是开发环境 单机模式nacos 怎么会报错找不到leader 主要节点
然后查找gpt
唯一可能得就是数据损坏
找到挂载得data目录 关于集群一致性残生得raft文件相关就在
/root/docker/nacos/data/protocol 对应得protocol 目录 删掉该目录 重启服务和微服务实列
成功注册