本地调试无法连接nacos

发布于 2021-06-06 16:23:33

错误信息:

2021-06-06 16:06:53 INFO  yshop-mall main org.reflections.Reflections Reflections took 34 ms to scan 1 urls, producing 2 keys and 8 values 

2021-06-06 16:06:54 INFO  yshop-mall main org.reflections.Reflections Reflections took 1007 ms to scan 280 urls, producing 0 keys and 0 values 

2021-06-06 16:06:54 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434]RpcClient init label, labels={module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown}

2021-06-06 16:06:54 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$313/1147943200

2021-06-06 16:06:54 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$314/783218541

2021-06-06 16:06:54 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434]Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1

2021-06-06 16:06:54 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434]RpcClient init, ServerListFactory =com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2

2021-06-06 16:06:54 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] Try to connect to server on start up, server: {serverIp='127.0.0.1', server main port=8848}

2021-06-06 16:06:59 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] Try to connect to server on start up, server: {serverIp='127.0.0.1', server main port=8848}

2021-06-06 16:07:01 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] Try to connect to server on start up, server: {serverIp='127.0.0.1', server main port=8848}

2021-06-06 16:07:02 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] try to re connect to a new server ,server is  not appointed,will choose a random server.

2021-06-06 16:07:02 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler

2021-06-06 16:07:02 INFO  yshop-mall main com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$4

2021-06-06 16:07:02 INFO  yshop-mall main com.alibaba.nacos.client.config.impl.Limiter limitTime:5.0

2021-06-06 16:07:02 ERROR yshop-mall main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1622966822108, Client-RequestToken=18b6c4fdb13dbd01eae22069d1b8e236, Timestamp=1622966822111, notify=false}, requestId='null'}, retryTimes=0,errorMessage=Client not connected,current status:STARTING

2021-06-06 16:07:02 ERROR yshop-mall main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1622966822108, Client-RequestToken=18b6c4fdb13dbd01eae22069d1b8e236, Timestamp=1622966822111, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

2021-06-06 16:07:02 ERROR yshop-mall main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1622966822108, Client-RequestToken=18b6c4fdb13dbd01eae22069d1b8e236, Timestamp=1622966822111, notify=false}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING

2021-06-06 16:07:02 WARN  yshop-mall main com.alibaba.nacos.client.config.NacosConfigService [config_rpc_client] [get-config] get from server error, dataId=application-dev.yml, group=DEFAULT_GROUP, tenant=, msg=ErrCode:-401, ErrMsg:Client not connected,current status:STARTING

2021-06-06 16:07:02 WARN  yshop-mall main com.alibaba.nacos.client.config.NacosConfigService [config_rpc_client] [get-config] get snapshot ok, dataId=application-dev.yml, group=DEFAULT_GROUP, tenant=, config=

2021-06-06 16:07:02 WARN  yshop-mall main com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]

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

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

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

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

2021-06-06 16:07:02 WARN  yshop-mall main com.alibaba.nacos.client.config.NacosConfigService [config_rpc_client] [get-config] get snapshot ok, dataId=yshop-mall, group=DEFAULT_GROUP, tenant=, config=

2021-06-06 16:07:02 WARN  yshop-mall main com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder Ignore the empty nacos configuration and get it based on dataId[yshop-mall] & group[DEFAULT_GROUP]

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

2021-06-06 16:07:03 ERROR yshop-mall main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1622966822942, Client-RequestToken=958c7c2c85bf8ff7ec78fd340eaf9730, Timestamp=1622966822942, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

2021-06-06 16:07:03 ERROR yshop-mall main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1622966822942, Client-RequestToken=958c7c2c85bf8ff7ec78fd340eaf9730, Timestamp=1622966822942, notify=false}, requestId='null'}, retryTimes=2,errorMessage=Client not connected,current status:STARTING

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

2021-06-06 16:07:03 WARN  yshop-mall main com.alibaba.nacos.client.config.NacosConfigService [config_rpc_client] [get-config] get snapshot ok, dataId=yshop-mall.yml, group=DEFAULT_GROUP, tenant=, config=

2021-06-06 16:07:03 WARN  yshop-mall main com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder Ignore the empty nacos configuration and get it based on dataId[yshop-mall.yml] & group[DEFAULT_GROUP]

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

2021-06-06 16:07:03 ERROR yshop-mall main com.alibaba.nacos.common.remote.client Send request fail, request=ConfigQueryRequest{headers={charset=UTF-8, exConfigInfo=true, Client-AppName=unknown, Client-RequestTS=1622966823249, Client-RequestToken=2d1963f1cfca21e104acfb5b50d5c98e, Timestamp=1622966823249, notify=false}, requestId='null'}, retryTimes=1,errorMessage=Client not connected,current status:STARTING

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

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

2021-06-06 16:07:03 WARN  yshop-mall main com.alibaba.nacos.client.config.NacosConfigService [config_rpc_client] [get-config] get snapshot ok, dataId=yshop-mall-dev.yml, group=DEFAULT_GROUP, tenant=, config=

2021-06-06 16:07:03 WARN  yshop-mall main com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder Ignore the empty nacos configuration and get it based on dataId[yshop-mall-dev.yml] & group[DEFAULT_GROUP]

2021-06-06 16:07:03 INFO  yshop-mall main co.yixiang.mall.biz.YshopMallApplication The following profiles are active: dev

2021-06-06 16:07:04 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] fail to connect server,after trying 1 times, last try server is {serverIp='127.0.0.1', server main port=8848},error=unknown

2021-06-06 16:07:05 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] fail to connect server,after trying 2 times, last try server is {serverIp='127.0.0.1', server main port=8848},error=unknown

2021-06-06 16:07:06 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] fail to connect server,after trying 3 times, last try server is {serverIp='127.0.0.1', server main port=8848},error=unknown

2021-06-06 16:07:08 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] fail to connect server,after trying 4 times, last try server is {serverIp='127.0.0.1', server main port=8848},error=unknown

2021-06-06 16:07:09 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] fail to connect server,after trying 5 times, last try server is {serverIp='127.0.0.1', server main port=8848},error=unknown

2021-06-06 16:07:11 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] fail to connect server,after trying 6 times, last try server is {serverIp='127.0.0.1', server main port=8848},error=unknown

2021-06-06 16:07:12 INFO  yshop-mall main io.seata.spring.boot.autoconfigure.SeataAutoConfiguration Automatically configure Seata

2021-06-06 16:07:12 INFO  yshop-mall main io.seata.config.FileConfiguration The file name of the operation is registry

2021-06-06 16:07:12 INFO  yshop-mall main io.seata.config.ConfigurationFactory load Configuration:FileConfiguration$$EnhancerByCGLIB$$862af1eb

2021-06-06 16:07:12 INFO  yshop-mall main io.seata.config.FileConfiguration The file name of the operation is file.conf

2021-06-06 16:07:12 INFO  yshop-mall main io.seata.config.ConfigurationFactory load Configuration:FileConfiguration$$EnhancerByCGLIB$$862af1eb

2021-06-06 16:07:12 INFO  yshop-mall main io.seata.spring.annotation.GlobalTransactionScanner Initializing Global Transaction Clients ... 

2021-06-06 16:07:12 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] fail to connect server,after trying 7 times, last try server is {serverIp='127.0.0.1', server main port=8848},error=unknown

2021-06-06 16:07:12 INFO  yshop-mall main io.seata.core.rpc.netty.NettyClientBootstrap NettyClientBootstrap has started

2021-06-06 16:07:12 INFO  yshop-mall main io.seata.spring.annotation.GlobalTransactionScanner Transaction Manager Client is initialized. applicationId[yshop-mall] txServiceGroup[yshop-mall-seata-service-group]

2021-06-06 16:07:13 INFO  yshop-mall main io.seata.rm.datasource.AsyncWorker Async Commit Buffer Limit: 10000

2021-06-06 16:07:13 INFO  yshop-mall main io.seata.rm.datasource.xa.ResourceManagerXA ResourceManagerXA init ...

2021-06-06 16:07:13 INFO  yshop-mall main io.seata.core.rpc.netty.NettyClientBootstrap NettyClientBootstrap has started

2021-06-06 16:07:13 INFO  yshop-mall main io.seata.spring.annotation.GlobalTransactionScanner Resource Manager is initialized. applicationId[yshop-mall] txServiceGroup[yshop-mall-seata-service-group]

2021-06-06 16:07:13 INFO  yshop-mall main io.seata.spring.annotation.GlobalTransactionScanner Global Transaction Clients are initialized. 

2021-06-06 16:07:14 INFO  yshop-mall com.alibaba.nacos.client.remote.worker com.alibaba.nacos.common.remote.client [config-0-3cc036d0-bf18-4ac3-81e7-4497ddfd7434] fail to connect server,after trying 8 times, last try server is {serverIp='127.0.0.1', server main port=8848},error=unknown

2021-06-06 16:07:14 INFO  yshop-mall main org.apache.coyote.http11.Http11NioProtocol Initializing ProtocolHandler ["http-nio-9202"]

2021-06-06 16:07:14 INFO  yshop-mall main org.apache.catalina.core.StandardService Starting service [Tomcat]

2021-06-06 16:07:14 INFO  yshop-mall main org.apache.catalina.core.StandardEngine Starting Servlet engine: [Apache Tomcat/9.0.44]

2021-06-06 16:07:15 INFO  yshop-mall main org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] Initializing Spring embedded WebApplicationContext

2021-06-06 16:07:15 WARN  yshop-mall main org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'storeBargainController' defined in file [D:\Project\haoran\xuzhi\yshop-clould-v1.2\yshop-clould-v1.2\yshop-mall\yshop-mall-biz\target\classes\co\yixiang\mall\biz\activity\controller\StoreBargainController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'yxStoreBargainServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'yxStoreBargainMapper' defined in file [D:\Project\haoran\xuzhi\yshop-clould-v1.2\yshop-clould-v1.2\yshop-mall\yshop-mall-biz\target\classes\co\yixiang\mall\biz\activity\mapper\YxStoreBargainMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class\]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.zaxxer.hikari.HikariDataSource\]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

2021-06-06 16:07:16 INFO  yshop-mall main org.apache.catalina.core.StandardService Stopping service [Tomcat]

2021-06-06 16:07:16 ERROR yshop-mall main org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter 

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

APPLICATION FAILED TO START

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

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class

Action:

Consider the following:

If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

If you have database settings to be loaded from a particular profile you may need to activate it (the profiles dev are currently active).

2021-06-06 16:07:16 WARN  yshop-mall Thread-12 com.alibaba.nacos.common.http.HttpClientBeanHolder [HttpClientBeanHolder] Start destroying common HttpClient

2021-06-06 16:07:16 WARN  yshop-mall Thread-12 com.alibaba.nacos.common.http.HttpClientBeanHolder [HttpClientBeanHolder] Destruction of the end

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

查看更多

关注者
0
被浏览
2.9k
2 个回答
YSHOP技术服务-二开/定制
提供YHSOP二次开发、问题修复、实施部署等技术服务;专业团队、耐心负责、靠谱售后。Tel/WeChat:18612982783

nacos配置:

management:  health:    rabbit:      enabled: false# Tomcatserver:  port: 9202# Springspring:  application:    # 应用名称    name: yshop-mall  profiles:    # 环境配置    active: dev  cloud:    nacos:      discovery:        # 服务注册地址        server-addr: 127.0.0.1:8848      config:        # 配置中心地址        server-addr: ${spring.cloud.nacos.discovery.server-addr}        # 配置文件格式        file-extension: yml        # 共享配置        shared-configs:          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}    stream:      binders:        yshop-rabbit-binder:          type: rabbit          environment:            spring:              rabbitmq:                host: 127.0.0.1                port: 5672                username: admin                password: xuzhimall@123                virtual-host: /  main:    allow-bean-definition-overriding: true
yshop-技术1
yshop-技术1 认证专家 2021-06-06
这家伙很懒,什么也没写!

nacos启动了吗?

撰写答案

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

发布
问题

分享
好友

手机
浏览

扫码手机浏览