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.runAndResetRunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndResetRunnableAdapter.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.ScheduledThreadPoolExecutorcapture(FutureTask.java:308) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) at java.util.concurrent.ScheduledThreadPoolExecutorcapture(FutureTask.java:308)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutor301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor301(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)073010: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.ExecutorsWorker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 07-30 10:48:37.232 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.ExecutorsWorker.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.ScheduledThreadPoolExecutorcapture(FutureTask.java:308) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) at java.util.concurrent.ScheduledThreadPoolExecutorcapture(FutureTask.java:308)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutor301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor301(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)073010: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.ExecutorsWorker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 07-30 10:49:37.272 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.ExecutorsWorker.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.ScheduledThreadPoolExecutorcapture(FutureTask.java:308) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) at java.util.concurrent.ScheduledThreadPoolExecutorcapture(FutureTask.java:308)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutor301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor301(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)073010: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.ExecutorsWorker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 07-30 10:50:37.346 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.ExecutorsWorker.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.ScheduledThreadPoolExecutorcapture(FutureTask.java:308) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) at java.util.concurrent.ScheduledThreadPoolExecutorcapture(FutureTask.java:308)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutor301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor301(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)

nacos服务更改时出错

错误原因:

不知道什么原因,重装了一个版本的nacos就可以了

上一篇:2021-09-28 包含数字9的数


下一篇:数据库_Armstrong公理系统