[Toolchain] Intermittent Windows permission denied

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Toolchain
    • 🔵 Done
    • Python Drivers
    • Not Needed
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      We are seeing the following error intermittently:

      finalize-install.sh: line 23: /cygdrive/c/python/32/Python39/python.exe: Permission denied
      

      https://spruce.mongodb.com/task/mongo_python_driver_toolchain_windows64_build_windows_toolchain_x86_d2082d8b10434b75d9b9a986fd0b4fc3f02a4e27_25_10_06_15_27_14/logs?execution=0

      [2025/10/06 10:50:49.877] + powershell.exe -Command '.\install.ps1' 3.9.13 39 x86
      [2025/10/06 10:50:49.877] + set -o nounset
      [2025/10/06 10:50:49.877] + PYTHON_BINARY=/cygdrive/c/python/32/Python39/python.exe
      [2025/10/06 10:50:49.877] + [[ cygwin == \d\a\r\w\i\n* ]]
      [2025/10/06 10:50:49.877] + SUDO=
      [2025/10/06 10:50:49.912] ++ /cygdrive/c/python/32/Python39/python.exe -m pip --version
      [2025/10/06 10:50:49.912] finalize-install.sh: line 22: /cygdrive/c/python/32/Python39/python.exe: Permission denied
      [2025/10/06 10:50:49.919] ++ true
      [2025/10/06 10:50:49.919] + PIP=
      [2025/10/06 10:50:49.919] ++ /cygdrive/c/python/32/Python39/python.exe -c 'import sys; print('\''.'\''.join(map(str, sys.version_info[:2])))'
      [2025/10/06 10:50:49.923] finalize-install.sh: line 23: /cygdrive/c/python/32/Python39/python.exe: Permission denied
      

      Definition of done

      Improve robustness of script.

      Pitfalls

      N/A

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: