First ensure that the entered password for your Redis instance is correct. You can reset or change the password through the console if necessary.
If you are sure that the password is correct but a message indicating incorrect password is reported when you connect a client to ApsaraDB for Redis, check whether the authentication information is in correct format. The authentication information for ApsaraDB for Redis includes both the instance ID and password in the
instanceID:password format. Check whether the authentication information is complete in the program.
For example, the correct authentication information for the Java code is as follows:
Jedis jedis = new Jedis(host, port);//The authentication information is composed of the instance ID and password in the jedis.auth (“instance_ID:password”) format;
If you enter only the password in the authentication information as follows:
Jedis jedis = new Jedis(host, port);//The instance ID is missing in the authentication information jedis.auth (“password”);//Error
Then the following error information is reported when you connect a client to ApsaraDB for Redis:
redis.clients.jedis.exceptions.JedisDataException: ERR Authentication failed.