Fixed: CentOS 8 ---- Error: Failed to launch the browser process!
See original GitHub issueI 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:
- Created 4 years ago
- Reactions:17
- Comments:12
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
in my case, I had to run this: (CentOS 8)
yum install -y chromium libmng libXScrnSaver libXv
@damiantoczek I got a lot
No match for argument
like blow can you help?