Problem description
When there are multiple instances of a micro service in the Nacos registry, click an instance to go offline and report an error
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 Raft Group [naming_instance_metadata] did not find the Leader node;
Solution
Nacos uses the raft algorithm to calculate the leader and will record the cluster address started last time. Therefore, when the IP address of our own server changes (especially the students started locally when we study, because sometimes our network environment will change… WiFi, so the IP address often changes), the cluster address recorded by raft will become invalid, If there is a problem with the selected leader, just delete the protocol folder under the data folder under the root directory of Nacos.
Read More:
- The error record when docker starts Nacos, and the solution to the problem of port occupation
- NACOS error com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/instance
- An import error is reported in the python. The solution to setting. Pylintrc is invalid
- Solve the problem that the local flow of the nifi node is inconsistent with the cluster flow, resulting in the failure to join the cluster
- The most complete solution for service network restart failure under CENTOS 7
- A solution to the problem that the number of nodes does not increase and the name of nodes is unstable after adding nodes dynamically in Hadoop cluster
- Solution to CUDA installation failure problem visual studio integration failed
- Solution to the problem that listen TCP 0.0.0.0:3306: bind: address already in use port is occupied in Linux centos7
- Git authentication failure solution, due to the problem of password modification
- Connection authorization failure occurred. Reason: local security service non retryable error solution
- Solve the problem of available for offline mode in Android studio compilation
- Solution: DevTools failed to load SourceMap:… net::ERR_HTTP_RESPONSE_CODE_FAILURE problem
- This configuration cannot edited error is reported in the project today, and the solution is given
- The solution to the problem that the method of interacting with database in the servlet class is invalid after the servlet submits 404, 500 refresh and becomes 404, and after connecting to the data pool
- Solution to failure of SSL configuration in synergy
- CentOS 8.1 solution to error in executing #systemctl restart network.service
- Feignexception $unauthorized is reported by introducing security call service
- An error was reported when springboot connected to redis Servlet.service () for servlet [dispatcherServlet] in context with path [] threw e
- The software licensing service reported that the product SKU is not found
- [Solved] com.alibaba.nacos.api.exception.NacosException: failed to req API