I am trying to scale up running redis cluster with auth.

I am using redis-4.0.6 , redis gem version 3.3.3 and redis-trib-pass.rb.

Facing following issue while executing redis-trib-pass.rb reshard , after adding new node in cluster using redis-trib-pass.rb add-node.

[ERR] Calling MIGRATE: ERR Target instance replied with error: NOAUTH Authentication required.

I am passing password using auth flag:

Command Executed :

redis-trib-pass.rb reshard --auth host:ip

This error only comes when cluster slots has key ...for empty slots resharding works fine with auth. E.g: Following slots doesn't have any keys (empty slots and moved successfully)

Moving slot 10952 from f3ecca35a6423926555d5f6f9270XXXXXX Moving slot 10953 from f3ecca35a6423926555d5f6f9270XXXXXX Moving slot 10954 from f3ecca35a6423926555d5f6f9dfgXXXXXX Moving slot 10955 from f3ecca35a6423926555d5f6fgggtXXXXXX

Failed at slot 5463, as it contain key

Moving slot 5463 from to [ERR] Calling MIGRATE: ERR Target instance replied with error: NOAUTH Authentication required.

I have seen couple of relevant open issues, which says Migrate command doesn't support auth , but is that something specific for only those slot migration which has key or its common.

Need guidance please.

Thanks

Comment From: trevor211

You can try redis-cli with --cluster option.