nacos2.0客户端无法连接2.0服务端

 .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.3.2.RELEASE)

Payment 8002 [2021-04-20 13:43:59.674] INFO 19124 [restartedMain] c.a.n.c.c.impl.LocalConfigInfoProcessor  LocalConfigInfoProcessor.java#<clinit>:212 :: LOCAL_SNAPSHOT_PATH:C:\Users\67821\nacos\config
Payment 8002 [2021-04-20 13:44:00.056] INFO 19124 [restartedMain] org.reflections.Reflections              Reflections.java#scan:232 :: Reflections took 193 ms to scan 1 urls, producing 3 keys and 6 values 
Payment 8002 [2021-04-20 13:44:00.144] INFO 19124 [restartedMain] org.reflections.Reflections              Reflections.java#scan:232 :: Reflections took 23 ms to scan 1 urls, producing 4 keys and 9 values 
Payment 8002 [2021-04-20 13:44:00.161] INFO 19124 [restartedMain] org.reflections.Reflections              Reflections.java#scan:232 :: Reflections took 14 ms to scan 1 urls, producing 3 keys and 10 values 
Payment 8002 [2021-04-20 13:44:00.282] INFO 19124 [restartedMain] org.reflections.Reflections              Reflections.java#scan:232 :: Reflections took 117 ms to scan 141 urls, producing 0 keys and 0 values 
Payment 8002 [2021-04-20 13:44:00.292] INFO 19124 [restartedMain] org.reflections.Reflections              Reflections.java#scan:232 :: Reflections took 10 ms to scan 1 urls, producing 1 keys and 5 values 
Payment 8002 [2021-04-20 13:44:00.305] INFO 19124 [restartedMain] org.reflections.Reflections              Reflections.java#scan:232 :: Reflections took 10 ms to scan 1 urls, producing 1 keys and 7 values 
Payment 8002 [2021-04-20 13:44:00.320] INFO 19124 [restartedMain] org.reflections.Reflections              Reflections.java#scan:232 :: Reflections took 12 ms to scan 1 urls, producing 2 keys and 8 values 
Payment 8002 [2021-04-20 13:44:00.423] INFO 19124 [restartedMain] org.reflections.Reflections              Reflections.java#scan:232 :: Reflections took 101 ms to scan 141 urls, producing 0 keys and 0 values 
Payment 8002 [2021-04-20 13:44:00.435] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9]RpcClient init label, labels={module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown}
Payment 8002 [2021-04-20 13:44:00.436] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$259/1880614516
Payment 8002 [2021-04-20 13:44:00.436] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$260/1270324059
Payment 8002 [2021-04-20 13:44:00.437] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9]Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1
Payment 8002 [2021-04-20 13:44:00.438] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9]RpcClient init, ServerListFactory =com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2
Payment 8002 [2021-04-20 13:44:00.443] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] Try to connect to server on start up, server: {serverIp='localhost', server main port=8848}
Payment 8002 [2021-04-20 13:44:04.408] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] Try to connect to server on start up, server: {serverIp='localhost', server main port=8848}
Payment 8002 [2021-04-20 13:44:06.422] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] Try to connect to server on start up, server: {serverIp='localhost', server main port=8848}
Payment 8002 [2021-04-20 13:44:08.437] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
Payment 8002 [2021-04-20 13:44:08.439] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] try to re connect to a new server ,server is  not appointed,will choose a random server.
Payment 8002 [2021-04-20 13:44:08.438] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$4
Payment 8002 [2021-04-20 13:44:08.523] INFO 19124 [restartedMain] c.a.nacos.client.config.impl.Limiter     Limiter.java#<clinit>:54 :: limitTime:5.0
Payment 8002 [2021-04-20 13:44:08.645] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618897448443, Client-RequestToken=b0e9bf87d0312a7ba68613bd75071005, Timestamp=1618897448446, notify=false}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:08.746] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618897448443, Client-RequestToken=b0e9bf87d0312a7ba68613bd75071005, Timestamp=1618897448446, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:08.846] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618897448443, Client-RequestToken=b0e9bf87d0312a7ba68613bd75071005, Timestamp=1618897448446, notify=false}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:08.846] WARN 19124 [restartedMain] c.a.n.client.config.NacosConfigService   NacosConfigService.java#getConfigInner:167 :: [config_rpc_client] [get-config] get from server error, dataId=cloud-provider-service, group=DEFAULT_GROUP, tenant=, msg=ErrCode:-401, ErrMsg:Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:08.847] WARN 19124 [restartedMain] c.a.n.client.config.NacosConfigService   NacosConfigService.java#getConfigInner:171 :: [config_rpc_client] [get-config] get snapshot ok, dataId=cloud-provider-service, group=DEFAULT_GROUP, tenant=, config=
Payment 8002 [2021-04-20 13:44:08.848] WARN 19124 [restartedMain] c.a.c.n.c.NacosPropertySourceBuilder     NacosPropertySourceBuilder.java#loadNacosData:87 :: Ignore the empty nacos configuration and get it based on dataId[cloud-provider-service] & group[DEFAULT_GROUP]
Payment 8002 [2021-04-20 13:44:08.970] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618897448869, Client-RequestToken=8c77aa879ac12808bde63b7b9b7edb56, Timestamp=1618897448869, notify=false}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:09.070] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618897448869, Client-RequestToken=8c77aa879ac12808bde63b7b9b7edb56, Timestamp=1618897448869, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:09.171] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618897448869, Client-RequestToken=8c77aa879ac12808bde63b7b9b7edb56, Timestamp=1618897448869, notify=false}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:09.171] WARN 19124 [restartedMain] c.a.n.client.config.NacosConfigService   NacosConfigService.java#getConfigInner:167 :: [config_rpc_client] [get-config] get from server error, dataId=cloud-provider-service.properties, group=DEFAULT_GROUP, tenant=, msg=ErrCode:-401, ErrMsg:Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:09.172] WARN 19124 [restartedMain] c.a.n.client.config.NacosConfigService   NacosConfigService.java#getConfigInner:171 :: [config_rpc_client] [get-config] get snapshot ok, dataId=cloud-provider-service.properties, group=DEFAULT_GROUP, tenant=, config=
Payment 8002 [2021-04-20 13:44:09.173] WARN 19124 [restartedMain] c.a.c.n.c.NacosPropertySourceBuilder     NacosPropertySourceBuilder.java#loadNacosData:87 :: Ignore the empty nacos configuration and get it based on dataId[cloud-provider-service.properties] & group[DEFAULT_GROUP]
Payment 8002 [2021-04-20 13:44:09.175] INFO 19124 [restartedMain] b.c.PropertySourceBootstrapConfiguration PropertySourceBootstrapConfiguration.java#initialize:112 :: Located property source: [BootstrapPropertySource {name='bootstrapProperties-cloud-provider-service.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-cloud-provider-service,DEFAULT_GROUP'}]
Payment 8002 [2021-04-20 13:44:09.190] INFO 19124 [restartedMain] com.hj.cloud.PaymentMain                 SpringApplication.java#logStartupProfileInfo:651 :: No active profile set, falling back to default profiles: default
Payment 8002 [2021-04-20 13:44:12.048] WARN 19124 [restartedMain] o.s.boot.actuate.endpoint.EndpointId     EndpointId.java#logWarning:155 :: Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
Payment 8002 [2021-04-20 13:44:12.267] INFO 19124 [restartedMain] o.s.cloud.context.scope.GenericScope     GenericScope.java#setSerializationId:295 :: BeanFactory id=a8b14cad-5141-3eff-aa5a-39e246b264f3
Payment 8002 [2021-04-20 13:44:12.559] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] fail to connect server,after trying 1 times, last try server is {serverIp='localhost', server main port=8848},error=unknown
Payment 8002 [2021-04-20 13:44:13.581] INFO 19124 [restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  TomcatWebServer.java#initialize:108 :: Tomcat initialized with port(s): 8002 (http)
Payment 8002 [2021-04-20 13:44:13.664] INFO 19124 [restartedMain] o.a.coyote.http11.Http11NioProtocol      DirectJDKLog.java#log:173 :: Initializing ProtocolHandler ["http-nio-8002"]
Payment 8002 [2021-04-20 13:44:13.665] INFO 19124 [restartedMain] o.apache.catalina.core.StandardService   DirectJDKLog.java#log:173 :: Starting service [Tomcat]
Payment 8002 [2021-04-20 13:44:13.666] INFO 19124 [restartedMain] org.apache.catalina.core.StandardEngine  DirectJDKLog.java#log:173 :: Starting Servlet engine: [Apache Tomcat/9.0.37]
Payment 8002 [2021-04-20 13:44:13.894] INFO 19124 [restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       DirectJDKLog.java#log:173 :: Initializing Spring embedded WebApplicationContext
Payment 8002 [2021-04-20 13:44:13.895] INFO 19124 [restartedMain] w.s.c.ServletWebServerApplicationContext ServletWebServerApplicationContext.java#prepareWebApplicationContext:285 :: Root WebApplicationContext: initialization completed in 4658 ms
Payment 8002 [2021-04-20 13:44:14.785] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] fail to connect server,after trying 2 times, last try server is {serverIp='localhost', server main port=8848},error=unknown
Payment 8002 [2021-04-20 13:44:15.775] INFO 19124 [restartedMain] c.a.d.s.b.a.DruidDataSourceAutoConfigure DruidDataSourceAutoConfigure.java#dataSource:56 :: Init DruidDataSource
Payment 8002 [2021-04-20 13:44:16.104] INFO 19124 [restartedMain] com.alibaba.druid.pool.DruidDataSource   DruidDataSource.java#init:1002 :: {dataSource-1} inited
Payment 8002 [2021-04-20 13:44:16.807] WARN 19124 [restartedMain] c.n.c.sources.URLConfigurationSource     URLConfigurationSource.java#<init>:121 :: No URLs will be polled as dynamic configuration sources.
Payment 8002 [2021-04-20 13:44:16.807] INFO 19124 [restartedMain] c.n.c.sources.URLConfigurationSource     URLConfigurationSource.java#<init>:122 :: To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
Payment 8002 [2021-04-20 13:44:16.846] WARN 19124 [restartedMain] c.n.c.sources.URLConfigurationSource     URLConfigurationSource.java#<init>:121 :: No URLs will be polled as dynamic configuration sources.
Payment 8002 [2021-04-20 13:44:16.847] INFO 19124 [restartedMain] c.n.c.sources.URLConfigurationSource     URLConfigurationSource.java#<init>:122 :: To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
Payment 8002 [2021-04-20 13:44:17.092] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] fail to connect server,after trying 3 times, last try server is {serverIp='localhost', server main port=8848},error=unknown
Payment 8002 [2021-04-20 13:44:17.586] INFO 19124 [restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  ExecutorConfigurationSupport.java#initialize:181 :: Initializing ExecutorService 'applicationTaskExecutor'
Payment 8002 [2021-04-20 13:44:17.975] INFO 19124 [restartedMain] o.s.s.c.ThreadPoolTaskScheduler          ExecutorConfigurationSupport.java#initialize:181 :: Initializing ExecutorService 'Nacos-Watch-Task-Scheduler'
Payment 8002 [2021-04-20 13:44:18.036] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          InitUtils.java#call:65 :: initializer namespace from System Property :null
Payment 8002 [2021-04-20 13:44:18.037] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          InitUtils.java#call:74 :: initializer namespace from System Environment :null
Payment 8002 [2021-04-20 13:44:18.037] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          InitUtils.java#call:84 :: initializer namespace from System Property :null
Payment 8002 [2021-04-20 13:44:18.114] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad]RpcClient init label, labels={module=naming, source=sdk}
Payment 8002 [2021-04-20 13:44:18.115] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad]RpcClient init, ServerListFactory =com.alibaba.nacos.client.naming.core.ServerListManager
Payment 8002 [2021-04-20 13:44:18.116] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad] Try to connect to server on start up, server: {serverIp='10.10.90.23', server main port=1234}
Payment 8002 [2021-04-20 13:44:19.135] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad] Try to connect to server on start up, server: {serverIp='10.10.90.23', server main port=1234}
Payment 8002 [2021-04-20 13:44:19.492] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] fail to connect server,after trying 4 times, last try server is {serverIp='localhost', server main port=8848},error=unknown
Payment 8002 [2021-04-20 13:44:20.145] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad] Try to connect to server on start up, server: {serverIp='10.10.90.23', server main port=1234}
Payment 8002 [2021-04-20 13:44:21.156] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad] try to re connect to a new server ,server is  not appointed,will choose a random server.
Payment 8002 [2021-04-20 13:44:21.156] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
Payment 8002 [2021-04-20 13:44:21.157] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$4
Payment 8002 [2021-04-20 13:44:21.158] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad]Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler
Payment 8002 [2021-04-20 13:44:21.158] INFO 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad]Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcConnectionEventListener
Payment 8002 [2021-04-20 13:44:21.956] INFO 19124 [restartedMain] o.s.b.d.a.OptionalLiveReloadServer       OptionalLiveReloadServer.java#startServer:58 :: LiveReload server is running on port 35729
Payment 8002 [2021-04-20 13:44:21.998] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] fail to connect server,after trying 5 times, last try server is {serverIp='localhost', server main port=8848},error=unknown
Payment 8002 [2021-04-20 13:44:22.558] INFO 19124 [restartedMain] o.s.b.a.e.web.EndpointLinksResolver      EndpointLinksResolver.java#<init>:58 :: Exposing 19 endpoint(s) beneath base path '/actuator'
Payment 8002 [2021-04-20 13:44:22.735] INFO 19124 [restartedMain] c.a.n.client.identify.CredentialWatcher  CredentialWatcher.java#loadCredential:165 :: null No credential found
Payment 8002 [2021-04-20 13:44:22.837] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=SubscribeServiceRequest{headers={app=unknown}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:22.938] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=SubscribeServiceRequest{headers={app=unknown}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:23.039] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=SubscribeServiceRequest{headers={app=unknown}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:23.067] ERROR 19124 [restartedMain] c.a.cloud.nacos.discovery.NacosWatch     NacosWatch.java#start:127 :: namingService subscribe failed, properties:NacosDiscoveryProperties{serverAddr='10.10.90.23:1234', endpoint='', namespace='', watchDelay=30000, logName='', service='cloud-provider-service', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='10.10.18.17', 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:182)
	at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53)
	at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360)
	at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158)
	at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
	at com.hj.cloud.PaymentMain.main(PaymentMain.java:17)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
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)
	... 24 common frames omitted
Payment 8002 [2021-04-20 13:44:23.073] INFO 19124 [restartedMain] o.a.coyote.http11.Http11NioProtocol      DirectJDKLog.java#log:173 :: Starting ProtocolHandler ["http-nio-8002"]
Payment 8002 [2021-04-20 13:44:23.178] INFO 19124 [restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  TomcatWebServer.java#start:220 :: Tomcat started on port(s): 8002 (http) with context path ''
Payment 8002 [2021-04-20 13:44:23.206] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingGrpcClientProxy.java#registerService:97 :: [REGISTER-SERVICE] public registering service cloud-provider-service with instance Instance{instanceId='null', ip='10.10.18.17', port=8002, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={preserved.register.source=SPRING_CLOUD}}
Payment 8002 [2021-04-20 13:44:23.306] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=InstanceRequest{headers={app=unknown}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:23.404] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad] fail to connect server,after trying 1 times, last try server is {serverIp='10.10.90.23', server main port=1234},error=unknown
Payment 8002 [2021-04-20 13:44:23.406] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=InstanceRequest{headers={app=unknown}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:23.506] ERROR 19124 [restartedMain] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfErrorEnabled:99 :: Send request fail, request=InstanceRequest{headers={app=unknown}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING
Payment 8002 [2021-04-20 13:44:23.506] ERROR 19124 [restartedMain] c.a.c.n.registry.NacosServiceRegistry    NacosServiceRegistry.java#register:79 :: nacos registry, cloud-provider-service register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='10.10.90.23:1234', endpoint='', namespace='', watchDelay=30000, logName='', service='cloud-provider-service', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='10.10.18.17', networkInterface='', port=8002, 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.registerService(NamingGrpcClientProxy.java:101)
	at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.registerService(NamingClientProxyDelegate.java:95)
	at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:139)
	at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:74)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:239)
	at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:78)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:138)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:101)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:88)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
	at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:46)
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182)
	at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53)
	at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360)
	at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158)
	at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
	at com.hj.cloud.PaymentMain.main(PaymentMain.java:17)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
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)
	... 36 common frames omitted
Payment 8002 [2021-04-20 13:44:23.583] WARN 19124 [restartedMain] ConfigServletWebServerApplicationContext AbstractApplicationContext.java#refresh:559 :: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is java.lang.reflect.UndeclaredThrowableException
Payment 8002 [2021-04-20 13:44:23.585] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          ServiceInfoHolder.java#shutdown:242 :: com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin
Payment 8002 [2021-04-20 13:44:23.586] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          FailoverReactor.java#shutdown:132 :: com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin
Payment 8002 [2021-04-20 13:44:23.888] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          FailoverReactor.java#shutdown:134 :: com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop
Payment 8002 [2021-04-20 13:44:23.888] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          ServiceInfoHolder.java#shutdown:244 :: com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop
Payment 8002 [2021-04-20 13:44:23.888] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingClientProxyDelegate.java#shutdown:176 :: com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin
Payment 8002 [2021-04-20 13:44:23.888] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          ServiceInfoUpdateService.java#shutdown:130 :: com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin
Payment 8002 [2021-04-20 13:44:23.888] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          ServiceInfoUpdateService.java#shutdown:132 :: com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop
Payment 8002 [2021-04-20 13:44:23.888] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          ServerListManager.java#shutdown:177 :: com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin
Payment 8002 [2021-04-20 13:44:23.889] WARN 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingHttpClientManager.java#shutdown:72 :: [NamingHttpClientManager] Start destroying NacosRestTemplate
Payment 8002 [2021-04-20 13:44:23.889] WARN 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingHttpClientManager.java#shutdown:79 :: [NamingHttpClientManager] Destruction of the end
Payment 8002 [2021-04-20 13:44:23.889] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          ServerListManager.java#shutdown:182 :: com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop
Payment 8002 [2021-04-20 13:44:23.889] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingHttpClientProxy.java#shutdown:479 :: com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin
Payment 8002 [2021-04-20 13:44:23.889] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          BeatReactor.java#shutdown:160 :: com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown begin
Payment 8002 [2021-04-20 13:44:23.889] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          BeatReactor.java#shutdown:162 :: com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown stop
Payment 8002 [2021-04-20 13:44:23.889] WARN 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingHttpClientManager.java#shutdown:72 :: [NamingHttpClientManager] Start destroying NacosRestTemplate
Payment 8002 [2021-04-20 13:44:23.889] WARN 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingHttpClientManager.java#shutdown:79 :: [NamingHttpClientManager] Destruction of the end
Payment 8002 [2021-04-20 13:44:23.889] INFO 19124 [restartedMain] c.a.n.client.identify.CredentialWatcher  CredentialWatcher.java#stop:105 :: [null] CredentialWatcher is stopped
Payment 8002 [2021-04-20 13:44:23.890] INFO 19124 [restartedMain] c.a.n.client.identify.CredentialService  CredentialService.java#free:98 :: [null] CredentialService is freed
Payment 8002 [2021-04-20 13:44:23.890] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingHttpClientProxy.java#shutdown:483 :: com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop
Payment 8002 [2021-04-20 13:44:23.890] INFO 19124 [restartedMain] com.alibaba.nacos.client.naming          NamingClientProxyDelegate.java#shutdown:182 :: com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop
Payment 8002 [2021-04-20 13:44:23.891] INFO 19124 [restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  ExecutorConfigurationSupport.java#shutdown:218 :: Shutting down ExecutorService 'applicationTaskExecutor'
Payment 8002 [2021-04-20 13:44:23.904] INFO 19124 [restartedMain] com.alibaba.druid.pool.DruidDataSource   DruidDataSource.java#close:1885 :: {dataSource-1} closing ...
Payment 8002 [2021-04-20 13:44:23.912] INFO 19124 [restartedMain] com.alibaba.druid.pool.DruidDataSource   DruidDataSource.java#close:1955 :: {dataSource-1} closed
Payment 8002 [2021-04-20 13:44:23.914] INFO 19124 [restartedMain] o.a.coyote.http11.Http11NioProtocol      DirectJDKLog.java#log:173 :: Pausing ProtocolHandler ["http-nio-8002"]
Payment 8002 [2021-04-20 13:44:23.941] INFO 19124 [restartedMain] o.apache.catalina.core.StandardService   DirectJDKLog.java#log:173 :: Stopping service [Tomcat]
Payment 8002 [2021-04-20 13:44:23.995] INFO 19124 [restartedMain] o.a.coyote.http11.Http11NioProtocol      DirectJDKLog.java#log:173 :: Stopping ProtocolHandler ["http-nio-8002"]
Payment 8002 [2021-04-20 13:44:23.998] INFO 19124 [restartedMain] o.a.coyote.http11.Http11NioProtocol      DirectJDKLog.java#log:173 :: Destroying ProtocolHandler ["http-nio-8002"]
Payment 8002 [2021-04-20 13:44:24.010] INFO 19124 [restartedMain] ConditionEvaluationReportLoggingListener ConditionEvaluationReportLoggingListener.java#logMessage:136 :: 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
Payment 8002 [2021-04-20 13:44:24.073] ERROR 19124 [restartedMain] o.s.boot.SpringApplication               SpringApplication.java#reportFailure:837 :: Application run failed
org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is java.lang.reflect.UndeclaredThrowableException
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185)
	at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53)
	at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360)
	at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158)
	at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
	at com.hj.cloud.PaymentMain.main(PaymentMain.java:17)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: java.lang.reflect.UndeclaredThrowableException: null
	at org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:147)
	at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:83)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:239)
	at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:78)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:138)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:101)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:88)
	at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
	at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:46)
	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182)
	... 19 common frames omitted
Caused by: 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.registerService(NamingGrpcClientProxy.java:101)
	at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.registerService(NamingClientProxyDelegate.java:95)
	at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:139)
	at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:74)
	... 32 common frames omitted
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)
	... 36 common frames omitted
Payment 8002 [2021-04-20 13:44:24.609] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] fail to connect server,after trying 6 times, last try server is {serverIp='localhost', server main port=8848},error=unknown
Payment 8002 [2021-04-20 13:44:24.682] WARN 19124 [grpc-nio-worker-ELG-1-5] c.a.n.s.i.g.n.s.i.n.u.c.DefaultPromise   DefaultPromise.java#notifyListener0:503 :: An exception was thrown by com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.NettyClientTransport$5.operationComplete()
java.util.concurrent.RejectedExecutionException: Task com.alibaba.nacos.shaded.io.grpc.internal.DelayedClientTransport$5@56991707 rejected from java.util.concurrent.ThreadPoolExecutor@7d1b42bd[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 10]
	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
	at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
	at com.alibaba.nacos.shaded.io.grpc.internal.DelayedClientTransport.reprocess(DelayedClientTransport.java:297)
	at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl.updateSubchannelPicker(ManagedChannelImpl.java:802)
	at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl.panic(ManagedChannelImpl.java:789)
	at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl$1.uncaughtException(ManagedChannelImpl.java:157)
	at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.drain(SynchronizationContext.java:97)
	at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.execute(SynchronizationContext.java:127)
	at com.alibaba.nacos.shaded.io.grpc.internal.InternalSubchannel$TransportListener.transportShutdown(InternalSubchannel.java:535)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.ClientTransportLifecycleManager.notifyShutdown(ClientTransportLifecycleManager.java:53)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.ClientTransportLifecycleManager.notifyTerminated(ClientTransportLifecycleManager.java:69)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.NettyClientTransport$5.operationComplete(NettyClientTransport.java:287)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.NettyClientTransport$5.operationComplete(NettyClientTransport.java:281)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:500)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:474)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:413)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:538)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:531)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setFailure(DefaultPromise.java:103)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.DefaultChannelPromise.setFailure(DefaultChannelPromise.java:89)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler.failWrites(WriteBufferingAndExceptionHandler.java:236)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler.access$100(WriteBufferingAndExceptionHandler.java:43)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler$1ConnectListener.operationComplete(WriteBufferingAndExceptionHandler.java:145)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler$1ConnectListener.operationComplete(WriteBufferingAndExceptionHandler.java:141)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:500)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:493)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:472)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:413)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:538)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:531)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:111)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:323)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:339)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:685)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:748)
Payment 8002 [2021-04-20 13:44:26.655] ERROR 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   GrpcClient.java#connectToServer:288 :: [849c8e64-89a6-4772-af99-4500506d55ad]Fail to connect to server!,error={}
java.util.concurrent.RejectedExecutionException: Task com.alibaba.nacos.shaded.io.grpc.internal.SerializingExecutor@436baa45 rejected from java.util.concurrent.ThreadPoolExecutor@7d1b42bd[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 10]
	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
	at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
	at com.alibaba.nacos.shaded.io.grpc.internal.SerializingExecutor.schedule(SerializingExecutor.java:93)
	at com.alibaba.nacos.shaded.io.grpc.internal.SerializingExecutor.execute(SerializingExecutor.java:86)
	at com.alibaba.nacos.shaded.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.closedInternal(ClientCallImpl.java:696)
	at com.alibaba.nacos.shaded.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.closed(ClientCallImpl.java:646)
	at com.alibaba.nacos.shaded.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.closed(ClientCallImpl.java:639)
	at com.alibaba.nacos.shaded.io.grpc.internal.DelayedStream.cancel(DelayedStream.java:302)
	at com.alibaba.nacos.shaded.io.grpc.internal.DelayedClientTransport$PendingStream.cancel(DelayedClientTransport.java:363)
	at com.alibaba.nacos.shaded.io.grpc.internal.DelayedClientTransport.shutdownNow(DelayedClientTransport.java:241)
	at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl$UncommittedRetriableStreamsRegistry.onShutdownNow(ManagedChannelImpl.java:1021)
	at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl.shutdownNow(ManagedChannelImpl.java:752)
	at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl.shutdownNow(ManagedChannelImpl.java:105)
	at com.alibaba.nacos.shaded.io.grpc.internal.ForwardingManagedChannel.shutdownNow(ForwardingManagedChannel.java:52)
	at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelOrphanWrapper.shutdownNow(ManagedChannelOrphanWrapper.java:66)
	at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.shuntDownChannel(GrpcClient.java:122)
	at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:259)
	at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:501)
	at com.alibaba.nacos.common.remote.client.RpcClient$3.run(RpcClient.java:337)
	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:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Payment 8002 [2021-04-20 13:44:26.655] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad] fail to connect server,after trying 2 times, last try server is {serverIp='10.10.90.23', server main port=1234},error=unknown
Payment 8002 [2021-04-20 13:44:26.955] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [849c8e64-89a6-4772-af99-4500506d55ad] Client is shutdown ,stop reconnect to server
Payment 8002 [2021-04-20 13:44:27.317] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] fail to connect server,after trying 7 times, last try server is {serverIp='localhost', server main port=8848},error=unknown
Payment 8002 [2021-04-20 13:44:30.131] INFO 19124 [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client   LoggerUtils.java#printIfInfoEnabled:60 :: [config-0-08c6f12e-b189-4cfc-9cc6-4853937a7cd9] fail to connect server,after trying 8 times, last try server is {serverIp='localhost', server main port=8848},error=unknown

Process finished with exit code -1

上面是报错信息

关键是要客户端要多 连一个 grpc 端口:

  • 举个例, 默认 nacos 的端口 http 是 8848 ,那客户端 2.0 默认的 grpc 端口就是 8848 + 1000(偏移量) = 9848.

如果有 中间代理层、有点坑. 以我自己的测试环境为例子, 我用的是 gobetween. 用 3000 端口代理了 3个nacos 8848.

那我在 gobetween 就要开开放 3000 +1000 = 4000 端口 为 3个 nacos 的8848 + 1000 = 9848端口

具体 可以看 官方文档 . https://nacos.io/zh-cn/docs/2.0.0-compatibility.html

下面是我的 gobetween 配置:

 


[servers.sample]
protocol = "tcp"
bind = "0.0.0.0:3000"

  [servers.sample.discovery]
  kind = "static"
  static_list = [
      #"10.1.1.18:8848",
      #"10.1.1.63:8848",
      #"10.1.1.100:8848"
      "10.1.1.22:8848",
      "10.1.1.23:8848",
      "10.1.1.172:8848"
  ]

[servers.nacosgrpc]
protocol = "tcp"
bind = "0.0.0.0:4000"

  [servers.nacosgrpc.discovery]
  kind = "static"
  static_list = [
      "10.1.1.22:9848",
      "10.1.1.23:9848",
      "10.1.1.172:9848"
  ]

 

您好,怎么解决了?我也出现同样问题

nacos服务器的设置添加上偏移的端口,在原有的8848端口基础上再开一个9848