code:503 msg: server is DOWN now, please try again later!

Problem Description:

The project failed to start and it says that nacos has been closed and the link is not up.

failed to req API:/nacos/v1/ns/instance after all servers([127.0.0.1:8848]) tried:
failed to req API:127.0.0.1:8848/nacos/v1/ns/instance. 
code: 503 
msg: server is DOWN now, please try again later!

Cause Analysis:

After checking, nacos starts normally.
Check the configuration file
nacos-server-1.4.0\logs\alipay-jraft.log

2021-02-23 11:20:53,201 INFO Node <naming_persistent_service/192.168.0.128:7848> 
term 8 start preVote.
2021-02-23 11:20:53,201 WARN Node <naming_persistent_service/192.168.0.128:7848> 
can't do preVote as it is not in conf <ConfigurationEntry [id=LogId [index=158, 
term=8], conf=192.168.166.158:7848, oldConf=]>.

I found that the ip address is not right. The address of my machine is

Insert picture description here


solution:

plan 1:

Delete this file protocol under nacos, and then restart nacos will automatically generate this file.

Insert picture description here

Guess you like

Origin blog.csdn.net/yang13676084606/article/details/113977686