nacos服务下线操作时报错:The Raft Group [naming_instance_metadata] did not find the Leader node;caused: The Raft Group [naming_instance_metadata] did not find the Leader node;

发布时间 2023-05-30 14:37:00作者: 勇敢-的心

【问题描述】

caused: errCode: 500, errMsg: do metadata operation failed ;caused: com.alibaba.nacos.consistency.exception.ConsistencyException:
The Raft Group [naming_instance_metadata] did not find the Leader node;caused: The Raft Group [naming_instance_metadata] did not find the Leader node;

 

【原因分析】
测试环境安装nacos时忘记修改配置文件为单机模式,默认为集群模式

 

【解决办法】

1.修改startup.cmd/startup.sh,修改mode值为standalone

  set MODE="standalone"
2.删除 Nacos 根目录下 data 文件夹下的 protocol 文件夹
3.重启服务

 

——————————————————————————————————————————————————————
版权声明:本文为CSDN博主「老程随风」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/chengqwertyuiop/article/details/125671337