Open rsilveira opened 11 years ago
Err nm on previous question. Looking into why that'd fail. Probably because it's a delimiter.
From what I can tell, this is an issue in the MongoDB client library, do you use the Python library for your normal applications, and do you do anything special with the password if so?
Hello,
When I configure the mongodb plugin, I received the error bellow. My admin password has a equal ex. abc=123
INFO 2013-11-05 16:24:58 22849 MainProcess MainThread clihelper run L382 : newrelic_plugin_agent 1.1.0 started Exception: OperationFailure(u"command SON([('authenticate', 1), ('user', u'admin'), ('nonce', u'3b3d23e9e568f0fb'), ('key', u'88068f3f51a97299d43f4121fe87cab4')]) failed: auth fails",)
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/clihelper/init.py", line 744, in run process.run() File "/usr/lib/python2.6/site-packages/clihelper/init.py", line 384, in run self.process() File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 110, in process self.start_plugin_polling() File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 239, in start_plugin_polling self.application_config.get(plugin)) File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 100, in poll_plugin thread.run() File "/usr/lib64/python2.6/threading.py", line 484, in run self.target(_self.__args, *_self.kwargs) File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 254, in thread_process obj.poll() File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/plugins/mongodb.py", line 238, in poll self.get_and_add_server_stats() File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/plugins/mongodb.py", line 232, in get_and_add_server_stats self.config.get('admin_password')) File "/usr/lib64/python2.6/site-packages/pymongo/database.py", line 746, in authenticate self.connection._cache_credentials(self.name, credentials) File "/usr/lib64/python2.6/site-packages/pymongo/mongo_client.py", line 441, in _cache_credentials auth.authenticate(credentials, sock_info, self.simple_command) File "/usr/lib64/python2.6/site-packages/pymongo/auth.py", line 214, in authenticate auth_func(credentials[1:], sock_info, cmd_func) File "/usr/lib64/python2.6/site-packages/pymongo/auth.py", line 194, in _authenticate_mongo_cr cmd_func(sock_info, source, query) File "/usr/lib64/python2.6/site-packages/pymongo/mongo_client.py", line 607, in simple_command helpers._check_command_response(response, None, msg) File "/usr/lib64/python2.6/site-packages/pymongo/helpers.py", line 147, in _check_command_response raise OperationFailure(msg % errmsg, code) OperationFailure: command SON([('authenticate', 1), ('user', u'admin'), ('nonce', u'3b3d23e9e568f0fb'), ('key', u'88068f3f51a97299d43f4121fe87cab4')]) failed: auth fails