Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-3371

[Build Failure] AWS Auth Failure on Windows

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go 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?

      Name of Failure:

      OSError: [WinError 10106] The requested service provider could not be loaded or initialized

      Link to task:

      https://spruce.mongodb.com/task/mongo_go_driver_aws_auth_test__version~4.4_os_aws_auth~windows_64_vsCurrent_latest_small_aws_auth_test_dc87addc85f82fb03e58f2a5a1c052a28255a3e8_24_10_02_23_58_33/logs?execution=0

      Context of when and why the failure occurred:

      PyMongo now imports asyncio, and we were previously not sending environment variables to subprocesses. Those variables are needed to load system dlls in Python.

      Stack trace:

      [2024/10/02 19:33:23.930] task: [evg-test-aws] bash etc/run-mongodb-aws-test.sh web-identity
      [2024/10/02 19:33:23.930] Traceback (most recent call last):
      [2024/10/02 19:33:23.930]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\lib\aws_handle_oidc_creds.py", line 12, in <module>
      [2024/10/02 19:33:23.930]     from pyop.authz_state import AuthorizationState
      [2024/10/02 19:33:23.930]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pyop\authz_state.py", line 14, in <module>
      [2024/10/02 19:33:23.930]     from .storage import StatelessWrapper
      [2024/10/02 19:33:23.930]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pyop\storage.py", line 18, in <module>
      [2024/10/02 19:33:23.930]     import pymongo
      [2024/10/02 19:33:23.930]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pymongo\__init__.py", line 92, in <module>
      [2024/10/02 19:33:23.930]     from pymongo.cursor import CursorType
      [2024/10/02 19:33:23.930]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pymongo\cursor.py", line 19, in <module>
      [2024/10/02 19:33:23.930]     from pymongo.synchronous.cursor import *  # noqa: F403
      [2024/10/02 19:33:23.930]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [2024/10/02 19:33:23.930]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pymongo\synchronous\cursor.py", line 47, in <module>
      [2024/10/02 19:33:23.930]     from pymongo.lock import _create_lock
      [2024/10/02 19:33:23.930]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pymongo\lock.py", line 16, in <module>
      [2024/10/02 19:33:23.930]     import asyncio
      [2024/10/02 19:33:23.930]   File "C:\python\Python311\Lib\asyncio\__init__.py", line 42, in <module>
      [2024/10/02 19:33:23.933]     from .windows_events import *
      [2024/10/02 19:33:23.933]   File "C:\python\Python311\Lib\asyncio\windows_events.py", line 8, in <module>
      [2024/10/02 19:33:23.934]     import _overlapped
      [2024/10/02 19:33:23.934] OSError: [WinError 10106] The requested service provider could not be loaded or initialized
      [2024/10/02 19:33:23.985] Traceback (most recent call last):
      [2024/10/02 19:33:23.985]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\aws_tester.py", line 202, in <module>
      [2024/10/02 19:33:23.985]     main()
      [2024/10/02 19:33:23.985]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\aws_tester.py", line 198, in main
      [2024/10/02 19:33:23.985]     args.func()
      [2024/10/02 19:33:23.985]   File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\aws_tester.py", line 161, in setup_web_identity
      [2024/10/02 19:33:23.985]     raise RuntimeWarning("Failed to write the web token")
      [2024/10/02 19:33:23.985] RuntimeWarning: Failed to write the web token
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: