sorry,i am not good in english,i have a redis cluster with three master and three slave , when i use the cluster setslot <slot> migrating node_id command to move the slot . it no response ,but the command tell me OK ,the following message like this

48befd0ca3329674c34e3e09c8fe6bd605d106f2 192.168.208.31:6380 master - 0 1490531163209 2 connected 10923-16383
061e793d4fa617fbe6b61b696c81a9581e8f27a2 192.168.208.32:6383 slave ac203083bc512bdc1dc50f8007e62107cddfc751 0 1490531165214 5 connected
dad2b4ac1851e18cc9760cf8a827399264d3f785 192.168.208.31:6381 slave 610395f218567298a06cbc8f6474e0f484ee2931 0 1490531166216 4 connected
610395f218567298a06cbc8f6474e0f484ee2931 192.168.208.32:6382 master - 0 1490531164212 4 connected 5461-10922
27a1ef3d24f303acb2a6cfcb4e7b38e4edca0893 192.168.208.32:6384 slave 48befd0ca3329674c34e3e09c8fe6bd605d106f2 0 1490531162207 6 connected
ac203083bc512bdc1dc50f8007e62107cddfc751 192.168.208.31:6379 myself,master - 0 0 1 connected 0-5460 [1->-76431f5d38e3a56e8a1c372d4387a93591585a6c]
76431f5d38e3a56e8a1c372d4387a93591585a6c 192.168.208.32:6385 master - 0 1490531161204 0 connected

it tell us ac203083bc512bdc1dc50f8007e62107cddfc751 192.168.208.31:6379 myself,master - 0 0 1 connected 0-5460 [1->-76431f5d38e3a56e8a1c372d4387a93591585a6c] , long time ,it not success! ,do not move to the node that on port 6385, and i do not konw why have the ·-· in the node_id~! my redis version is redis_version:3.2.8

Comment From: spccold

cluster setslot <slot> migrating node_id just set the migrating status, you need use migrate command, cluster-setslot give a detail description

Comment From: liuwenru

thinks for your answer,but when i use the migrating to move the key , it tell us 192.168.208.31:6379> MIGRATE 192.168.208.32 6385 "foo" 0 1000 REPLACE -> Redirected to slot [12182] located at 192.168.208.32:6384 (error) ERR Target instance replied with error: NOAUTH Authentication required. i have already use the -a option with the password, thinks.....

Comment From: badboy

MIGRATE does not support authentication. There is no other way than to disable it

Comment From: liuwenru

thinks for all the pople that help me, i can move it , but how can i MIGRATE date with the cluster node that use password?

Comment From: badboy

You can't.

You could try to work around it by manually issuing DUMP, connect to the receiving instance and call RESTORE. This has to happen from your client.

Comment From: liuwenru

ok, when i create a cluster , can i set the node id,because i want use it in docker, thinks!

Comment From: badboy

No, the Node ID is randomly chosen at start. There's no (safe) way to pre-generate it.

Comment From: kd-devops

Just wanted to cross check, weather authentication issue (Error: NOAUTH) with Migrate has been fixed or its still have same issue.

I am using redis-4.0.6 with redis-trib-pass.rb and still facing issue while doing redis-trib-pass.rb reshard

[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

Weird thing is, this error only comes when cluster nodes has keys ...for empty slots (slots with no key) resharding works fine.

Any suggestion please ?

Comment From: zuiderkwast

This issue is about migrate with auth, so it's a duplicate of #3508.