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

Redis cluster Migrator not working #408

Open
noonenene opened this issue Oct 26, 2022 · 1 comment · May be fixed by #550
Open

Redis cluster Migrator not working #408

noonenene opened this issue Oct 26, 2022 · 1 comment · May be fixed by #550

Comments

@noonenene
Copy link

noonenene commented Oct 26, 2022

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 noonenene changed the title Redis cluster Redis cluster Migrator not workin Oct 26, 2022
@noonenene noonenene changed the title Redis cluster Migrator not workin Redis cluster Migrator not working Oct 26, 2022
@msarm
Copy link

msarm commented Nov 24, 2022

In the Version 0.1.0, the below change was made and causing this issue.
image

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

Successfully merging a pull request may close this issue.

2 participants