Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Version 0.32.6 seems to be broken #29

Open
perfectbase opened this issue Dec 9, 2023 · 5 comments
Open

Version 0.32.6 seems to be broken #29

perfectbase opened this issue Dec 9, 2023 · 5 comments

Comments

@perfectbase
Copy link

I tried to download the version 0.32.6 and use it in my layer, but it got an error.
downgrading the zip to 0.32.1 worked fine. So maybe there is a problem with this build?
I'm using node18.x with X86_64. and deploying it with the sst example app here: https://github.com/sst/sst/tree/master/examples/bucket-image-resize

My problem is already solved, so I wont be able to follow this issue.
Feel free to close it when solved.

@pstovik
Copy link

pstovik commented Dec 13, 2023

[REEVALUATING] - version rollback keeps failing, maybe something else has impact
Version 0.32.6 seems to have issue on our project as well.
Running CI tests via vitest (X64 architecture) are failing on "killed nodejs process", failure "the corrupted size vs. prev_size"
Version 0.32.1 with this in place https://sharp.pixelplumbing.com/install#worker-threads works

our project cause was due usage of the latest npm version of sharp which is 0.33.0 now together with this "sharp layer" which is 0.32.6
NOTE: even 0.32.6 npm + 0.32.6 layer was not working out of the box - got runtime error of missing linux-64 build
OUR SOLUTION: downgraded back to 0.32.1

@DavidVaness
Copy link

Also using 0.32.1

@grant-d
Copy link

grant-d commented Feb 15, 2024

Ditto, 0.32.6 broken, but rolling back to 0.32.1 works.
Here is the error from lambda logs:

{
    "timestamp": "2024-02-15T21:57:18.474Z",
    "level": "ERROR",
    "message": {
        "errorType": "Error",
        "errorMessage": "Could not load the \"sharp\" module using the linux-arm64 runtime\nPossible solutions:\n- Ensure optional dependencies can be installed:\n    npm install --include=optional sharp\n    yarn add sharp --ignore-engines\n- Ensure your package manager supports multi-platform installation:\n    See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n    npm install --os=linux --cpu=arm64 sharp\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install",
        "stackTrace": [
            "Error: Could not load the \"sharp\" module using the linux-arm64 runtime",
            "Possible solutions:",
            "- Ensure optional dependencies can be installed:",
            "    npm install --include=optional sharp",
            "    yarn add sharp --ignore-engines",
            "- Ensure your package manager supports multi-platform installation:",
            "    See https://sharp.pixelplumbing.com/install#cross-platform",
            "- Add platform-specific dependencies:",
            "    npm install --os=linux --cpu=arm64 sharp",
            "- Consult the installation documentation:",
            "    See https://sharp.pixelplumbing.com/install",
            "    at Object.257 (/opt/nodejs/node_modules/sharp/index.js:10119:9)",
            "    at __webpack_require__ (/opt/nodejs/node_modules/sharp/index.js:10447:41)",
            "    at Object.7300 (/opt/nodejs/node_modules/sharp/index.js:5406:1)",
            "    at __webpack_require__ (/opt/nodejs/node_modules/sharp/index.js:10447:41)",
            "    at Object.1842 (/opt/nodejs/node_modules/sharp/index.js:5854:15)",
            "    at __webpack_require__ (/opt/nodejs/node_modules/sharp/index.js:10447:41)",
            "    at /opt/nodejs/node_modules/sharp/index.js:10464:37",
            "    at Object.<anonymous> (/opt/nodejs/node_modules/sharp/index.js:10467:12)",
            "    at Module._compile (node:internal/modules/cjs/loader:1376:14)",
            "    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)"
        ]
    }
}

@omersimsek29
Copy link

omersimsek29 commented May 17, 2024

Well I can confirm that I get the same error message as @grant-d when trying to setup my lambda layer with version 0.32.6, testing version 0.32.1 now.

edit:
0.32.1 isn't working properly? Anyone else having same issue?

@grant-d
Copy link

grant-d commented May 17, 2024

@omersimsek29 btw I never did figure it out, I have just stuck with the old version for now.
Hopefully someone else has a better idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants