express-chrome-ssr icon indicating copy to clipboard operation
express-chrome-ssr copied to clipboard

server hangs indefinitely

Open fayak opened this issue 4 years ago • 2 comments

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 avatar Mar 11 '20 13:03 fayak

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.

fayak avatar Mar 11 '20 14:03 fayak

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

dblazeski avatar Mar 11 '20 15:03 dblazeski