GTN
GTN copied to clipboard
MongoDB Authentication failed on MacOs Catalina and mongodb-community 4.4.0
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 1225, in get_socket
sock_info = self._get_socket(all_credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 1279, in _get_socket
sock_info.check_auth(all_credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 793, in check_auth
self.authenticate(credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 810, in authenticate
auth.authenticate(credentials, self)
File "/usr/local/lib/python3.7/site-packages/pymongo/auth.py", line 673, in authenticate
auth_func(credentials, sock_info)
File "/usr/local/lib/python3.7/site-packages/pymongo/auth.py", line 295, in _authenticate_scram
res = sock_info.command(source, cmd)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 694, in command
exhaust_allowed=exhaust_allowed)
File "/usr/local/lib/python3.7/site-packages/pymongo/network.py", line 162, in command
parse_write_concern_error=parse_write_concern_error)
File "/usr/local/lib/python3.7/site-packages/pymongo/helpers.py", line 168, in _check_command_response
max_wire_version)
pymongo.errors.OperationFailure: Authentication failed., full error: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/sacred/run.py", line 429, in _final_call
getattr(observer, method)(**kwargs)
File "/usr/local/lib/python3.7/site-packages/sacred/observers/mongo.py", line 249, in failed_event
self.final_save(attempts=1)
File "/usr/local/lib/python3.7/site-packages/sacred/observers/mongo.py", line 369, in final_save
upsert=True,
File "/usr/local/lib/python3.7/site-packages/pymongo/collection.py", line 1024, in update_one
hint=hint, session=session),
File "/usr/local/lib/python3.7/site-packages/pymongo/collection.py", line 870, in _update_retryable
_update, session)
File "/usr/local/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1498, in _retryable_write
return self._retry_with_session(retryable, func, s, None)
File "/usr/local/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
return self._retry_internal(retryable, func, session, bulk)
File "/usr/local/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1408, in _retry_internal
with self._get_socket(server, session) as sock_info:
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 1225, in get_socket
sock_info = self._get_socket(all_credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 1279, in _get_socket
sock_info.check_auth(all_credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 793, in check_auth
self.authenticate(credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 810, in authenticate
auth.authenticate(credentials, self)
File "/usr/local/lib/python3.7/site-packages/pymongo/auth.py", line 673, in authenticate
auth_func(credentials, sock_info)
File "/usr/local/lib/python3.7/site-packages/pymongo/auth.py", line 295, in _authenticate_scram
res = sock_info.command(source, cmd)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 694, in command
exhaust_allowed=exhaust_allowed)
File "/usr/local/lib/python3.7/site-packages/pymongo/network.py", line 162, in command
parse_write_concern_error=parse_write_concern_error)
File "/usr/local/lib/python3.7/site-packages/pymongo/helpers.py", line 168, in _check_command_response
max_wire_version)
pymongo.errors.OperationFailure: Authentication failed., full error: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed'}
Traceback (most recent calls WITHOUT Sacred internals):
File "/usr/local/lib/python3.7/site-packages/gridfs/__init__.py", line 308, in find_one
for f in self.find(filter, *args, session=session, **kwargs):
File "/usr/local/lib/python3.7/site-packages/gridfs/grid_file.py", line 841, in next
next_file = super(GridOutCursor, self).next()
File "/usr/local/lib/python3.7/site-packages/pymongo/cursor.py", line 1207, in next
if len(self.__data) or self._refresh():
File "/usr/local/lib/python3.7/site-packages/pymongo/cursor.py", line 1124, in _refresh
self.__send_message(q)
File "/usr/local/lib/python3.7/site-packages/pymongo/cursor.py", line 1001, in __send_message
address=self.__address)
File "/usr/local/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1372, in _run_operation_with_response
exhaust=exhaust)
File "/usr/local/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1465, in _retryable_read
exhaust=exhaust) as (sock_info,
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 1225, in get_socket
sock_info = self._get_socket(all_credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 1279, in _get_socket
sock_info.check_auth(all_credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 793, in check_auth
self.authenticate(credentials)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 810, in authenticate
auth.authenticate(credentials, self)
File "/usr/local/lib/python3.7/site-packages/pymongo/auth.py", line 673, in authenticate
auth_func(credentials, sock_info)
File "/usr/local/lib/python3.7/site-packages/pymongo/auth.py", line 295, in _authenticate_scram
res = sock_info.command(source, cmd)
File "/usr/local/lib/python3.7/site-packages/pymongo/pool.py", line 694, in command
exhaust_allowed=exhaust_allowed)
File "/usr/local/lib/python3.7/site-packages/pymongo/network.py", line 162, in command
parse_write_concern_error=parse_write_concern_error)
File "/usr/local/lib/python3.7/site-packages/pymongo/helpers.py", line 168, in _check_command_response
max_wire_version)
pymongo.errors.OperationFailure: Authentication failed., full error: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed'}
Process finished with exit code 1