一、该问题的重现步骤是什么?
1. 镜像部署至linux服务器
2. 启动blade-gateway时报错
3.nacos可查看到该服务已注册
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
2020-09-03 15:13:04.606 ERROR 1 --- [oundedElastic-4] com.alibaba.nacos.client.naming : [NA] failed to write cache for dom:DEFAULT_GROUP@@blade-gateway
java.lang.IllegalStateException: failed to create cache dir: /root/nacos/naming/public
at com.alibaba.nacos.client.naming.cache.DiskCache.makeSureCacheDirExists(DiskCache.java:154) ~[nacos-client-1.1.4.jar!/:na]
at com.alibaba.nacos.client.naming.cache.DiskCache.write(DiskCache.java:45) ~[nacos-client-1.1.4.jar!/:na]
at com.alibaba.nacos.client.naming.core.HostReactor.processServiceJSON(HostReactor.java:184) [nacos-client-1.1.4.jar!/:na]
at com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:282) [nacos-client-1.1.4.jar!/:na]
at com.alibaba.nacos.client.naming.core.HostReactor.getServiceInfo(HostReactor.java:238) [nacos-client-1.1.4.jar!/:na]
at com.alibaba.nacos.client.naming.NacosNamingService.selectInstances(NacosNamingService.java:344) [nacos-client-1.1.4.jar!/:na]
at com.alibaba.nacos.client.naming.NacosNamingService.selectInstances(NacosNamingService.java:319) [nacos-client-1.1.4.jar!/:na]
at com.alibaba.nacos.client.naming.NacosNamingService.selectInstances(NacosNamingService.java:308) [nacos-client-1.1.4.jar!/:na]
at com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery.getInstances(NacosServiceDiscovery.java:52) [spring-cloud-alibaba-nacos-discovery-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]
at com.alibaba.cloud.nacos.discovery.NacosDiscoveryClient.getInstances(NacosDiscoveryClient.java:56) [spring-cloud-alibaba-nacos-discovery-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]
at org.springframework.cloud.client.discovery.composite.CompositeDiscoveryClient.getInstances(CompositeDiscoveryClient.java:53) [spring-cloud-commons-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:100) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxIterable$IterableSubscription.slowPath(FluxIterable.java:267) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxIterable$IterableSubscription.request(FluxIterable.java:225) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxMap$MapSubscriber.request(FluxMap.java:155) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.requestUpstream(FluxSubscribeOn.java:131) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.onSubscribe(FluxSubscribeOn.java:124) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxMap$MapSubscriber.onSubscribe(FluxMap.java:86) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:161) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:86) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxDefer.subscribe(FluxDefer.java:54) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:53) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.3.3.RELEASE.jar!/:3.3.3.RELEASE]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_202]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_202]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[na:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_202]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_202]
扫一扫访问 Blade技术社区 移动端