新增微服务没有读取到预期的nacos地址

Blade 未结 1 1214
wang0119
wang0119 剑者 2021-05-18 16:58

一、该问题的重现步骤是什么?

1. 新增微服务注册的nacos地址不是common中指定的地址

2. 同模块下其他服务正常

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。

00.756 ERROR 20804 --- [ing.beat.sender] com.alibaba.nacos.client.naming          : [CLIENT-BEAT] failed to send beat: {"cluster":"DEFAULT","ip":"192.168.137.1","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8027,"scheduled":true,"serviceName":"DEFAULT_GROUP@@eer-liquibase","weight":1.0}


java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance/beat after all servers([127.0.0.1:8848]) tried: failed to req API:http://127.0.0.1:8848/nacos/v1/ns/instance/beat. code:500 msg: java.net.ConnectException: Connection refused: connect

at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380)

at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304)

at com.alibaba.nacos.client.naming.net.NamingProxy.sendBeat(NamingProxy.java:227)

at com.alibaba.nacos.client.naming.beat.BeatReactor$BeatTask.run(BeatReactor.java:109)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)

at java.util.concurrent.FutureTask.run(FutureTask.java)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)


2021-05-18 16:41:02.198 ERROR 20804 --- [.0.0.1_8848-dev] c.a.n.c.config.http.ServerHttpAgent      : [NACOS ConnectException] currentServerAddr: 127.0.0.1:8848

2021-05-18 16:41:04.211 ERROR 20804 --- [.0.0.1_8848-dev] c.a.n.c.config.http.ServerHttpAgent      : [NACOS ConnectException] currentServerAddr: 127.0.0.1:8848

2021-05-18 16:41:05.757 ERROR 20804 --- [ing.beat.sender] com.alibaba.nacos.client.naming          : [NA] failed to request 

五、若有更多详细信息,请在下面提供。
image.pngimage.pngimage.png

1条回答
  • 2021-05-18 20:55

    商业版答疑规则见:https://sns.bladex.cn/article-14990.html

    请将账号邮箱修改为下单购买授权的qq邮箱便可咨询商业版疑问

    修改完邮箱后请将此贴删除并重新发一贴


    作者追问:2021-05-19 09:50

    image.png

    0 讨论(1)
提交回复