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

Puppeteer/Chrome not starting when Docker Container is used in Cloud Run Environment #120

Open
Pixxeasy opened this issue Dec 23, 2024 · 1 comment

Comments

@Pixxeasy
Copy link

Describe the bug
Puppeteer cannot launch the browser process, since the shared library libnss3.so, needed for chrome to start, cannot be found.

To Reproduce
Steps to reproduce the behavior:

  1. docker pull for the latest tag (11.0.0)
  2. docker tag
  3. docker push to Google artifact registry
  4. deploy container with Cloud Run

Expected behavior
The browser process starts without any errors

Screenshots
Screenshot 2024-12-23 094734

Possible solution
Adding the missing dependencies not bundled with the node environment of Cloud Run to the Dockerfile or creating an own Dockerfile for the Cloud Run use case. Referring to the following articles:
https://pptr.dev/troubleshooting#running-puppeteer-on-google-cloud-run-1
https://pptr.dev/troubleshooting#chrome-doesnt-launch-on-linux

@orangecoding
Copy link
Owner

hey.

this pr might fix your issue. can you try again with the latest release?

#122

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

2 participants