title: Failed to launch chrome using puppeteer in Centos 7
body: <p>I have read every thread in stackoverflow, github and blogs before posting this issue.</p>
  <p>I am trying to run <code>puppeteer</code> in Centos 7</p>
  <p>Here's my simple program</p>
  <pre><code>const browser = await puppeteer.launch({
      headless:true,
      args: [&quot;--no-sandbox&quot;, &quot;--disable-setuid-sandbox&quot;]
  })
  const page = await browser.newPage()
  await page.setViewport({ width: 1280, height: 800 })
  await page.goto('https://www.nytimes.com/')
  await page.screenshot({ path: 'nytimes.png', fullPage: true })
  await browser.close()
  </code></pre>
  <pre><code>Error: Failed to launch chrome!
  
  
  TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
  
      at onClose (/home/admin/web/xxxx/puppet_test/node_modules/puppeteer/lib/Launcher.js:348:14)
      at Interface.&lt;anonymous&gt; (/home/admin/web/xxxx/puppet_test/node_modules/puppeteer/lib/Launcher.js:337:50)
      at Interface.emit (events.js:326:22)
      at Interface.close (readline.js:416:8)
      at Socket.onend (readline.js:194:10)
      at Socket.emit (events.js:326:22)
      at endReadableNT (_stream_readable.js:1241:12)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  </code></pre>
  <p>I have installed all dependencies required and suggested in google blog and <a href="https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix" rel="nofollow noreferrer">Puppeteer documentation</a></p>
  <p>I even tried installing google-chrome additionally and giving puppeteer its path
  <code>executablePath: '/usr/bin/google-chrome'</code> but it didn't help.
  <code>ldd chrome | grep not</code> was of no use either.</p>
  <p>Puppeteer runs very well in my other Centos7 installations but don't understand why it isn't working here. Please HELP!</p>
  <pre><code>Node v12.20.1
  Puppeteer v2.0.0
  </code></pre>