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

Test Failure - MongoDB <=3.4 fails to connect on Windows 3.11 with SSL

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.13
    • Affects Version/s: None
    • Component/s: None
    • None

      Test Failure - MongoDB <=3.4 fails to connect on Windows 3.11 with SSL :
      https://evergreen.mongodb.com/task/mongo_python_driver_3.13_tests_windows_python_version__platform~windows_64_vsMulti_small_auth_ssl~auth_ssl_python_version_windows~3.11_test_3.4_standalone_d87acc6b811cb873d66023edb4b6e293805054e1_22_10_27_16_27_49

       [2022/10/28 02:11:08.946] FAIL [0.001s]: test_must_connect (test_client_context.TestClientContext.test_must_connect)
       [2022/10/28 02:11:08.946] ----------------------------------------------------------------------
       [2022/10/28 02:11:08.946] Traceback (most recent call last):
       [2022/10/28 02:11:08.946]   File "C:\data\mci\c24ac3d38703f64928da0fff5fe8eae2\src\test\test_client_context.py", line 28, in test_must_connect
       [2022/10/28 02:11:08.946]     self.assertTrue(
       [2022/10/28 02:11:08.946] AssertionError: False is not true : client context must be connected when PYMONGO_MUST_CONNECT is set. Failed attempts:
       [2022/10/28 02:11:08.946] failed to connect client MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True, serverselectiontimeoutms=5000): localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host, Timeout: 5.0s, Topology Description: <TopologyDescription id: 635b3a2cacfa7b2b626d067d, topology_type: Single, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host')>]>
       [2022/10/28 02:11:08.946] failed to connect client MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True, serverselectiontimeoutms=5000, ssl=True, ssl_certfile='C:/data/mci/c24ac3d38703f64928da0fff5fe8eae2/drivers-tools/.evergreen/x509gen/client.pem', ssl_ca_certs='C:/data/mci/c24ac3d38703f64928da0fff5fe8eae2/drivers-tools/.evergreen/x509gen/ca.pem'): SSL handshake failed: localhost:27017: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:992), Timeout: 5.0s, Topology Description: <TopologyDescription id: 635b3a31acfa7b2b626d067e, topology_type: Single, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('SSL handshake failed: localhost:27017: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:992)')>]>
      

      In the server logs:

      2022-10-28T03:11:01.742+0100 I NETWORK  [thread1] connection accepted from 127.0.0.1:52785 #27 (2 connections now open)
      2022-10-28T03:11:01.743+0100 E NETWORK  [conn27] SSL: error:1408A0C1:SSL routines:ssl3_get_client_hello:no shared cipher
      2022-10-28T03:11:01.743+0100 D NETWORK  [conn27] SocketException: remote: 127.0.0.1:52785 error: 9001 socket exception [CONNECT_ERROR]
      2022-10-28T03:11:01.743+0100 I -        [conn27] end connection 127.0.0.1:52785 (2 connections now open)
      

      This is the same issue as PYTHON-2793/PYTHON-3015.

            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: