在Nacos中,你可能会遇到"Fail to initit node, please see the logs to find the reason"的错误。
启动程序路径不能有中文名!!!
com/nacos-group/nacos-k8s/issues/372, nacos日志报Fail to init node, please see the logs to ...
修改conf目录下application.properties文件中端口配置 server.port=xxxx 调整内存大小 坑 如果使用同一份nacos启动的话,在启动第二个nacos服务时报错,所以必须copy三份 https://blog.csdn.net/qq_30946821/article/details/117536083 nacosFailto init node,please see the logs to find the reason...
日志最后显示Fail to init node, please see the logs to find the reason. com.alipay.sofa.jraft…… 然后去看了对应的日志alipay-jraft.log,最后在alipay-jraft.log中提示储空间满了,导致的异常。 最后用df -h查看服务器资源占用情况,证实了服务器存储满了的情况,最后释放了空间后再重启,所有问题都解决了。
Caused by: java.lang.IllegalStateException: Fail to init node, please see the logs to find the reason. at com.alipay.sofa.jraft.RaftServiceFactory.createAndInitRaftNode(RaftServiceFactory.java:48) at com.alipay.sofa.jraft.RaftGroupService.start(RaftGroupService.java:129) ...
nacos.log文件中有如下报错 此报错是由于三个不同端口号的nacos服务公用一个文件夹导致,复制两份相同的nacos文件夹重新启动三个不同端口号的nacos服务即可正常...
org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alibaba.nacos.naming.core.v2.service.impl.PersistentClientOperationServiceImpl]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Fail to init node, please see the logs to find the reason. ...
StateException: Fail to init node, please see the logs to find the reason.
从代码层面看,node1的节点刷新leader是1s+rand(5s)的机制,如果时间比较长,就会导致dumpService出现The Raft Group [nacos_config] did not find the Leader node错误。以2.1.0版本为例,具体代码片段: com.alibaba.nacos.core.distributed.raft.JRaftServer#createMultiRaftGroup // Turn on the leader auto refresh...