当前位置: 首页 > news >正文

ruoyi-cloud启动常见问题处理

1:启动ruoyi-auth或其他任意模块提示nacos无法连接

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

解决办法:

<spring-cloud-alibaba.version>2021.0.5.0</spring-cloud-alibaba.version>

修改为:

<spring-cloud-alibaba.version>2021.0.1.0</spring-cloud-alibaba.version>

pom.xml重新引入后再启动

2:启动ruoyi-system时提示错误:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'captchaController': Unsatisfied dependency expressed through field 'configService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysConfigServiceImpl': Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to

原因:redis无法连接导致

解决办法:核对redis的ip和端口号,密码信息是否正确

3:redis信息设置正确,ruoyi-system启动提示类似如下信息

nested exception is org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MOVED 15592 10.10.10.18:8003

原因:

  • OVED 15592 10.21.1.189:8003是Redis集群的标准响应
  • 表示你尝试操作的key(槽位15592)实际位于节点10.21.1.189:8003上
  • 客户端没有正确处理集群重定向

解决办法:

配置集群模式(推荐)

spring:redis:host: 10.21.1.189port: 8001lettuce:cluster:refresh:adaptive: truepool:max-active: 8

http://www.dtcms.com/a/285226.html

相关文章:

  • set、map 比数组,json 对象的性能更好原因分析
  • Python元组(Tuple)指南
  • [RAG system] 信息检索器 | BM25 Vector | Pickle格式 | HybridRetriever重排序
  • 教资科三【信息技术】— 学科知识: 第二章(计算机系统基础)
  • 【程序地址空间】虚拟地址与页表转化
  • 自己训练大模型?MiniMind 全流程解析 (二) 监督微调SFT
  • 【Bluedroid】A2dp Sink初始化(init_sink)源码分析[2]:btif_a2dp_sink_init
  • JAVA几个注解记录
  • 【Spring AI Alibaba实战Demo】通过Spring AI Alibaba接入本地部署的大模型和线上大模型,实现流式简单对话
  • Ubuntu FTP服务搭建与配置
  • Product Hunt 每日热榜 | 2025-07-17
  • druid连接池
  • Xss-labs 靶场lever1~lever8通关练习
  • 第12章 存储类、链接和内存管理
  • window下 wsl 下怎么配置 kimi-k2 驱动 Claude Code
  • 网络通信原理
  • 订货系统能接金蝶吗是什么?
  • FreeRTOS—中断管理
  • 一文学会c++vector
  • Web前端:JavaScript鼠标事件
  • 实习十二——协议分层
  • pytorch小记(三十一):深入解析 PyTorch 权重初始化:`xavier_normal_` 与 `constant_`
  • 基于selenium的pyse自动化测试框架
  • MyUI1.0全新现代化 Vue.js 组件库框架上线
  • CAD断层扫描三维重建插件
  • ubuntu启用ssh
  • HD现代机器人与TESOLLO合作推出工业自动化双臂机器人解决方案
  • 控制台输出的JAVA格斗小游戏-面向对象
  • properties中文乱码
  • 细菌实验入门:浓度测定与菌种鉴定技术详解