Skip to content
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

Python script not showing data #34

Open
rahul15111990 opened this issue Apr 14, 2020 · 1 comment
Open

Python script not showing data #34

rahul15111990 opened this issue Apr 14, 2020 · 1 comment

Comments

@rahul15111990
Copy link

rahul15111990 commented Apr 14, 2020

Traceback (most recent call last):
File "./zabbix-mongodb.py", line 243, in
mongodb.get_db_names()
File "./zabbix-mongodb.py", line 73, in get_db_names
master = db_handler.command('isMaster')['ismaster']
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/database.py", line 730, in command
read_preference, session) as (sock_info, slave_ok):
File "/usr/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1300, in _socket_for_reads
with self._get_socket(server, session) as sock_info:
File "/usr/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1222, in _get_socket
self.__all_credentials, checkout=exhaust) as sock_info:
File "/usr/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/pool.py", line 1138, in get_socket
sock_info.check_auth(all_credentials)
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/pool.py", line 712, in check_auth
auth.authenticate(credentials, self)
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/auth.py", line 564, in authenticate
auth_func(credentials, sock_info)
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/auth.py", line 541, in _authenticate_default
return _authenticate_scram(credentials, sock_info, 'SCRAM-SHA-1')
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/auth.py", line 263, in _authenticate_scram
res = sock_info.command(source, cmd)
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/pool.py", line 613, in command
user_fields=user_fields)
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/network.py", line 167, in command
parse_write_concern_error=parse_write_concern_error)
File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/helpers.py", line 159, in _check_command_response
raise OperationFailure(msg % errmsg, code, response)
pymongo.errors.OperationFailure: Authentication failed.

@Ineptsmeagol
Copy link

the messages shows that authentication failed pymongo.errors.OperationFailure: Authentication failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants