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

Running as root without --no-sandbox is not supported #9

Closed
Muratcol opened this issue Jun 16, 2021 · 2 comments
Closed

Running as root without --no-sandbox is not supported #9

Muratcol opened this issue Jun 16, 2021 · 2 comments

Comments

@Muratcol
Copy link

OS: Ubuntu 18.04
Node: v10.24.1

Hello,

I'm having the following issue while trying to render an HTML file:

// Command: render -i /tmp/8c7a99b9-4417-49ac-891d-7246c426c72e.html -o /tmp/8c7a99b9-4417-49ac-891d-7246c426c72e_rendered.mp4

stdout: Open Page:  file:///home/muratcolyaran/projects/microservices-google-cloud/index.html

stdout: Start Rendering

stderr: Error: Failed to launch chrome!
[0616/111525.046404:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.


TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

    at onClose (/home/muratcolyaran/projects/microservices-google-cloud/node_modules/@scenejs/render/node_modules/puppeteer/lib/Launcher.js:348:14)
    at Interface.helper.addEventListener (/home/muratcolyaran/projects/microservices-google-cloud/node_modules/@scenejs/render/node_modules/puppeteer/lib/Launcher.js:337:50)
    at Interface.emit (events.js:203:15)
    at Interface.close (readline.js:397:8)
    at Socket.onend (readline.js:173:10)
    at Socket.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

I couldn't find any options to give Puppeteer. How could I send --no-sandbox option to puppeteer?

@daybrush
Copy link
Owner

@Muratcol

Hi. @scenejs/render 0.10.4 is released. Check it again.

@Muratcol
Copy link
Author

Yes, thanks for the fast response!

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