[RESOLVED] Running Puppeteer on cloud Linux server got error: Failed to load GLES library: …/chrome-linux/libGLESv2.so: cannot open shared object file: Permission denied

After searching tons of pages and trying plenty of parameters, I found that only keeping these three parameters ‘–no-sandbox’, ‘–disable-setuid-sandbox’, ‘–disable-gpu’ for launching the Puppeteer browser works for me. If you are encountering the same issue, just take it. I will be super glad if it helped you. 🙂

    (async () => {
        globleBrowser = await puppeteer.launch({
            headless : true,
            ignoreHTTPSErrors : true,
            args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu']           
        });        
    })();

Add a Comment

Your email address will not be published. Required fields are marked *