question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fixed: CentOS 8 ---- Error: Failed to launch the browser process!

See original GitHub issue

I was getting this error:

Error: Failed to launch the browser process!
/home/user/scraper/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md

    at onClose (/home/user/scraper/node_modules/puppeteer/lib/Launcher.js:750:14)
    at Interface.<anonymous> (/home/user/scraper/node_modules/puppeteer/lib/Launcher.js:739:50)
    at Interface.emit (events.js:228:7)
    at Interface.close (readline.js:402:8)
    at Socket.onend (readline.js:180:10)
    at Socket.emit (events.js:228:7)
    at endReadableNT (_stream_readable.js:1185:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
(node:32709) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:32709) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Not sure which fixed it but I run those two commands here:

sudo yum install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils

and then I installed chromium

sudo yum install -y chromium

I hope this helps anyone.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:12

github_iconTop GitHub Comments

16reactions
p30arenacommented, Oct 11, 2020

in my case, I had to run this: (CentOS 8) yum install -y chromium libmng libXScrnSaver libXv

4reactions
goalbasedcommented, Jun 16, 2020

@damiantoczek I got a lot No match for argument like blow can you help?

No match for argument: gconf-service
No match for argument: libasound2
No match for argument: libatk1.0-0
No match for argument: libc6
No match for argument: libcairo2
No match for argument: libcups2
No match for argument: libdbus-1-3
No match for argument: libexpat1
No match for argument: libfontconfig1
No match for argument: libgcc1
No match for argument: libgconf-2-4
No match for argument: libgdk-pixbuf2.0-0
No match for argument: libglib2.0-0
No match for argument: libgtk-3-0
No match for argument: libnspr4
No match for argument: libpango-1.0-0
No match for argument: libpangoca
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Failed to launch the browser process puppeteer
What works for me was to download chromium manually sudo apt-get install chromium-browser . And then, tell Puppeteer where chromium is located :...
Read more >
Internal browser error: Failed to launch the browser process!
Internal browser error: Failed to launch the browser process! If you're getting the above error, run the following command to fix the issue....
Read more >
Fix Chrome update problems & failed updates - Google Support
If you're having problems updating Chrome on your computer, you might see: Update failed: Updates are disabled by administrator; Update failed (Error: 3...
Read more >
CentOS 8 安装puppeteer 运行报错解决方式 - 简书
Fixed : CentOS 8 ---- Error: Failed to launch the browser process! ERROR:zygote_host_impl_linux.cc(89) Running as root without --no-sandbox is ...
Read more >
Why do I get a "MATLABWindow application failed to launch ...
Unable to start App Designer due to an internal error. ... What could be causing this on Ubuntu 18.04 LTS and how can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found