Description
Caused by SERVER-57369:
[2022/02/24 22:28:35.208] ERROR: test_authenticate_multiple (test_database.TestDatabase)
|
[2022/02/24 22:28:35.208] ----------------------------------------------------------------------
|
[2022/02/24 22:28:35.208] Traceback (most recent call last):
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/__init__.py", line 524, in wrap
|
[2022/02/24 22:28:35.208] return f(*args, **kwargs)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/__init__.py", line 524, in wrap
|
[2022/02/24 22:28:35.208] return f(*args, **kwargs)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/utils.py", line 794, in wrapper
|
[2022/02/24 22:28:35.208] return wrapped(*args, **kwargs)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/test_database.py", line 734, in test_authenticate_multiple
|
[2022/02/24 22:28:35.208] admin_db.authenticate("ro-admin", "pass")
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/database.py", line 1687, in authenticate
|
[2022/02/24 22:28:35.208] self.client._cache_credentials(self.name, credentials, connect=True)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/mongo_client.py", line 830, in _cache_credentials
|
[2022/02/24 22:28:35.208] sock_info.authenticate(credentials)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/pool.py", line 868, in authenticate
|
[2022/02/24 22:28:35.208] auth.authenticate(credentials, self)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 679, in authenticate
|
[2022/02/24 22:28:35.208] auth_func(credentials, sock_info)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 600, in _authenticate_default
|
[2022/02/24 22:28:35.208] return _authenticate_scram(credentials, sock_info, "SCRAM-SHA-256")
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 331, in _authenticate_scram
|
[2022/02/24 22:28:35.208] res = sock_info.command(source, cmd)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/pool.py", line 753, in command
|
[2022/02/24 22:28:35.208] exhaust_allowed=exhaust_allowed,
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/network.py", line 181, in command
|
[2022/02/24 22:28:35.208] parse_write_concern_error=parse_write_concern_error,
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/helpers.py", line 180, in _check_command_response
|
[2022/02/24 22:28:35.208] raise OperationFailure(errmsg, code, response, max_wire_version)
|
[2022/02/24 22:28:35.208] OperationFailure: Each client connection may only be authenticated once. Previously authenticated as: user@pymongo_test, full error: {u'codeName': u'Location5626701', u'code': 5626701, u'ok': 0.0, u'errmsg': u'Each client connection may only be authenticated once. Previously authenticated as: user@pymongo_test'}
|
[2022/02/24 22:28:35.208] ======================================================================
|
[2022/02/24 22:28:35.208] ERROR: test_session_authenticate_multiple (test_session.TestSessionsMultiAuth)
|
[2022/02/24 22:28:35.208] ----------------------------------------------------------------------
|
[2022/02/24 22:28:35.208] Traceback (most recent call last):
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/utils.py", line 794, in wrapper
|
[2022/02/24 22:28:35.208] return wrapped(*args, **kwargs)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/test_session.py", line 1145, in test_session_authenticate_multiple
|
[2022/02/24 22:28:35.208] db.authenticate("second-user", "pass")
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/database.py", line 1687, in authenticate
|
[2022/02/24 22:28:35.208] self.client._cache_credentials(self.name, credentials, connect=True)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/mongo_client.py", line 830, in _cache_credentials
|
[2022/02/24 22:28:35.208] sock_info.authenticate(credentials)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/pool.py", line 868, in authenticate
|
[2022/02/24 22:28:35.208] auth.authenticate(credentials, self)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 679, in authenticate
|
[2022/02/24 22:28:35.208] auth_func(credentials, sock_info)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 600, in _authenticate_default
|
[2022/02/24 22:28:35.208] return _authenticate_scram(credentials, sock_info, "SCRAM-SHA-256")
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 331, in _authenticate_scram
|
[2022/02/24 22:28:35.208] res = sock_info.command(source, cmd)
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/pool.py", line 753, in command
|
[2022/02/24 22:28:35.208] exhaust_allowed=exhaust_allowed,
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/network.py", line 181, in command
|
[2022/02/24 22:28:35.208] parse_write_concern_error=parse_write_concern_error,
|
[2022/02/24 22:28:35.208] File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/helpers.py", line 180, in _check_command_response
|
[2022/02/24 22:28:35.208] raise OperationFailure(errmsg, code, response, max_wire_version)
|
[2022/02/24 22:28:35.208] OperationFailure: Each client connection may only be authenticated once. Previously authenticated as: bob@admin, full error: {u'codeName': u'Location5626701', u'code': 5626701, u'ok': 0.0, u'errmsg': u'Each client connection may only be authenticated once. Previously authenticated as: bob@admin'}
|
We'll need to skip these tests on 6.0+
Attachments
Issue Links
- is caused by
-
SERVER-57369 Remove support for authentication as multiple simultaneous users (5.3)
-
- Closed
-
- is duplicated by
-
PYTHON-3348 [v3.13] test_session_authenticate_multiple failing on Windows and macOS
-
- Closed
-