Report this

What is the reason for this report?

Pupeeteer supported in Digital Ocean Apps?

Posted on March 6, 2021

I am trying to deploy my node.js app to Digital Ocean Apps, and it successfully deploys, however the functionality does not work as I am receiving the following errors:

Error: Error: Failed to launch the browser process!

/workspace/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

Does Digital Ocean Apps not support puppeteer? I have tried various different build commands to deploy. Is there a specific build command I should be using?

Any insight is appreciated.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey @Kirky1

You won’t be able to launch puppeteer using buildpacks. You might have to deploy the app using Dockerfile. However, I have not installed Puppeteer myself using Dockerfile so I would recommend you to refer to the articles or posts available on Google such as below: https://github.com/buildkite/docker-puppeteer https://hub.docker.com/r/buildkite/puppeteer/ https://hub.docker.com/r/buildkite/puppeteer/dockerfile https://paul.kinlan.me/hosting-puppeteer-in-a-docker-container/

It is always convenient to run such apps in Droplets because you have root permissions to run and execute such commands. Also, you can do deep customization of the underlying infrastructure as per your needs. However, if you are considering running this in App Platform and come across any error, then please reach out to the support team.

Best, Dikshith

Hi @Kirky1 Do you find the solution for it?

I have the same problem. Thanks

Hi, I’ve struggled with Puppeteer myself as I needed it for Angular-Scully env.

Check out my solution: https://stackoverflow.com/a/72274835/1205281

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.