Skip to content

AWS CRT binary not present in any of the following locations #2753

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
berenddeboer opened this issue Sep 6, 2021 · 6 comments
Closed

AWS CRT binary not present in any of the following locations #2753

berenddeboer opened this issue Sep 6, 2021 · 6 comments
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. dependencies This issue is a problem in a dependency.

Comments

@berenddeboer
Copy link

Describe the bug

When upgrading to 3.29.0, and compiling a typescript file to a single javascript file with esbuild, and running that with node, you get:

AWS CRT binary not present in any of the following locations:

       /codebuild/output/bin/native/aws-crt-nodejs
        /codebuild/output/bin/linux-x64/aws-crt-nodejs

Your environment

First saw this in a codebuild job, but happens everywhere. So for example AWS Linux Workspace.

SDK version number

@aws-sdk/client-s3@3.29.0

Is the issue in the browser/Node.js/ReactNative?

node.js

Seen with version 14 and 16.

Expected behavior

As per #2750 you should not pull in aws-crt and 200MB of dependencies.

@berenddeboer berenddeboer added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Sep 6, 2021
@ffxsam
Copy link

ffxsam commented Sep 7, 2021

I'm getting this too, as of today:

{
    "errorType": "Error",
    "errorMessage": "AWS CRT binary not present in any of the following locations:\n\t/bin/native/aws-crt-nodejs\n\t/bin/linux-x64/aws-crt-nodejs",
    "stack": [
        "Error: AWS CRT binary not present in any of the following locations:",
        "\t/bin/native/aws-crt-nodejs",
        "\t/bin/linux-x64/aws-crt-nodejs",
        "    at node_modules/aws-crt/dist/native/binding.js (/var/task/empty-trash.js:79961:13)",
        "    at __require (/var/task/empty-trash.js:38:44)",
        "    at node_modules/aws-crt/dist/native/crt.js (/var/task/empty-trash.js:79976:37)",
        "    at __require (/var/task/empty-trash.js:38:44)",
        "    at node_modules/aws-crt/dist/index.js (/var/task/empty-trash.js:81249:28)",
        "    at __require (/var/task/empty-trash.js:38:44)",
        "    at node_modules/@aws-sdk/signature-v4-crt/dist/cjs/CrtSignerV4.js (/var/task/empty-trash.js:81368:21)",
        "    at __require (/var/task/empty-trash.js:38:44)",
        "    at node_modules/@aws-sdk/signature-v4-crt/dist/cjs/index.js (/var/task/empty-trash.js:81490:31)",
        "    at __require (/var/task/empty-trash.js:38:44)"
    ]
}

This CRT package is new.

└─ src@workspace:src
   └─ @aws-sdk/client-s3@npm:3.29.0 (via npm:^3.29.0)
      └─ @aws-sdk/middleware-sdk-s3@npm:3.29.0 (via npm:3.29.0)
         └─ @aws-sdk/signature-v4-crt@npm:3.29.0 (via npm:3.29.0)
            └─ aws-crt@npm:1.9.1 (via npm:^1.9.0)

This broke our functions in production. Rolling back to 3.28.0 of the SDK fixed it.

@AllanZhengYP @ajredniwja ☝️💥

(likely related to #2750)

@AllanZhengYP
Copy link
Contributor

Hi @berenddeboer, can you provide which platform you are running the SDK in? Since we have rolled back(as in #2750) the dependency in question temporarily, I will re-assign this issue to the aws-crt package repo.

@AllanZhengYP
Copy link
Contributor

@berenddeboer Seems like I cannot transfer the issue because we are not in the same github org. Can you reopen this issue against their repo? This issue worths their attention.

@AllanZhengYP AllanZhengYP added closing-soon This issue will automatically close in 4 days unless further comments are made. dependencies This issue is a problem in a dependency. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Sep 8, 2021
@AllanZhengYP
Copy link
Contributor

To bring up their attention, I manually copied this ticket to the CRT package repo: awslabs/aws-crt-nodejs#251. I will close this one. You should follow up on the other ticket.

@berenddeboer
Copy link
Author

@AllanZhengYP I saw this on AWS CodeBuild jobs, so that's Ubuntu 20 I think.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. dependencies This issue is a problem in a dependency.
Projects
None yet
Development

No branches or pull requests

3 participants