Redis (error) NOAUTH Authentication required
Solution 1
Setting the requirepass
configuration directive causes the server to require password authentication with the AUTH
command before sending other commands. The redis.conf file states that clearly:
Require clients to issue AUTH before processing any other
commands. This might be useful in environments in which you do not trust
others with access to the host running redis-server.
Solution 2
1. redis-cli
2. auth yourpassword
3. shutdown
4. sudo service redis_6379 start
Solution 3
first run
redis-cli
then after the prompt run
127.0.0.1:6379> AUTH your_password
if all ok you get the OK
Solution 4
- Make sure you have redis-cli installed.
Just use following command.
redis-cli -h host.domain.com -p port -a yourpassword
Solution 5
comment requirepass (line 480 mostly) in redis.conf file if uncommented.
Related videos on Youtube

Comments
-
Karl Morrison 3 months
I get the error:
(error) NOAUTH Authentication required.
When in
redis-cli
and trying to display theKEYS *
. I've only set arequirepass
not anauth
afaiac. I'm in theredis.conf
but do not know what to do. -
Edd almost 4 yearsSimple, concise, and to the point!
-
serge over 3 yearsso, what are the exact steps to fix the problem?
-
Alex Stewart over 2 yearsUsually have a password for security, probably best to provide a solution than enables the ability to put in the password
-
Karl Morrison over 2 years@Serge Uh... you comment the requirepass part in the redis.conf file?