-
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
Incompatible with MongoDB 4 #243
Comments
Just for your info: We are using this plugin (maybe not the most recent version) with mongodb v4 and authentication without any problems. What do you want to achieve with this plugin? Adding users? |
In my case, we are using this plugin with mongoDB 4, auth SCRAM-SHA-256 and ssl certs without problems. If you have problems with root just add a new user and give a try with that new one |
I have mongodb v4 with authentication enabled but no ssl, and the error is mechanism must be in ('MONGODB-CR', 'GSSAPI') |
Hi @kagahd, how are you using this? I am trying to connect to MongoDB 4.2.3 with that latest version of this scheck plugin using The connection from commandline using this data/credentials works, and that user is defined as:
Thanks! |
we are calling it like this for example: Our mongodb version is 4.0.6 The credentials for our
|
Have you tried upgrading pymongo? Worked for me |
thanks that resolve my issue |
Hi, I'm using standard percona mongodb in Centos7 server
And this is the centos7 version:
I installed the python-pymongo package from the EPEL repository:
this is the mongo client correct connection (only connect and exit):
and this is the plugin output:
Am I doing something wrong? |
I had de same issue, the problem was the repository version of pymongo. Remove the package python-pymongo, install pip and then |
upgrading pymongo with git is outside the package manager and will cause problems later on. Are there repos out there with a newer pymongo? |
@ekollof I know it's an old issue, but the best practices with Python packages is to create a virtualenv, so it doesn't affect your system libraries. Should be something like:
You will probably have to change de shebang of the script to |
Hi,
I just tried setting up this plugin for monitoring MongoDB 4, and I get authentication errors.
I use the root ('root' privileges) username and password, and it says "Invalid Username / Password" though the credentials work for using mongo on the command line.
I tried quotes and doublequotes, and downgrading to auth schema 3, as per issue #170 ,
But MongoDB 4 complains:
Error: couldn't add user: User and role management commands require auth data to have at least schema version 5 but found 3
So I'm stuck, My best guess is that it is trying to use the MongoDB-CR auth method, which was removed in MongoDB 4. I've tried specifying the auth mechanism, with -m, and pretty much everything.
If I look at the root user, they have clusterAdmin rights, plus a SCRAM-SHA-1 and SCRAM-SHA-256 password stored.
Is there a workaround or solution for using the plugin with MongoDB 4?
Thanks
Dan
The text was updated successfully, but these errors were encountered: