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

Build fails on Gatsby Cloud + other CD solutions #2

Open
Zygar opened this issue Jul 29, 2021 · 3 comments
Open

Build fails on Gatsby Cloud + other CD solutions #2

Zygar opened this issue Jul 29, 2021 · 3 comments

Comments

@Zygar
Copy link

Zygar commented Jul 29, 2021

The Puppeteer dependency introduces some sensitivities to the deployment environment. Attempting to build on Gatsby Cloud or Digital Ocean generates:

/usr/src/app/www/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome: error while loading shared libraries: libatk-bridge-2.0.so.0: cannot open shared object file: No such file or directory

Presumption is that these environments are containerised and lack the modules that Puppeteer depends on

Do you see any way around this, or is the best solution just to roll-your-own CI solution with a VPS?

@Carlosf96
Copy link

Any help on this one ?

@Zygar
Copy link
Author

Zygar commented Nov 8, 2021

@Carlosf96 I've worked around it by using a containerized Github Action to build PDFs as part of the Gatsby Cloud deployment sequence. It's not the most elegant but it works ok: https://github.com/Zygar/pagedjs-cli-github-action

@RenderCoder
Copy link

I use this docker image for CI: satantime/puppeteer-node:16

but still has other problem:

error "gatsby-plugin-pdf" threw an error while running the onPostBuild lifecycle:
[96](https://git.corp.acflow.com/app-internal/protocol-document/-/jobs/2896#L96)Failed to launch the browser process!
[97](https://git.corp.acflow.com/app-internal/protocol-document/-/jobs/2896#L97)[0908/035510.886998:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
[98](https://git.corp.acflow.com/app-internal/protocol-document/-/jobs/2896#L98)TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

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

3 participants