prerender.io headless chrome won't start

Viewed 2475

I'm trying to start prerender with headless chrome(v62) on my Centos7 sistem but it won't start. When running "node server.js" I get:

2017-11-23T08:50:08.329Z Starting Prerender

2017-11-23T08:50:08.331Z Starting Chrome

2017-11-23T08:50:08.343Z Prerender server accepting requests on port 3000

2017-11-23T08:50:08.392Z Chrome connection closed... restarting Chrome

2017-11-23T08:50:08.392Z Chrome died immediately after restart... stopping Prerender

Does anyone know what could be the cause? Thank you very much

4 Answers

solution was modifying the server.js file from the prerender module

var server = prerender({
  chromeFlags: ['--no-sandbox', '--headless', '--disable-gpu', '--remote-debugging-port=9222', '--hide-scrollbars']
});

A great way to find out the underlying issue is to try running chrome on it's own. Then if it fails it should give you an error as to why. Just find your chrome executable and pass in all the flags you're using with prerender and see what happens.

For me, chrome wasn't starting because the windows system I was running it on didn't have the required Font files that chrome needed to start up.

Although it may be windows specific, you can find more info on that here: https://github.com/prom3theu5/ServerCoreFonts

Related