{"id":35,"date":"2022-06-01T15:42:12","date_gmt":"2022-06-01T15:42:12","guid":{"rendered":"https:\/\/geekotes.com\/?p=35"},"modified":"2022-06-22T13:55:34","modified_gmt":"2022-06-22T13:55:34","slug":"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","status":"publish","type":"post","link":"https:\/\/geekotes.com\/index.php\/2022\/06\/01\/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\/","title":{"rendered":"[RESOLVED] Running Puppeteer on cloud Linux server got error: Failed to load GLES library: &#8230;\/chrome-linux\/libGLESv2.so: cannot open shared object file: Permission denied"},"content":{"rendered":"\n<p>After searching tons of pages and trying plenty of parameters, I found that only keeping these three parameters <mark style=\"background-color:#abb8c3\" class=\"has-inline-color has-white-color\">&#8216;&#8211;no-sandbox&#8217;, &#8216;&#8211;disable-setuid-sandbox&#8217;, &#8216;&#8211;disable-gpu&#8217;<\/mark> 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. \ud83d\ude42<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    (async () =&gt; {\n        globleBrowser = await puppeteer.launch({\n            headless : true,\n            ignoreHTTPSErrors : true,\n            args: &#91;'--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu']           \n        });        \n    })();<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After searching tons of pages and trying plenty of parameters, I found that only keeping these three parameters &#8216;&#8211;no-sandbox&#8217;, &#8216;&#8211;disable-setuid-sandbox&#8217;, &#8216;&#8211;disable-gpu&#8217; 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. \ud83d\ude42<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8,39,9,5,7,6,4],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-cloud-website","tag-cannot-open-shared-object-file","tag-cloud-website","tag-failed-to-load-gles-library","tag-launch-error","tag-libglesv2-so","tag-permission-denied","tag-puppeteer"],"_links":{"self":[{"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":2,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}