redis-commander: Error: Ready check failed: NOAUTH Authentication required.
I’m trying to connect to my either my master redis server or slave, which has requirepass configured; the slave can connect to the master with the same password and I was able to use redis-commander before requirepass was configured.
$ redis-commander --redis-host <censored> --redis-password <censored>
No Save: true
listening on 0.0.0.0 : 8081
[Error: Ready check failed: NOAUTH Authentication required.]
Did I miss something?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 17
- Comments: 54 (6 by maintainers)
Commits related to this issue
- console working but suffers from issue #179 — committed to ScottEAdams/redis-commander by ScottEAdams 6 years ago
- Merge pull request #244 from 7wonders/master console working but suffers from issue #179 — committed to joeferner/redis-commander by joeferner 6 years ago
- Changed Dockerfile and entrypoint (fix) The Dockerfile is to right and adds a bug that cannot connect to a database with authentication now you can use the environment variables and just run docker-c... — committed to wolmi/redis-commander by deleted user 6 years ago
I just have faced the same problem, it’s frustrating. Also I’ve encountered some other issues, for example, if you use more than one db (with dbIndex !== 0) the
redis-commanderis constantly crashing 😦I made a fork and have fixed such issues
I’m not sure if there are no issues left, but it works at least.
You’re free to:
npm uninstall -g redis-commandernpm install -g https://github.com/MegaGM/redis-commander.gitAny update on this issue? None of the solutions above have worked for me…
Since adding “requirepass” – I’ve seen the exact same problem.
This is still not fixed?! This is beyond ridiculous as this is basic and common Redis configuration. This is embarrassing.
Not completely fixed quite yet; loading from the config file seems to still throw the same error.
published v0.4.5
Last version that works for me:
Looks like mistake in function, and it should be: redis-commander/bin/redis-commander.js:
By the way ‘original’ code contains problems with async calls: redisConnections.getLast().auth.
Bueller? 16 days and nothing?
@sseide you’re right, a file named
local-development.jsonhas been created under/usr/local/lib/node_modules/redis-commander/config/. That file contains all the connection parameters I put in the command line but the password field that was empty:I filled in the password field and then restarted redis-commander without any argument on the command line: it worked, I can browse the database on localhost:8081.
still bombing out
redis_version: 4.0.1 redis_mode: standalone
@joeferner I found it still has the same problem if run
redis-commander --redis-password <password> --sentinel-host <host> --sentinel-port <port>I fixed the issue with the PR https://github.com/joeferner/redis-commander/pull/222
@wernerstucky What environment variables are you using? The new version will need the following variables:
REDIS_PASSWORD REDIS_HOST REDIS_PORT REDIS_DB
I am currently using this version in my kubernetes environment (after dockerizing it) and it is working for me.
New version still not working, used solution from @MegaGM , working well.
Thanks @sertal70 ! Using the
--ccflag to clear the configuration file did the trick!@sertal70 - many thanks, and looking at the code it makes sense. Will have to fix it to be in line with documentation (as this would be expected / normal behaviour i guess).
I created a new ticket for that: #354
@sseide thanks for the clarification on using config file if there are more than one database to be managed that’s crystal clear.
I’m pretty sure my command line was correct, I checked it a couple of times and, as I said before, I used it also to launch redis-browser for double check.
Now I tried again: I deleted the config file then launched redis-commander getting the command line from bash history and… bum! It worked! So why? Having a look to the command history I found that my first attempt has been run without the
--redis-passwordflag, so this is why thelocal-development.jsonfile has been created with thepasswordfield empty. Finally it comes the issue: redis-commander ignored all parameters on the command line (including--redis-password) in any of the subsequent run, taking precedence on thelocal-development.jsonfile (the exact opposite of what the documentation reports: “Command line parameters - Overwrites everything”).Reproducing the issue is quite simple:
local-development.jsonconfig file, if anyredis-commander --redis-host <myhost> --redis-port <myport>local-development.jsonconfig file has been created with the password field emptyredis-commander --redis-host <myhost> --redis-port <myport> --redis-password <mypassword>Hope it helps!
When using version from npm - this had no updates since long time. Please try latest from github or docker image.
Otherwise - what exact problem do you face? this thread describes multiple different ones… We are using redis-commander with password protected db without any problem…
Cleaning the config file as suggested by @khoan solved the problem for me.