auth服务启动报错

Blade 未结 1 1421
wyan
wyan 剑童 2021-04-16 11:27

一、该问题的重现步骤是什么?

1. 导入工程和依赖坐标后

2. 修改nacos地址为局域网ip 

3.启动auth服务直接报错


二、你期待的结果是什么?实际看到的又是什么?

auth工程启动成功 但是报错 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2021-04-16 11:15:39.457  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f] Client is shutdown ,stop reconnect to server

2021-04-16 11:15:39.506 ERROR 18684 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Parameter 0 of constructor in org.springblade.core.swagger.SwaggerAutoConfiguration required a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' that could not be found.



Action:


Consider defining a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' in your configuration.


2021-04-16 11:15:40.439  WARN 18684 --- [      Thread-11] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Start destroying Publisher

2021-04-16 11:15:40.439  WARN 18684 --- [       Thread-2] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Start destroying common HttpClient

2021-04-16 11:15:40.440  WARN 18684 --- [      Thread-11] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Destruction of the end

2021-04-16 11:15:40.441  WARN 18684 --- [       Thread-2] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Destruction of the end

Disconnected from the target VM, address: '127.0.0.1:54936', transport: 'socket'


Process finished with exit code 1


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

org.springblade
SpringBlade
3.0.2

四、请提供详细的错误堆栈信息,这很重要。



 _____               _                 ______  _             _

/  ___|             (_)                | ___ \| |           | |

\ `--.  _ __   _ __  _  _ __    __ _   | |_/ /| |  __ _   __| |  ___

 `--. \| '_ \ | '__|| || '_ \  / _` |  | ___ \| | / _` | / _` | / _ \

/\__/ /| |_) || |   | || | | || (_| |  | |_/ /| || (_| || (_| ||  __/

\____/ | .__/ |_|   |_||_| |_| \__, |  \____/ |_| \__,_| \__,_| \___|

       | |                      __/ |

       |_|                     |___/


:: SpringBlade :: blade-auth:dev :: Running SpringBoot 2.4.4 :: 


2021-04-16 11:15:05.695  INFO 18684 --- [           main] c.a.n.c.c.impl.LocalConfigInfoProcessor  : LOCAL_SNAPSHOT_PATH:C:\Users\wyan\nacos\config

2021-04-16 11:15:05.821  INFO 18684 --- [           main] org.reflections.Reflections              : Reflections took 60 ms to scan 1 urls, producing 3 keys and 6 values 

2021-04-16 11:15:05.878  INFO 18684 --- [           main] org.reflections.Reflections              : Reflections took 26 ms to scan 1 urls, producing 4 keys and 9 values 

2021-04-16 11:15:05.901  INFO 18684 --- [           main] org.reflections.Reflections              : Reflections took 18 ms to scan 1 urls, producing 3 keys and 10 values 

2021-04-16 11:15:06.125  INFO 18684 --- [           main] org.reflections.Reflections              : Reflections took 221 ms to scan 235 urls, producing 0 keys and 0 values 

2021-04-16 11:15:06.140  INFO 18684 --- [           main] org.reflections.Reflections              : Reflections took 14 ms to scan 1 urls, producing 1 keys and 5 values 

2021-04-16 11:15:06.161  INFO 18684 --- [           main] org.reflections.Reflections              : Reflections took 15 ms to scan 1 urls, producing 1 keys and 7 values 

2021-04-16 11:15:06.177  INFO 18684 --- [           main] org.reflections.Reflections              : Reflections took 13 ms to scan 1 urls, producing 2 keys and 8 values 

2021-04-16 11:15:06.357  INFO 18684 --- [           main] org.reflections.Reflections              : Reflections took 176 ms to scan 235 urls, producing 0 keys and 0 values 

2021-04-16 11:15:06.361  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853]RpcClient init label, labels={module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown}

2021-04-16 11:15:06.362  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$311/366752671

2021-04-16 11:15:06.362  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$312/1825923873

2021-04-16 11:15:06.364  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853]Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1

2021-04-16 11:15:06.364  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853]RpcClient init, ServerListFactory =com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2

2021-04-16 11:15:06.369  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] Try to connect to server on start up, server: {serverIp='192.168.188.133', server main port=8848}

2021-04-16 11:15:11.803  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] Try to connect to server on start up, server: {serverIp='192.168.188.133', server main port=8848}

2021-04-16 11:15:14.807  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] Try to connect to server on start up, server: {serverIp='192.168.188.133', server main port=8848}

2021-04-16 11:15:17.811  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] try to re connect to a new server ,server is  not appointed,will choose a random server.

2021-04-16 11:15:17.812  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler

2021-04-16 11:15:17.812  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$4

2021-04-16 11:15:17.899  INFO 18684 --- [           main] c.a.nacos.client.config.impl.Limiter     : limitTime:5.0

2021-04-16 11:15:18.010 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542917815, Client-RequestToken=a9244908f9672568aa4a7fcbf6402189, Timestamp=1618542917817, notify=false}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.110 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542917815, Client-RequestToken=a9244908f9672568aa4a7fcbf6402189, Timestamp=1618542917817, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.210 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542917815, Client-RequestToken=a9244908f9672568aa4a7fcbf6402189, Timestamp=1618542917817, notify=false}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.211  WARN 18684 --- [           main] c.a.n.client.config.NacosConfigService   : [config_rpc_client] [get-config] get from server error, dataId=blade, group=DEFAULT_GROUP, tenant=, msg=ErrCode:-401, ErrMsg:Client not connected,current status:STARTING

2021-04-16 11:15:18.212  WARN 18684 --- [           main] c.a.n.client.config.NacosConfigService   : [config_rpc_client] [get-config] get snapshot ok, dataId=blade, group=DEFAULT_GROUP, tenant=, config=

2021-04-16 11:15:18.215  WARN 18684 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade] & group[DEFAULT_GROUP]

2021-04-16 11:15:18.321 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542918218, Client-RequestToken=df51b2c6836b930fd63d9ea920f67638, Timestamp=1618542918218, notify=false}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.423 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542918218, Client-RequestToken=df51b2c6836b930fd63d9ea920f67638, Timestamp=1618542918218, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.524 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542918218, Client-RequestToken=df51b2c6836b930fd63d9ea920f67638, Timestamp=1618542918218, notify=false}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.524  WARN 18684 --- [           main] c.a.n.client.config.NacosConfigService   : [config_rpc_client] [get-config] get from server error, dataId=blade.yaml, group=DEFAULT_GROUP, tenant=, msg=ErrCode:-401, ErrMsg:Client not connected,current status:STARTING

2021-04-16 11:15:18.525  WARN 18684 --- [           main] c.a.n.client.config.NacosConfigService   : [config_rpc_client] [get-config] get snapshot ok, dataId=blade.yaml, group=DEFAULT_GROUP, tenant=, config=

2021-04-16 11:15:18.525  WARN 18684 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade.yaml] & group[DEFAULT_GROUP]

2021-04-16 11:15:18.627 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542918526, Client-RequestToken=f4fcf0fa661c9cff90577ba5243c1b4e, Timestamp=1618542918526, notify=false}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.728 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542918526, Client-RequestToken=f4fcf0fa661c9cff90577ba5243c1b4e, Timestamp=1618542918526, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.828 ERROR 18684 --- [           main] com.alibaba.nacos.common.remote.client   : Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1618542918526, Client-RequestToken=f4fcf0fa661c9cff90577ba5243c1b4e, Timestamp=1618542918526, notify=false}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING

2021-04-16 11:15:18.829  WARN 18684 --- [           main] c.a.n.client.config.NacosConfigService   : [config_rpc_client] [get-config] get from server error, dataId=blade-dev.yaml, group=DEFAULT_GROUP, tenant=, msg=ErrCode:-401, ErrMsg:Client not connected,current status:STARTING

2021-04-16 11:15:18.829  WARN 18684 --- [           main] c.a.n.client.config.NacosConfigService   : [config_rpc_client] [get-config] get snapshot ok, dataId=blade-dev.yaml, group=DEFAULT_GROUP, tenant=, config=

2021-04-16 11:15:18.830  WARN 18684 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-dev.yaml] & group[DEFAULT_GROUP]

2021-04-16 11:15:18.831  INFO 18684 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-blade-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade,DEFAULT_GROUP'}]

2021-04-16 11:15:18.842  INFO 18684 --- [           main] org.springblade.auth.AuthApplication     : The following profiles are active: dev

2021-04-16 11:15:20.864  INFO 18684 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!

2021-04-16 11:15:20.870  INFO 18684 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.

2021-04-16 11:15:20.905  INFO 18684 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 12 ms. Found 0 Redis repository interfaces.

2021-04-16 11:15:21.302  INFO 18684 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=6f3d179b-e6cf-338c-a19c-3c00d3d8f06b

2021-04-16 11:15:22.206  INFO 18684 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-04-16 11:15:22.215  INFO 18684 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-04-16 11:15:22.669  WARN 18684 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used

2021-04-16 11:15:22.701  INFO 18684 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext

2021-04-16 11:15:22.702  INFO 18684 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3828 ms

2021-04-16 11:15:23.930  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] fail to connect server,after trying 1 times, last try server is {serverIp='192.168.188.133', server main port=8848},error=unknown

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

2021-04-16 11:15:25.050  INFO 18684 --- [           main] c.a.c.s.SentinelWebAutoConfiguration     : [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].

2021-04-16 11:15:25.113  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/error]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)

2021-04-16 11:15:25.113  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/oauth/refresh/{source}]}" onto org.springblade.auth.controller.SocialController#refreshAuth(String, String)

2021-04-16 11:15:25.113  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/swagger-resources/configuration/ui]}" onto springfox.documentation.swagger.web.ApiResourceController#uiConfiguration()

2021-04-16 11:15:25.114  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/oauth/render/{source}]}" onto org.springblade.auth.controller.SocialController#renderAuth(String, HttpServletResponse)

2021-04-16 11:15:25.114  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/error], produces [text/html]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml(HttpServletRequest, HttpServletResponse)

2021-04-16 11:15:25.114  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET [/captcha]}" onto org.springblade.auth.controller.AuthController#captcha()

2021-04-16 11:15:25.114  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/swagger-resources/configuration/security]}" onto springfox.documentation.swagger.web.ApiResourceController#securityConfiguration()

2021-04-16 11:15:25.114  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/swagger-resources]}" onto springfox.documentation.swagger.web.ApiResourceController#swaggerResources()

2021-04-16 11:15:25.115  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/oauth/revoke/{source}/{token}]}" onto org.springblade.auth.controller.SocialController#revokeAuth(String, String)

2021-04-16 11:15:25.115  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/oauth/callback/{source}]}" onto org.springblade.auth.controller.SocialController#login(String, AuthCallback)

2021-04-16 11:15:25.115  INFO 18684 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{POST [/token]}" onto org.springblade.auth.controller.AuthController#token(String, String, String, String, String)

2021-04-16 11:15:27.185  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] fail to connect server,after trying 2 times, last try server is {serverIp='192.168.188.133', server main port=8848},error=unknown

2021-04-16 11:15:27.272  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Property :null

2021-04-16 11:15:27.272  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Environment :null

2021-04-16 11:15:27.273  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Property :null

2021-04-16 11:15:27.331  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f]RpcClient init label, labels={module=naming, source=sdk}

2021-04-16 11:15:27.333  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f]RpcClient init, ServerListFactory =com.alibaba.nacos.client.naming.core.ServerListManager

2021-04-16 11:15:27.333  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f] Try to connect to server on start up, server: {serverIp='192.168.188.133', server main port=8848}

2021-04-16 11:15:30.338  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f] Try to connect to server on start up, server: {serverIp='192.168.188.133', server main port=8848}

2021-04-16 11:15:30.491  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] fail to connect server,after trying 3 times, last try server is {serverIp='192.168.188.133', server main port=8848},error=unknown

2021-04-16 11:15:33.342  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f] Try to connect to server on start up, server: {serverIp='192.168.188.133', server main port=8848}

2021-04-16 11:15:33.895  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] fail to connect server,after trying 4 times, last try server is {serverIp='192.168.188.133', server main port=8848},error=unknown

2021-04-16 11:15:36.346  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f] try to re connect to a new server ,server is  not appointed,will choose a random server.

2021-04-16 11:15:36.346  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler

2021-04-16 11:15:36.346  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$4

2021-04-16 11:15:36.347  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f]Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler

2021-04-16 11:15:36.348  INFO 18684 --- [           main] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f]Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcConnectionEventListener

2021-04-16 11:15:36.620  INFO 18684 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'

2021-04-16 11:15:36.783  WARN 18684 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2021-04-16 11:15:36.783  INFO 18684 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2021-04-16 11:15:36.792  WARN 18684 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2021-04-16 11:15:36.792  INFO 18684 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2021-04-16 11:15:36.973  INFO 18684 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'

2021-04-16 11:15:37.354  INFO 18684 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'Nacos-Watch-Task-Scheduler'

2021-04-16 11:15:37.401  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [config-0-7ecf70c9-16f1-4067-b7c2-ee717ecad853] fail to connect server,after trying 5 times, last try server is {serverIp='192.168.188.133', server main port=8848},error=unknown

2021-04-16 11:15:38.965  INFO 18684 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : Inconsistent constructor declaration on bean with name 'org.springblade.core.launch.server.ServerInfo': single autowire-marked constructor flagged as optional - this constructor is effectively required since there is no default constructor to fall back to: public org.springblade.core.launch.server.ServerInfo(org.springframework.boot.autoconfigure.web.ServerProperties)

2021-04-16 11:15:39.021  INFO 18684 --- [           main] o.s.core.log.logger.BladeLogger          : blade-auth: BladeLogger init success!

2021-04-16 11:15:39.335  INFO 18684 --- [           main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2ControllerWebMvc#getDocumentation(String, HttpServletRequest)]

2021-04-16 11:15:39.388  WARN 18684 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springblade.core.swagger.SwaggerAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

2021-04-16 11:15:39.388  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin

2021-04-16 11:15:39.388  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin

2021-04-16 11:15:39.389  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin

2021-04-16 11:15:39.390  WARN 18684 --- [           main] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Start destroying NacosRestTemplate

2021-04-16 11:15:39.390  WARN 18684 --- [           main] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Destruction of the end

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown begin

2021-04-16 11:15:39.390  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown stop

2021-04-16 11:15:39.390  WARN 18684 --- [           main] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Start destroying NacosRestTemplate

2021-04-16 11:15:39.390  WARN 18684 --- [           main] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Destruction of the end

2021-04-16 11:15:39.391  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop

2021-04-16 11:15:39.392  INFO 18684 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop

2021-04-16 11:15:39.393  INFO 18684 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'

2021-04-16 11:15:39.455  INFO 18684 --- [           main] ConditionEvaluationReportLoggingListener : 


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2021-04-16 11:15:39.457  INFO 18684 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [65b4c23c-4d72-473a-9f59-91f522f73a9f] Client is shutdown ,stop reconnect to server

2021-04-16 11:15:39.506 ERROR 18684 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Parameter 0 of constructor in org.springblade.core.swagger.SwaggerAutoConfiguration required a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' that could not be found.



Action:


Consider defining a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' in your configuration.


2021-04-16 11:15:40.439  WARN 18684 --- [      Thread-11] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Start destroying Publisher

2021-04-16 11:15:40.439  WARN 18684 --- [       Thread-2] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Start destroying common HttpClient

2021-04-16 11:15:40.440  WARN 18684 --- [      Thread-11] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Destruction of the end

2021-04-16 11:15:40.441  WARN 18684 --- [       Thread-2] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Destruction of the end

Disconnected from the target VM, address: '127.0.0.1:54936', transport: 'socket'


Process finished with exit code 1


五、若有更多详细信息,请在下面提供。

1条回答
  • 2021-04-16 14:33

    https://sns.bladex.cn/q-4230.html


    作者追问:2021-04-16 14:37

    已经照着回答过的...挨个核实了
    1.文件名字没问题

    2.nacos版本1.3 数据库版本8.0
    3.文件内容如下 ,直接粘贴过来的

    #服务器配置

    server:

      undertow:

        # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理

        buffer-size: 1024

        # 是否分配的直接内存

        direct-buffers: true

        # 线程配置

        threads:

          # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程

          io: 16

          # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载

          worker: 400


    #spring配置

    spring:

      cloud:

        sentinel:

          eager: true

      devtools:

        restart:

          log-condition-evaluation-delta: false

        livereload:

          port: 23333


    #feign配置

    feign:

      sentinel:

        enabled: true

      okhttp:

        enabled: true

      httpclient:

        enabled: false


    #对外暴露端口

    management:

      endpoints:

        web:

          exposure:

            include: "*"

      endpoint:

        health:

          show-details: always


    #knife4j配置

    knife4j:

      #启用

      enable: true

      #基础认证

      basic:

        enable: false

        username: blade

        password: blade

      #增强配置

      setting:

        enableSwaggerModels: true

        enableDocumentManage: true

        enableHost: false

        enableHostText: http://localhost

        enableRequestCache: true

        enableFilterMultipartApis: false

        enableFilterMultipartApiMethodType: POST

        language: zh-CN

        enableFooter: false

        enableFooterCustom: true

        footerCustomContent: Copyright © 2021 SpringBlade All Rights Reserved


    #swagger配置信息

    swagger:

      title: SpringBlade 接口文档系统

      description: SpringBlade 接口文档系统

      version: 3.0.2

      license: Powered By SpringBlade

      licenseUrl: https://bladex.cn

      terms-of-service-url: https://bladex.cn

      contact:

        name: smallchill

        email: smallchill@163.com

        url: https://gitee.com/smallc


    #blade配置

    blade:

      xss:

        enabled: true

        skip-url:

          - /weixin

      secure:

        skip-url:

          - /test/**

        client:

          - client-id: sword

            path-patterns:

              - /sword/**

          - client-id: saber

            path-patterns:

              - /saber/**

      tenant:

        column: tenant_id

        tables:

          - blade_notice



    0 讨论(0)
提交回复