Skip to content

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

@Pixxeasy

Description

@Pixxeasy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions