puppeteer: Fixed: CentOS 8 ---- Error: Failed to launch the browser process!
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.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 21
- Comments: 15
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?I had the same issue in the centos 7 running only
sudo yum install -y chromium
fixed the problem Thanks @damiantoczeksudo yum install -y chromium
worked from me, thanks!Needed Below things for Centos:-
alsa-lib.x86_64 atk.x86_64 cups-libs.x86_64 gtk3.x86_64 ipa-gothic-fonts libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXrandr.x86_64 libXScrnSaver.x86_64 libXtst.x86_64 pango.x86_64 xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-cyrillic xorg-x11-fonts-misc xorg-x11-fonts-Type1 xorg-x11-utils libnss3.so libatk-bridge-2.0.so.0
After installing dependencies you need to update nss library using this command
yum update nss -y yum install at-spi2-atk yum install libdrm.so.2 yum install pulseaudio yum install libdrm yum install libgbm