一、该问题的重现步骤是什么?
1. 启动./deploy modules 启动服务失败,提示连接不上nacos
2. 已经打开了服务器端口。也看了之前的帖子:https://sns.bladex.cn/q-11958.html
3.ping 服务器地址和端口也能通
4.docker-compose中的配置
5.conf中application.properties的配置
二、你期待的结果是什么?实际看到的又是什么?
可以正常启动服务,注册nacos
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
bladex
4.1.0
openEuler
四、请提供详细的错误堆栈信息,这很重要。
2024-08-28 14:05:54.076 INFO 1 --- [eate-1901405112] c.a.druid.pool.DruidAbstractDataSource : {dataSource-1} failContinuous is true
2024-08-28 14:05:54.077 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logClient' defined in URL [jar:nested:/blade/log/app.jar/!BOOT-INF/classes/!/org/springblade/core/log/feign/LogClient.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'logUsualServiceImpl': Unsatisfied dependency expressed through field 'baseMapper': Error creating bean with name 'logUsualMapper' defined in URL [jar:nested:/blade/log/app.jar/!BOOT-INF/classes/!/org/springblade/core/log/mapper/LogUsualMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': 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: Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceAutoConfigure.class]: connect error, url ${blade.datasource.test.url}, driverClass com.mysql.cj.jdbc.Driver
2024-08-28 14:15:55.537 INFO 1 --- [kground-preinit] o.h.validator.internal.util.Version : HV000001: Hibernate Validator 8.0.1.Final
2024-08-28 14:15:56.257 ERROR 1 --- [ main] c.a.n.c.a.i.process.HttpLoginProcessor : [NacosClientAuthServiceImpl] login http request failed url: http://172.30.0.48:8848/nacos/v1/auth/users/login, params: {username=nacos}, bodyMap: {password=******}, errorMsg: Host is unreachable
______ _ _ ___ ___
| ___ \| | | | \ \ / /
| |_/ /| | __ _ __| | ___ \ V /
| ___ \| | / _` | / _` | / _ \ > <
| |_/ /| || (_| || (_| || __/ / . \
\____/ |_| \__,_| \__,_| \___|/__/ \__\
:: BladeX 4.1.0.RELEASE :: blade-log:test :: Running SpringBoot 3.2.7 ::
2024-08-28 14:15:56.970 ERROR 1 --- [ main] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server 172.30.0.48 ,port 9848 is available , error ={}
java.util.concurrent.ExecutionException: com.alibaba.nacos.shaded.io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:592)
at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:467)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.serverCheck(GrpcClient.java:243)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:367)
at com.alibaba.nacos.common.remote.client.RpcClient.start(RpcClient.java:349)
at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.ensureRpcClient(ClientWorker.java:1100)
at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.getOneRunningClient(ClientWorker.java:1248)
at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.queryConfig(ClientWorker.java:1146)
at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:472)
at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:188)
at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:99)
at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.loadNacosData(NacosPropertySourceBuilder.java:89)
at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.build(NacosPropertySourceBuilder.java:74)
at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosPropertySource(NacosPropertySourceLocator.java:199)
at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosDataIfPresent(NacosPro
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端