首页 > 其他分享> > springboot踩坑日记—nacos: Error watching Nacos Service change
springboot踩坑日记—nacos: Error watching Nacos Service change
作者:互联网
springboot踩坑日记—nacos: Error watching Nacos Service change
Spring Boot :: (v2.1.5.RELEASE)
错误代码:
07-30 10:47:37.148 ERROR [o.s.cloud.alibaba.nacos.discovery.NacosWatch] - Error watching Nacos Service change
java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/service/list after all servers([106.15.89.158:8848]) tried: failed to req API:http://106.15.89.111:8848/nacos/v1/ns/service/list. code:503 msg: server is DOWN now, please try again later!
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:346)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:294)
at com.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:276)
at com.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:252)
at com.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:525)
at org.springframework.cloud.alibaba.nacos.discovery.NacosWatch.nacosServicesWatch(NacosWatch.java:127)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)atjava.util.concurrent.FutureTask.runAndResetKaTeX parse error: Can't use function '$' in math mode at position 147: …eadPoolExecutor$̲ScheduledFuture…capture(FutureTask.java:308)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)atjava.lang.Thread.run(Thread.java:748)07−3010:48:37.232ERROR[o.s.cloud.alibaba.nacos.discovery.NacosWatch]−ErrorwatchingNacosServicechangejava.lang.IllegalStateException:failedtoreqAPI:/nacos/v1/ns/service/listafterallservers([106.15.89.158:8848])tried:failedtoreqAPI:http://106.15.89.111:8848/nacos/v1/ns/service/list.code:503msg:serverisDOWNnow,pleasetryagainlater!atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380)atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:346)atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:294)atcom.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:276)atcom.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:252)atcom.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:525)atorg.springframework.cloud.alibaba.nacos.discovery.NacosWatch.nacosServicesWatch(NacosWatch.java:127)atorg.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset$KaTeX parse error: Can't use function '$' in math mode at position 147: …eadPoolExecutor$̲ScheduledFuture…capture(FutureTask.java:308)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)atjava.lang.Thread.run(Thread.java:748)07−3010:49:37.272ERROR[o.s.cloud.alibaba.nacos.discovery.NacosWatch]−ErrorwatchingNacosServicechangejava.lang.IllegalStateException:failedtoreqAPI:/nacos/v1/ns/service/listafterallservers([106.15.89.158:8848])tried:failedtoreqAPI:http://106.15.89.111:8848/nacos/v1/ns/service/list.code:503msg:serverisDOWNnow,pleasetryagainlater!atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380)atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:346)atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:294)atcom.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:276)atcom.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:252)atcom.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:525)atorg.springframework.cloud.alibaba.nacos.discovery.NacosWatch.nacosServicesWatch(NacosWatch.java:127)atorg.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset$KaTeX parse error: Can't use function '$' in math mode at position 147: …eadPoolExecutor$̲ScheduledFuture…capture(FutureTask.java:308)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)atjava.lang.Thread.run(Thread.java:748)07−3010:50:37.346ERROR[o.s.cloud.alibaba.nacos.discovery.NacosWatch]−ErrorwatchingNacosServicechangejava.lang.IllegalStateException:failedtoreqAPI:/nacos/v1/ns/service/listafterallservers([106.15.89.158:8848])tried:failedtoreqAPI:http://106.15.89.111:8848/nacos/v1/ns/service/list.code:503msg:serverisDOWNnow,pleasetryagainlater!atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:380)atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:346)atcom.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:294)atcom.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:276)atcom.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:252)atcom.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:525)atorg.springframework.cloud.alibaba.nacos.discovery.NacosWatch.nacosServicesWatch(NacosWatch.java:127)atorg.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset$KaTeX parse error: Can't use function '$' in math mode at position 147: …eadPoolExecutor$̲ScheduledFuture…capture(FutureTask.java:308)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
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)