Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1531

Mongo-orchestration fails on Windows 64 Visual Studio 2015 Python 2.6 Auth SSL MongoDB v3.7.4-6-g228106a741 "Could not find user bob@admin"

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Mongo-orchestration is failing to start a MongoDB latest replica set with auth on Windows:

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_windows_vs2015_python_version__auth_ssl~auth_ssl_windows_vs2015_python_version~3.6_test_latest_replica_set_d1ee646d7203bffba4c65edf66d3db1cb33518b3_18_04_17_20_23_52

      mongo-orchestration.log:

      2018-04-17 20:42:25,408 [ERROR] mongo_orchestration.servers:210 - Could not authenticate to localhost:27017 with {'password': u'pwd123', 'name': u'bob'}
      Traceback (most recent call last):
        File "c:\data\mci\d13a977c1c916b5b9ae70356a7819eab\drivers-tools\.evergreen\orchestration\venv\lib\site-packages\mongo_orchestration\servers.py", line 207, in connection
          db.authenticate(**auth_dict)
        File "c:\python27\lib\site-packages\pymongo\database.py", line 1075, in authenticate
          connect=True)
        File "c:\python27\lib\site-packages\pymongo\mongo_client.py", line 547, in _cache_credentials
          sock_info.authenticate(credentials)
        File "c:\python27\lib\site-packages\pymongo\pool.py", line 581, in authenticate
          auth.authenticate(credentials, self)
        File "c:\python27\lib\site-packages\pymongo\auth.py", line 486, in authenticate
          auth_func(credentials, sock_info)
        File "c:\python27\lib\site-packages\pymongo\auth.py", line 466, in _authenticate_default
          return _authenticate_scram_sha1(credentials, sock_info)
        File "c:\python27\lib\site-packages\pymongo\auth.py", line 209, in _authenticate_scram_sha1
          res = sock_info.command(source, cmd)
        File "c:\python27\lib\site-packages\pymongo\pool.py", line 477, in command
          collation=collation)
        File "c:\python27\lib\site-packages\pymongo\network.py", line 116, in command
          parse_write_concern_error=parse_write_concern_error)
        File "c:\python27\lib\site-packages\pymongo\helpers.py", line 210, in _check_command_response
          raise OperationFailure(msg % errmsg, code, response)
      OperationFailure: Authentication failed.
      

      Mongod primary log:

      2018-04-17T20:42:25.408+0000 I NETWORK  [conn3] received client metadata from 127.0.0.1:56558 conn3: { driver: { name: "PyMongo", version: "3.5.1" }, os: { type: "Windows", name: "Windows 2008ServerR2", architecture: "AMD64", version: "6.1.7601-SP1" }, platform: "CPython 2.7.14.final.0" }
      2018-04-17T20:42:25.409+0000 I ACCESS   [conn3] SASL SCRAM-SHA-1 authentication failed for bob on admin from client 127.0.0.1:56558 ; UserNotFound: Could not find user bob@admin
      2018-04-17T20:42:25.497+0000 I NETWORK  [conn3] end connection 127.0.0.1:56558 (1 connection now open)
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: