Redis ACL: cannot log in with the redis-cli -u option #13282
Answered
by
meowfishorg
meowfishorg
asked this question in
Q&A
-
I set up a Redis 7 Docker container with docker compose (using ACL with username and password), but I can't use the # this is okay
$ redis-cli
127.0.0.1:6379> ping
(error) NOAUTH Authentication required.
127.0.0.1:6379> auth admin pw2024
OK
127.0.0.1:6379> ping
PONG
# so is this:
redis-cli --user admin --pass pw2024
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6379> ping
PONG
# but the `-u` option just does NOT work!
$ redis-cli -u redis://admin:pw2024@localhost:6379/0
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
Warning: AUTH failed
localhost:6379>
$ redis-cli -u redis://admin:pw2024@localhost:6379
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
Warning: AUTH failed
localhost:6379>
$ redis-cli -u redis://admin:pw2024@
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
Warning: AUTH failed
127.0.0.1:6379>
My redis.conf:
Service in docker compose file:
|
Beta Was this translation helpful? Give feedback.
Answered by
meowfishorg
May 20, 2024
Replies: 1 comment
-
I updated my redis-cli version to the lastest and now it works properly. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
meowfishorg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I updated my redis-cli version to the lastest and now it works properly.