New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOAUTH Authentication required error even with password set #1359
Comments
Hard to tell from just your Can you supply more of your code? |
Hi, I have the same issue and I pass the password as a plain text and it stills send me the same error. In fact I only uncomment the line requirepass in the default redis.conf file, as I show in the following code:
I make this configuration in my local machine in order to make the tests, but I am still get the same error:
Here is my code that I apply in my nodejs server:
The funny thing is that when I start the server, the key "foo" is saved in my redis database with the value "bar", but my app is crash and I can't do anything to interact with it. |
To everyone here. I had the same problem when I tried to use a long password generated by the Linux random password generator. When I changed the password to something much shorter, everything worked fine. This may be a problem with this Node.JS package itself, because the long password did work if I went into redis-cli and used it with the auth command. However, the exact same password did not work when passed in during the createClient() method, regardless of what method variant I used (i.e. - full URL, or "auth_pass"/"password" in options block, or redisClient.auth() method - they all failed with the long password). |
Hi @roschler, would you like to provide your code please. The truth is that I tried your suggestion and I am still having the same issue, not even with a password like '123'. I try with all the ways that are in the documentation and nothing different. I know that this can be bother to you but the true is that I don't have other choice. In advance thanks a lot. |
@maooricio I'm 99.999% sure this is a misconfiguration at the server or the wrong server. Looking at your code from Oct 2018, I would try using a randomly generated key and echoing with MONITOR in I think that @roschler is having an entirely different issue (quoting?) |
I still have this issue happened with me I have tried so many differents ways to connect with my redis db but password authntication failed for user |
@nicollasmatheus what is your error? |
I'm having the same error. I'm confident all the setting parameters are correct. I've tried all 3 methods and same error in all of them.
After settings
I'm using docker-compose
and I can access to redis using cli |
@thellimist Check out what is happening with |
and I call
Also key/val "foo: bar" is added to redis. So it connects correct initially then for some reason it tries to reconnect but fails. I only call |
@thellimist I think you misunderstand - you need to run Anyway, looking at your code (which I assume is a snippet), it really looks like somewhere else in your code you're calling |
The issue was simple as you said. I was using typeorm package and it had a different config file which was not in js/ts file. Node Redis loge did not tell me where it was being called from made it hard to find. Thanks. |
If using Docker, edit your redis.conf's file network setting:
That fixed it for me. |
@mariothedev be SUPER careful with that. Without proper firewalls, your redis is wide open with using that |
@stockholmux - thanks for letting me know :) |
I'm also having this issue here. Error message: Version: Node Redis 3.0.0 / Redis 5.0.8 |
Came across this thread looking for an answer to the same problem. Wondering what the solution for this is. |
One more possible resolution to add to the list. I was getting this error and it took me an embarrassingly long time to remember that I'm using Bull which is a Redis based queue. I'm also using Redis elsewhere in the application where I had been passing in the connection information, but forgot about Bull and was getting exactly these errors on the console. So I guess one other thing to check is if anything else in your app is using Redis and might be firing back these errors. edit If it is Bull that is causing this error for you, you must use |
If I connect to redis with the
redis-cli
tool it works just fine but for some reason i've been getting this errorThe text was updated successfully, but these errors were encountered: