Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedisClusterSlotInfo Initialization Failure in Camellia Redis Proxy #352

Open
TZ1414 opened this issue Nov 12, 2024 · 4 comments
Open

RedisClusterSlotInfo Initialization Failure in Camellia Redis Proxy #352

TZ1414 opened this issue Nov 12, 2024 · 4 comments
Labels
question Further information is requested

Comments

@TZ1414
Copy link

TZ1414 commented Nov 12, 2024

在将 Camellia Redis Proxy 配置为连接到 Redis 集群并启动应用程序时,RedisClusterSlotInfo 的初始化过程出现错误。应用程序启动失败,版本:v1.2.30,使用安装包部署

@TZ1414 TZ1414 added the question Further information is requested label Nov 12, 2024
@TZ1414
Copy link
Author

TZ1414 commented Nov 12, 2024

报错信息:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisProxyBoot' defined in class path resource [com/netease/nim/camellia/redis/proxy/springboot/CamelliaRedisProxyConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netease.nim.camellia/redis/proxy/springboot.CamelliaRedisProxyBoot]: Factory method 'redisProxyBoot' threw exception; nested exception is com.netease.nim.camellia.redis.base.exception.CamelliaRedisException: RedisClusterSlotInfo init fail, resource = redis-cluster://@xx.xx.xx.xx:7000,xx.xx.xx.xx:7001,xx.xx.xx.xx:7000,xx.xx.xx.xx:7001,xx.xx.xx.xx:7000,xx.xx.xx.xx:7001

配置文件:

camellia-redis-proxy:
  transpond:
    type: local
    local:
      type: simple
      resource: redis-cluster://@xx.xx.xx.xx:7000,xx.xx.xx.xx:7001,xx.xx.xx.xx:7000,xx.xx.xx.xx:7001,xx.xx.xx.xx:7000,xx.xx.xx.xx:7001

@caojiajun
Copy link
Collaborator

需要提供更详细的异常堆栈,看看为啥初始化失败了

@TZ1414
Copy link
Author

TZ1414 commented Nov 12, 2024

需要提供更详细的异常堆栈,看看啥初始化失败了

看了下最上面的报错,提示密码错误,我需要在redis-cluster://@xx.xx.xx.xx:7000这里填上密码,谢谢,已经解决了

@caojiajun
Copy link
Collaborator

ok,欢迎加入微信技术交流群~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants