nacos 日志问题 ERR-CODE: [NACOS-0002], Type: [环境问题]

nacos配置中心配置后,项目启动正常,运行项目也正常,但是总是打印如下日志:

2019-10-11 15:44:09.792 [com.alibaba.nacos.client.Worker.longPullingfixed-xxx.xxx.xxx.xxx_8848-xxx.xxx.xxx.xx1_8848-xxx.xxx.xxx.xx2_8848-d6775f80-ed7a-409a-8dbc-49b2cddee4d1] ERROR com.alibaba.nacos.client.config.impl.ServerHttpAgent - [] [] [NACOS SocketTimeoutException] currentServerAddr:xxx.xxx.xxx.xxx:8848
2019-10-11 15:44:09.792 [com.alibaba.nacos.client.Worker.longPullingfixed-xxx.xxx.xxx.xxx_8848-xxx.xxx.xxx.xx1_8848-xxx.xxx.xxx.xx2_8848-d6775f80-ed7a-409a-8dbc-49b2cddee4d1] ERROR com.alibaba.nacos.client.config.impl.ServerHttpAgent - [] [] [NACOS-0002] no available server ERR-CODE: [NACOS-0002], Type: [环境问题], More: [http://console.taobao.net/help/NACOS-0002]
2019-10-11 15:44:09.792 [com.alibaba.nacos.client.Worker.longPullingfixed-xxx.xxx.xxx.xxx_8848-xxx.xxx.xxx.xx1_8848-xxx.xxx.xxx.xx2_8848-d6775f80-ed7a-409a-8dbc-49b2cddee4d1] ERROR com.alibaba.nacos.client.config.impl.ClientWorker - [fixed-xxx.xxx.xxx.xxx_8848-xxx.xxx.xxx.xx1_8848-xxx.xxx.xxx.xx2_8848-d6775f80-ed7a-409a-8dbc-49b2cddee4d1] [] [NACOS-XXXX] [check-update] get changed dataId exception, msg=java.net.ConnectException: no available server

原因是由于在远程服务器上的配置,网络不行导致的,将同样的配置放在本机nacos配置中心上启动,则没有该部分打印内容。

经过给官方提issues,查看解答,应是源码里面超时时间设置过短造成的,官方预计将会在1.2.0版本上修复,当前最新版本是1.1.4,后期可以做升级处理

posted @ 2019-10-11 16:24  醉逍遥_001  阅读(9609)  评论(0编辑  收藏  举报