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

Transient pip2 failures on Evergreen

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

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Name of Failure:

      **

      "Cache entry deserialization failed, entry ignored"

      Link to task:

      https://evergreen.mongodb.com/task_log_raw/mongo_python_driver_tests_python_version_rhel8_test_encryption__platform~rhel8_auth_ssl~noauth_nossl_python_version~3.10_encryption~encryption_crypt_shared_test_6.0_replica_set_patch_b6f72adb2150338d6b37236fa9ff3244a12c1ce3_6696d4c67bc6870007aa27ae_24_07_16_20_15_10/0?type=ALL

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_rhel8_test_encryption__platform~rhel8_auth_ssl~noauth_nossl_python_version~3.10_encryption~encryption_crypt_shared_test_6.0_replica_set_patch_b6f72adb2150338d6b37236fa9ff3244a12c1ce3_6696d4c67bc6870007aa27ae_24_07_16_20_15_10?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      This error has been popping up intermittently recently. It often goes away with a re-run of the task. We shouldn't be using pip2 at all, did the hosts change Python tooling?

      Stack trace:

       [2024/07/16 13:25:45.418] + python -m pip install --upgrade pip
       [2024/07/16 13:25:45.418] Cache entry deserialization failed, entry ignored
       [2024/07/16 13:25:45.965] Exception:
       [2024/07/16 13:25:45.965] Traceback (most recent call last):
       [2024/07/16 13:25:45.965]   File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
       [2024/07/16 13:25:45.965]     status = self.run(options, args)
       [2024/07/16 13:25:45.965]   File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 365, in run
       [2024/07/16 13:25:45.965]     strip_file_prefix=options.strip_file_prefix,
       [2024/07/16 13:25:45.965]   File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 778, in install
       [2024/07/16 13:25:45.965]     requirement.uninstall(auto_confirm=True)
       [2024/07/16 13:25:45.965]   File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 754, in uninstall
       [2024/07/16 13:25:45.965]     paths_to_remove.remove(auto_confirm)
       [2024/07/16 13:25:45.965]   File "/usr/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
       [2024/07/16 13:25:45.965]     renames(path, new_path)
       [2024/07/16 13:25:45.965]   File "/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 267, in renames
       [2024/07/16 13:25:45.965]     shutil.move(old, new)
       [2024/07/16 13:25:45.965]   File "/usr/lib64/python2.7/shutil.py", line 326, in move
       [2024/07/16 13:25:45.965]     os.unlink(src)
       [2024/07/16 13:25:45.965] OSError: [Errno 13] Permission denied: '/usr/bin/pip2'
       [2024/07/16 13:25:46.442] Command 'shell.exec' in function 'run tests' (step 2.2 of 2) failed: shell script encountered problem: exit code 2.
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            noah.stapp@mongodb.com Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: