redis-om-python icon indicating copy to clipboard operation
redis-om-python copied to clipboard

Redis cluster Migrator not working

Open noonenene opened this issue 1 year ago • 1 comments

from redis.cluster import RedisCluster as Redis
redis_userdb = Redis(host='xxx.yyy.zzz.xx', port=xxxx, password='password)
print(redis_userdb.get_nodes())

I able to write data on all cluster node without any issue but not able to run Migrator().run()

print(Users.get("user1"))
Migrator().run()
ResponseError: Unknown Index name
Traceback (most recent call last):
  File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/cluster.py", line 1074, in _execute_command
    response = redis_node.parse_response(connection, command, **kwargs)
  File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/client.py", line 1254, in parse_response
    response = connection.read_response()
  File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/connection.py", line 839, in read_response
    raise response
redis.exceptions.ResponseError: Unknown Index name
MovedError
Traceback (most recent call last):
  File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/cluster.py", line 1074, in _execute_command
    response = redis_node.parse_response(connection, command, **kwargs)
  File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/client.py", line 1254, in parse_response
    response = connection.read_response()
  File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/connection.py", line 839, in read_response
    raise response
redis.exceptions.MovedError: 13099

noonenene avatar Oct 26 '22 11:10 noonenene