dblazeski / express-chrome-ssr

Server side rendering with puppeteer and reused headless chrome instance
MIT License
28 stars 10 forks source link

server hangs indefinitely #1

Open fayak opened 4 years ago

fayak commented 4 years ago

I followed all your instructions and dependencies (debian 10), however I can't make it work. The server runs, the /test route does print test, but when I try to render an URL, it hangs forever.

Please let me know which details do you need

fayak commented 4 years ago

It appears to be because I tried to run this app as root. Using a non-root user and const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']}); works for the moment in my docker env.

dblazeski commented 4 years ago

Hey @fayak - Running puppeteer as root without sandbox is not supported Running as root without --no-sandbox is not supported.

https://github.com/karma-runner/karma-chrome-launcher/issues/158