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

[Build Failure] Error: GoModulesBuilder:Build - Builder Failed

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0, 1.16.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:

      Error: GoModulesBuilder:Build - Builder Failed: stat /data/mci/255f6ba3e3abfbd6adedc63a2e5ba219/src/go.mongodb.org/mongo-driver/internal/test/faas/awslambda/mongodb/bootstrap: directory not found

      Link to task:

      https://spruce.mongodb.com/task/mongo_go_driver_v1_faas_test__version~7.0_os_faas_80~rhel87_large_go_1_20_test_aws_lambda_deployed_4add5f4402f17f178c6e8596d03835c3837a5994_24_05_08_20_39_45/logs?execution=0

      Context of when and why the failure occurred:

      AWS has deprecated the al2 runtime.

      Stack trace:

      [2024/05/08 15:52:53.169] 	SAM CLI now collects telemetry to better understand customer needs.
      [2024/05/08 15:52:53.169] 	You can OPT OUT and disable telemetry collection by setting the
      [2024/05/08 15:52:53.169] 	environment variable SAM_CLI_TELEMETRY=0 in your shell.
      [2024/05/08 15:52:53.169] 	Thanks for your help!
      [2024/05/08 15:52:53.169] 	Learn More: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-telemetry.html
      [2024/05/08 15:52:53.962] Building codeuri: /data/mci/255f6ba3e3abfbd6adedc63a2e5ba219/src/go.mongodb.org/mongo-driver/internal/test/faas/awslambda/mongodb runtime: provided.al2 metadata: {'BuildMethod': 'go1.x'} architecture: arm64 functions: MongoDBFunction
      [2024/05/08 15:52:54.882] Running GoModulesBuilder:Build
      [2024/05/08 15:52:54.882] Error: GoModulesBuilder:Build - Builder Failed: stat /data/mci/255f6ba3e3abfbd6adedc63a2e5ba219/src/go.mongodb.org/mongo-driver/internal/test/faas/awslambda/mongodb/bootstrap: directory not found
      [2024/05/08 15:52:56.423] Starting deployment
      [2024/05/08 15:52:56.423] Sourcing secrets
      [2024/05/08 15:52:56.423] Build Failed
      [2024/05/08 15:52:56.423] Deleting Lambda Function...
      [2024/05/08 15:52:56.423] Error: The input stack dbx-go-lambda-025a3f213e93b63c does not exist on Cloudformation in the region us-east-1
      [2024/05/08 15:52:56.443] SAM CLI update available (1.116.0); (1.96.0 installed)
      [2024/05/08 15:52:56.443] To download: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
      [2024/05/08 15:52:56.777] Command 'shell.exec' (step 2 of 2) failed: shell script encountered problem: exit code 1.
      

            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: