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

Encryption tests intermittently failing with "read timed out"

    • Type: Icon: Build Failure Build Failure
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_ubuntu18_test_encryption__platform~ubuntu_18.04_auth_ssl~noauth_nossl_python_version~3.10_encryption~encryption_crypt_shared_test_6.0_replica_set_patch_79ccf4e2874c7ed73fb17fa880806bc75dc1b8de_63e2851d7742ae4df6570597_23_02_07_17_06_39

       [2023/02/07 17:30:18.659] ======================================================================
       [2023/02/07 17:30:18.659] ERROR: test_07_azure (test.test_encryption.TestCustomEndpoint)
       [2023/02/07 17:30:18.659] ----------------------------------------------------------------------
       [2023/02/07 17:30:18.659] Traceback (most recent call last):
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/pymongo/encryption.py", line 81, in _wrap_encryption_errors
       [2023/02/07 17:30:18.659]     yield
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/pymongo/encryption.py", line 726, in create_data_key
       [2023/02/07 17:30:18.659]     return self._encryption.create_data_key(
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/venv-encryption/lib/python3.10/site-packages/pymongocrypt/explicit_encrypter.py", line 174, in create_data_key
       [2023/02/07 17:30:18.659]     key = run_state_machine(ctx, self.callback)
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/venv-encryption/lib/python3.10/site-packages/pymongocrypt/state_machine.py", line 150, in run_state_machine
       [2023/02/07 17:30:18.659]     callback.kms_request(kms_ctx)
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/pymongo/encryption.py", line 147, in kms_request
       [2023/02/07 17:30:18.659]     data = conn.recv(kms_context.bytes_needed)
       [2023/02/07 17:30:18.659]   File "/opt/python/3.10/lib/python3.10/ssl.py", line 1259, in recv
       [2023/02/07 17:30:18.659]     return self.read(buflen)
       [2023/02/07 17:30:18.659]   File "/opt/python/3.10/lib/python3.10/ssl.py", line 1132, in read
       [2023/02/07 17:30:18.659]     return self._sslobj.read(len)
       [2023/02/07 17:30:18.659] TimeoutError: The read operation timed out
       [2023/02/07 17:30:18.659] During handling of the above exception, another exception occurred:
       [2023/02/07 17:30:18.659] Traceback (most recent call last):
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/test/test_encryption.py", line 1367, in test_07_azure
       [2023/02/07 17:30:18.659]     self.run_test_expected_success("azure", master_key)
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/test/test_encryption.py", line 1282, in run_test_expected_success
       [2023/02/07 17:30:18.659]     data_key_id = self.client_encryption.create_data_key(provider_name, master_key=master_key)
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/pymongo/encryption.py", line 725, in create_data_key
       [2023/02/07 17:30:18.659]     with _wrap_encryption_errors():
       [2023/02/07 17:30:18.659]   File "/opt/python/3.10/lib/python3.10/contextlib.py", line 153, in __exit__
       [2023/02/07 17:30:18.659]     self.gen.throw(typ, value, traceback)
       [2023/02/07 17:30:18.659]   File "/data/mci/5b2936d551b73a721ced530c8bdde1e6/src/pymongo/encryption.py", line 87, in _wrap_encryption_errors
       [2023/02/07 17:30:18.659]     raise EncryptionError(exc)
       [2023/02/07 17:30:18.659] pymongo.errors.EncryptionError: The read operation timed out
       [2023/02/07 17:30:18.659] ----------------------------------------------------------------------
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            julius.park@mongodb.com Julius Park (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: