按文档跑微服后端,运行YshopGatewayApplication一直报错连接不上Nacos

发布于 2021-05-17 16:12:27

按文档跑微服后端,运行YshopGatewayApplication一直报错连接不上Nacos.

2021-05-17 16:07:06 ERROR yshop-gateway main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1621238826855, Client-RequestToken=1439928b8cb4e2de779ff76160c5ee9b, Timestamp=1621238826856, notify=false}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:06 ERROR yshop-gateway com.alibaba.nacos.client.Worker com.alibaba.nacos.common.remote.client Send request fail, request=ConfigBatchListenRequest{headers={Client-AppName=unknown, Client-RequestTS=1621238826855, charset=UTF-8, Client-RequestToken=1439928b8cb4e2de779ff76160c5ee9b, exConfigInfo=true, Timestamp=1621238826855}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:07 ERROR yshop-gateway main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1621238826855, Client-RequestToken=1439928b8cb4e2de779ff76160c5ee9b, Timestamp=1621238826856, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:07 ERROR yshop-gateway com.alibaba.nacos.client.Worker com.alibaba.nacos.common.remote.client Send request fail, request=ConfigBatchListenRequest{headers={Client-AppName=unknown, Client-RequestTS=1621238826855, charset=UTF-8, Client-RequestToken=1439928b8cb4e2de779ff76160c5ee9b, exConfigInfo=true, Timestamp=1621238826855}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:07 ERROR yshop-gateway main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1621238826855, Client-RequestToken=1439928b8cb4e2de779ff76160c5ee9b, Timestamp=1621238826856, notify=false}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:07 WARN  yshop-gateway main com.alibaba.nacos.client.config.NacosConfigService [config_rpc_client] [get-config] get from server error, dataId=sentinel-yshop-gateway, group=DEFAULT_GROUP, tenant=, msg=ErrCode:-401, ErrMsg:Client not connected,current status:STARTING

2021-05-17 16:07:07 WARN  yshop-gateway main com.alibaba.nacos.client.config.NacosConfigService [config_rpc_client] [get-config] get snapshot ok, dataId=sentinel-yshop-gateway, group=DEFAULT_GROUP, tenant=, config=

2021-05-17 16:07:07 WARN  yshop-gateway main com.alibaba.cloud.sentinel.datasource.converter.SentinelConverter converter can not convert rules because source is empty

2021-05-17 16:07:07 ERROR yshop-gateway com.alibaba.nacos.client.Worker com.alibaba.nacos.common.remote.client Send request fail, request=ConfigBatchListenRequest{headers={Client-AppName=unknown, Client-RequestTS=1621238826855, charset=UTF-8, Client-RequestToken=1439928b8cb4e2de779ff76160c5ee9b, exConfigInfo=true, Timestamp=1621238826855}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:07 ERROR yshop-gateway com.alibaba.nacos.client.Worker com.alibaba.nacos.client.config.impl.ClientWorker Async listen config change error 

com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING

at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:628)

at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.requestProxy(ClientWorker.java:965)

at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.requestProxy(ClientWorker.java:940)

at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.executeConfigListen(ClientWorker.java:753)

at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$3.run(ClientWorker.java:676)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

2021-05-17 16:07:07 INFO  yshop-gateway main com.alibaba.nacos.client.identify.CredentialWatcher null No credential found

2021-05-17 16:07:07 ERROR yshop-gateway main com.alibaba.nacos.common.remote.client Send request fail, request=SubscribeServiceRequest{headers={app=unknown}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:07 ERROR yshop-gateway main com.alibaba.nacos.common.remote.client Send request fail, request=SubscribeServiceRequest{headers={app=unknown}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:07 ERROR yshop-gateway main com.alibaba.nacos.common.remote.client Send request fail, request=SubscribeServiceRequest{headers={app=unknown}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING

2021-05-17 16:07:07 ERROR yshop-gateway main com.alibaba.cloud.nacos.discovery.NacosWatch namingService subscribe failed, properties:NacosDiscoveryProperties{serverAddr='127.0.0.1:8848', endpoint='', namespace='', watchDelay=30000, logName='', service='yshop-gateway', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.3.206', networkInterface='', port=-1, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null}

com.alibaba.nacos.api.exception.NacosException: Request nacos server failed: 

at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:213)

at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.subscribe(NamingGrpcClientProxy.java:172)

at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.subscribe(NamingClientProxyDelegate.java:146)

at com.alibaba.nacos.client.naming.NacosNamingService.subscribe(NacosNamingService.java:387)

at com.alibaba.cloud.nacos.discovery.NacosWatch.start(NacosWatch.java:123)

at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)

at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)

at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)

at java.lang.Iterable.forEach(Iterable.java:75)

at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155)

at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)

at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)

at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:63)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:769)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1313)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302)

at co.yixiang.gateway.YshopGatewayApplication.main(YshopGatewayApplication.java:19)

Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING

at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:628)

at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:608)

at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:203)

... 20 common frames omitted

查看更多

关注者
0
被浏览
3.8k
2 个回答
yshop-技术1
yshop-技术1 认证专家 2021-05-17
This guy hasn't written anything yet
登录后查看是否有阅读权限
sunchen
sunchen 2021-06-12
This guy hasn't written anything yet
登录后查看是否有阅读权限

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览