DEV Community

FrugalisMinds
FrugalisMinds

Posted on • Updated on

Puppeteer Sandbox Error - Unable to Launch browser mode in sandbox mode.

Real problem starts here , We are not able to launch browser without --no-sandbox flag.Most of you might have faced the sandbox error in puppeteer Centos 7 on AWS or Any VPS .

Navigate to node_modules/puppeteer/.local-chromium/linux-549031 folder you will notice chrome_sanbox.

Follow the below commands to fix this issue

sudo mv chrome_sandbox chrome-sandbox
sudo chown root chrome-sandbox
sudo chmod 4755 chrome-sandbox
Enter fullscreen mode Exit fullscreen mode

Have a look at the article here which has a detailed steps and resources to install puppeteer on centos7

Top comments (0)