-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Failed to launch chrome #3422
Comments
Yep I'm seeing the same thing. This is causing issues on our production service right now. |
This is likely related to this issue: |
i see the same problem Tell us about your environment:
What steps will reproduce the problem?
What happens instead?
|
@steren is this something that your team can look at? |
Thanks for the report. The issue seems to be related to the execution environment. We will investigate internally Do you confirm it works with an older version of the module? |
@steren It is working with version upto 1.7.0. Anything higher so far has failed, same error. |
I can also confirm that 1.7.0 is working for us. |
I see the same error. I changed environment and tried sometimes, I write my error informations. Tell us about your environment:
browser = await puppeteer.launch({headless: true, userDataDir: '/tmp/', args: ['--disable-gpu', '--disable-dev-shm-usage', '--disable-setuid-sandbox', '--no-first-run', '--no-sandbox', '--no-zygote', '--single-process']}); What happens?
AdditionalI re-created cloud function and re-created project. Sometimes cloud functions return success(launch OK) with puppeteer v1.9.0. But sometimes cloud functions return failed(launch NG) after update cloud functions(index.js, package.json, memory spec, etc). I'm confused about this issue. This is maybe almost reproducible issue, but sometimes success with same code after re-create the environment. |
Did anyone find the fix for the same, facing the same issue on aws ec2 linux instance |
it seems that a previous version should work, try using that for now?
…On Wed, Oct 24, 2018 at 11:16 AM Lovish Aggarwal ***@***.***> wrote:
Did anyone find the fix for the same, facing the same issue on aws ec2
linux instance
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3422 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAR4jMVtb4wr27d35CpjVr75mb_ST2Tzks5uoCHngaJpZM4XkLXA>
.
|
I am experiencing the same issues when using Puppeteer in a Firebase Cloud Function. I tried changing the Puppeteer version to previous versions as recommended above (1.61, 1.62, 1.7, and 1.8) and redeploying only for it to work intermediately and then not at all if deployed again. @steren - Is this a file permission issue with Google Cloud Functions + Puppeteer? It looks like Chromium is being added but not accessed. |
The Google Cloud engineering team is investigating. I performed some tests, and I confirm that the observed behavior is flaky on Cloud Functions:
I tested on App Engine standard environment (sample), and had no issue running 1.9.0 or 1.7.0 |
@steren, this seems to be the same issue, then: |
sometime it worked with google cloud function. i have tried to deploy 3 to 4 time and 4th time it worked with 1.8 version |
I'm also seeing this on deploys to Google Cloud Functions today |
I also get it in Firebase cloud functions, here is my log:
|
Running the following script on GCF:
The following libs are reported missing:
These where in the filesystem in a dump I made a few days ago. |
Thanks for your help reporting and diagnosing the issue. |
Seems to be fixed now, thanks! |
Am getting this on my console while trying to run the project on aws ec2 with Amazon Linux AMI 2018.03.0.20180811 x86_64 HVM Please help me as soon as possible. I did npm reinstalled npm puppeteer after @steren last comment, but problem seems to persist. Let me know if am missing something basic. Error: Failed to launch chrome! TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
(node:7422) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) |
This issue was for Puppeteer on Cloud Functions, which has now been fixed. |
@steren Mind sharing the fix? |
Re-deploy your function and you should be good to go (I am not sure broken function are automatically repaired) |
@steren Thanks. Are these packages part of this project's recommended list? |
These were OS packages from the Cloud Functions' base container image. These are not something users can control. |
Going to close this as it's been fixed on the cloud-side. They even added tests so hopefully this won't happen again! As recommended in #3422 (comment), you may have to redeploy your functions. |
@steren How can we redeploy functions? |
Hi all, Please head over and take a look. Looks like the same issue people were having here, we're using puppeteer |
running in aws lambda |
It is not working for me, i am using Lambda too, but the error still there. How do you pass this @kjr247 ? I already tried with 3Gb RAM and timeout to be 5 mins. error while loading shared libraries: libnss3.so: |
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
Deploying the following code to GCF. Try executing it.
code
What happens instead?
The text was updated successfully, but these errors were encountered: