-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
[BUG] /tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory #254
Comments
|
@Sparticuz Yes, the screenshot is for this (above) version I mentioned. I had tried the same with the given version 122 as well. Here is the screenshot of the same code for reference: Edit: formatting |
Also tried Method 2 from https://stackoverflow.com/a/72485784
Didnt work. |
console.log your LD_LIBRARY_PATH, after calling executablePath. Make sure /tmp/al2/lib is in it. The package puts it before all the other entries. |
It's there, still throws the same error. Super weird. |
Exactly same issue here. Using Esbuild. |
Maybe try using chromium-min variant? Otherwise Amazon might have silently updated their images |
We also started facing this today. Puppeteer crashes, and the Chromium logs contain
The breakage seems to come between lambda images nodejs:18.v26 and nodejs:18.v28. |
@noppa - yes, they updated Node JS version yesterday |
We noticed this as well, we had to turn off Auto mode for Lambda runtime upgrades and pin to What is the realistic path forward, I'm curious? |
Should just need to boot up the corresponding image on ec2 and grab the updated libs |
Rebuilding the layer with the latest version (123.0.1) of Plus we had to re-enable |
Thank you for checking! I will push a fix soon. |
Can someone try this? I've updated the |
We don't use this package, but might be helpful nonetheless - this error can occur if |
@Sparticuz On Friday I tried your al2.tar.br file and it did not work for me. However I will note that I had many other issues on my end so it may have resolved some but not others. The fix for me was to roll back to nodejs 18.26 from 18.28. |
I am using the AWS layer method.
Already checked all existing issues for similarity.
Please see the screenshot below for more debugging and details.
getAllFilesAndFolders
gets all files and prints them in an array.Environment
chromium
Version: 122.0.0puppeteer
/puppeteer-core
Version: 22.5.0FYI Previously has tried: chromium:118.0 / puppeteer:21.4 - Same issue
My codebase is serverless typescript, which gets compiled by webpack and deployed.
Expected Behavior
Code should just run.
Current Behavior
Steps to Reproduce
The text was updated successfully, but these errors were encountered: