Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't execute Puppeteer with user "apache" (CentOS 7) #2441
Tell us about your environment:
What steps will reproduce the problem?
I'm using the example code found in this repository to create a PDF from a webpage.
What is the expected result?
The PDF should have been generated correctly.
What happens instead?
An error occurs on the line
The node script (which uses Puppeteer) is invoked from PHP, and so it is run with the user
What is causing the error? Something related to apache user's permissions? I've followed all troubleshotting guides but I had no luck at the moment.
Finally I found a way to workaround the issue.
Instead of using the bundled version of Chromium, I tried to install Chromium on my system (and configured puppeteer to use it). The version installed system-wide doesn't exibit that weird issue - I don't know why.
@Ivan-Perez Found a solution to my situation. Had been using an independent Chrome install script here: https://intoli.com/blog/installing-google-chrome-on-centos/
Google messed up one of the repositories, so the script stopped working about 2 days ago. In the comments though there's a quick way to edit the script to make it work again.
Mine solved this issue with
basically a file-system permission on chromium used by puppeteer