redis slot allocation failed: redis error message: (error) NOAUTH Authentication required.

table of Contents

 

surroundings

problem:

Processes and solutions

to sum up:

1, after exiting redis-cli, execute the command. Do not use the CLUSTER ADDSLOTS allocation signed in

2, the slot number range 1000 ... {2000} and {} which is two points, three points are not. } {1000..2000

3, set up a password, the command is executed, it is necessary to bring the password parameters:


surroundings

CentOS version: CentOS 7 Minimal (7.7.1908)

Redis version: redis-5.0.7

problem:

redis slot allocation fails, prompt: (error) ERR Invalid or out of range slot

Or Tip: (error) NOAUTH Authentication required.

Processes and solutions

redis-cli add an error with the CLUSTER ADDSLOTS command signed in:

[root@admin131 bin]# redis-cli -p 7002 -h 192.168.42.131 -c -a 123456
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
192.168.42.131:7002> CLUSTER ADDSLOTS {10923...16383}
(error) ERR Invalid or out of range slot
192.168.42.131:7002> CLUSTER ADDSLOTS {10923..16383}
(error) ERR Invalid or out of range slot

Exit redis-clli. Then execute.

192.168.42.131:7002> quit
[root@admin131 bin]# redis-cli -h 192.168.42.131 -p 7002 cluster addslots {10923..16383}
(error) NOAUTH Authentication required.

Tip Error: (error) NOAUTH Authentication required.

redis.conf configuration files because the password is set, it is necessary to bring the password parameters:

redis-cli -h 192.168.42.131 -p 7002 -a 123456 cluster addslots {10923..16383}

View cluster nodes circumstances:

192.168.42.131:7002> cluster nodes

It has been assigned to the normal slot.

to sum up:

1, after exiting redis-cli, execute the command. Do not use the CLUSTER ADDSLOTS allocation signed in

2, the range of the slot number {1000 ... 2000} , the {} which is two points, three points are not. } {1000..2000

3, set up a password, the command is executed, it is necessary to bring the password parameters:

redis-cli -h 192.168.42.131 -p 7002 -a xxxxxx (password set in the redis.conf) cluster addslots {10923..16383}
 

 

 

发布了12 篇原创文章 · 获赞 4 · 访问量 2万+

Guess you like

Origin blog.csdn.net/qinzaoxiaozhu/article/details/104250045