原文地址:Nacos 单机模式下报错:server is DOWN now,please try again later!

问题描述

Spring Boot应用启动时连接 Nacos 失败,报如下错误:

com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after all servers([127.0.0.1:8848]) tried: ErrCode:503, ErrMsg:server is DOWN now, please try again later!
    at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:552) ~[nacos-client-1.3.3.jar:na]
    at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:491) ~[nacos-client-1.3.3.jar:na]
    at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:486) ~[nacos-client-1.3.3.jar:na]

解决

删除 nacos 目录下 data/protocol 目录,重新启动 nacos 服务。

cd nacos/data
# 删除 protocol 目录
rm -rf protocol/
# 重启
sh startup.sh -m standalone

lanweihong
255 声望5 粉丝

引用和评论

0 条评论