-
Notifications
You must be signed in to change notification settings - Fork 273
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
authentication fails #150
Comments
+1 |
Are you using mongodb 3.0? Many things changed and you need to update pymongo to a newer version. |
I am using mongo 2.4.6 on RHEL 6. |
I am using pymongo 3.0.2 on ubuntu 14.04 with mongodb > 3. |
Getting this with pymongo 3.10, Shinken 2.4 with the updated Nagios plug-in on Ubuntu 12/Python 2.7.6, MongoDB 3.0.6. |
I'm getting a similar error with pyMongo 3.0 on Ubuntu trying to connect to MongoDB 2.4.9 |
If you're using mongodb 3.4 like me then you need to change
restart mongodb
Don't forget to add admin user as well refrence: https://stackoverflow.com/questions/29006887/mongodb-cr-authentication-failed |
Seems no matter what I do when i pass in a -u and a -p I keep getting:
CRITICAL - General MongoDB Error: command SON([('authenticate', 1), ('user', u'admin'), ('nonce', u'b2e8a643682ce8fc'), ('key', u'eaa1cc360ee11f47cd7a722ff46e7f13')]) on namespace admin.$cmd failed: auth fails
But if I run: mongo and then, use admin, db.auth("blah","blah") it works as expected. Not sure what I am doing wrong.
The text was updated successfully, but these errors were encountered: