在本地无任何问题,部署到服务器上nacos一直在报错code:404 msg: service not found: DEFAULT_GROUP@@localhost 不知道localhost这个服务是哪里来的 , 不影响使用但是打印太多了影响看日志

Blade 未结 1 2281
一直
一直 2019-07-23 15:56

2019-07-23T07:54:27.604080037Z 2019-07-23 15:54:27.603 [com.alibaba.nacos.client.naming.updater] ERROR com.alibaba.nacos.client.naming updateServiceNow 278 - [NA] failed to update serviceName: DEFAULT_GROUP@@localhost

2019-07-23T07:54:27.604113490Z java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance/list after all servers([172.16.4.4:8849]) tried: failed to req API:http://172.16.4.4:8849/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@localhost

2019-07-23T07:54:27.604142663Z at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380)

2019-07-23T07:54:27.604206811Z at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304)

2019-07-23T07:54:27.604260615Z at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217)

2019-07-23T07:54:27.604294711Z at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273)

2019-07-23T07:54:27.604319312Z at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318)

2019-07-23T07:54:27.604346817Z at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

2019-07-23T07:54:27.604379166Z at java.util.concurrent.FutureTask.run(FutureTask.java:266)

2019-07-23T07:54:27.604425309Z at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

2019-07-23T07:54:27.604453131Z at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

2019-07-23T07:54:27.604476916Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

2019-07-23T07:54:27.604531051Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

2019-07-23T07:54:27.604585969Z at java.lang.Thread.run(Thread.java:748)

2019-07-23T07:54:28.607128493Z 2019-07-23 15:54:28.606 [com.alibaba.nacos.client.naming.updater] ERROR com.alibaba.nacos.client.naming reqAPI 370 - request 172.16.4.4:8849 failed.

2019-07-23T07:54:28.607174461Z com.alibaba.nacos.api.exception.NacosException: failed to req API:http://172.16.4.4:8849/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@localhost

2019-07-23T07:54:28.607183386Z at com.alibaba.nacos.client.naming.net.NamingProxy.callServer(NamingProxy.java:340)

2019-07-23T07:54:28.607188818Z at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:367)

2019-07-23T07:54:28.607193904Z at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304)

2019-07-23T07:54:28.607198745Z at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217)

2019-07-23T07:54:28.607203024Z at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273)

2019-07-23T07:54:28.607207413Z at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318)

2019-07-23T07:54:28.607211929Z at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

2019-07-23T07:54:28.607215987Z at java.util.concurrent.FutureTask.run(FutureTask.java:266)

2019-07-23T07:54:28.607221262Z at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

2019-07-23T07:54:28.607225890Z at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

2019-07-23T07:54:28.607230816Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

2019-07-23T07:54:28.607235093Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

2019-07-23T07:54:28.607239257Z at java.lang.Thread.run(Thread.java:748)

2019-07-23T07:54:28.607372664Z 2019-07-23 15:54:28.606 [com.alibaba.nacos.client.naming.updater] ERROR com.alibaba.nacos.client.naming updateServiceNow 278 - [NA] failed to update serviceName: DEFAULT_GROUP@@localhost

2019-07-23T07:54:28.607556634Z java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance/list after all servers([172.16.4.4:8849]) tried: failed to req API:http://172.16.4.4:8849/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@localhost

2019-07-23T07:54:28.607670470Z at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380)

2019-07-23T07:54:28.607726005Z at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304)

2019-07-23T07:54:28.607776214Z at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217)

2019-07-23T07:54:28.607836584Z at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273)

2019-07-23T07:54:28.607892642Z at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318)

2019-07-23T07:54:28.607953779Z at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

2019-07-23T07:54:28.608002507Z at java.util.concurrent.FutureTask.run(FutureTask.java:266)

2019-07-23T07:54:28.608049628Z at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

2019-07-23T07:54:28.608104078Z at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

2019-07-23T07:54:28.608152147Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

2019-07-23T07:54:28.608198765Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

2019-07-23T07:54:28.608245089Z at java.lang.Thread.run(Thread.java:748)

2019-07-23T07:54:29.610068938Z 2019-07-23 15:54:29.609 [com.alibaba.nacos.client.naming.updater] ERROR com.alibaba.nacos.client.naming reqAPI 370 - request 172.16.4.4:8849 failed.

2019-07-23T07:54:29.610103301Z com.alibaba.nacos.api.exception.NacosException: failed to req API:http://172.16.4.4:8849/nacos/v1/ns/instance/list. code:404 msg: service not found: DEFAULT_GROUP@@localhost

2019-07-23T07:54:29.610110416Z at com.alibaba.nacos.client.naming.net.NamingProxy.callServer(NamingProxy.java:340)

2019-07-23T07:54:29.610115397Z at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:367)

2019-07-23T07:54:29.610119945Z at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:304)

2019-07-23T07:54:29.610124478Z at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:217)

2019-07-23T07:54:29.610128985Z at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:273)

2019-07-23T07:54:29.610133192Z at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:318)

2019-07-23T07:54:29.610137395Z at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

2019-07-23T07:54:29.610141745Z at java.util.concurrent.FutureTask.run(FutureTask.java:266)

2019-07-23T07:54:29.610146367Z at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

2019-07-23T07:54:29.610150756Z at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

2019-07-23T07:54:29.610155045Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

2019-07-23T07:54:29.610159208Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

2019-07-23T07:54:29.610163711Z at java.lang.Thread.run(Thread.java:748)


1条回答
  •  一直
    一直 (楼主)
    2019-07-23 17:04

    已在官网找到答案,是因为zipkin问题。

    配置文件中加上  spring.zipkin.discoveryClientEnabled=false  这个配置就行

    1 讨论(0)
提交回复