redis / redis-rb

A Ruby client library for Redis
MIT License
3.96k stars 1.03k forks source link

Unable to create redis cluster #1252

Closed nkroker closed 7 months ago

nkroker commented 7 months ago

After upgrading to redis-5 I'm unable to create the redis cluster

[14] pry(main)> Redis::Cluster.new(nodes: ["redis://redishost:6379"])
Redis::Cluster::InitialSetupError: Redis client could not fetch cluster information: ERR This instance has cluster support disabled
from /usr/local/bundle/gems/redis-cluster-client-0.7.5/lib/redis_client/cluster/node.rb:133:in `load_info'
Caused by RedisClient::Cluster::InitialSetupError: Redis client could not fetch cluster information: ERR This instance has cluster support disabled
from /usr/local/bundle/gems/redis-cluster-client-0.7.5/lib/redis_client/cluster/node.rb:133:in `load_info'

But when I create a Redis instance It works only the clustering is not working

[1] pry(main)> Redis.new(url: "redis://redishost:6379").ping
=> "PONG"

I've followed this readme file https://github.com/redis/redis-rb/blob/master/cluster/README.md

byroot commented 7 months ago

ERR This instance has cluster support disabled

This is a server error, likely has nothing to do with the gem or you upgrading.