You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npx svgexport /tmp/tmp-2951T7QQRqKpEt1U/d58cc138.svg x.png
(node:3110) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
[0324/153017.535388:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
If the line in render.js var browser = await puppeteer.launch(); is replaced with var browser = await puppeteer.launch({args: ['--no-sandbox']});, then it works. Could this either detect it is running as root (such as in a docker image) or a way to pass args (via environment variables) be added? This is breaking a gitbook GitLab CI using the node:10 image.
The text was updated successfully, but these errors were encountered:
Because of security reasons it is not recommend to run docker or svgexport /pupeteer as root. If you switch to a different user for docker it will work.
This currently fails to work in docker with:
npx svgexport /tmp/tmp-2951T7QQRqKpEt1U/d58cc138.svg x.png (node:3110) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process! [0324/153017.535388:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
If the line in render.js
var browser = await puppeteer.launch();
is replaced withvar browser = await puppeteer.launch({args: ['--no-sandbox']});
, then it works. Could this either detect it is running as root (such as in a docker image) or a way to pass args (via environment variables) be added? This is breaking a gitbook GitLab CI using the node:10 image.The text was updated successfully, but these errors were encountered: