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.

Last version of google chrome broke puppeteer

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 5.0.0
  • Platform / OS version: Docker (node 12)
  • Node.js version: 12

What steps will reproduce the problem?

run with a clean (–no-cache) build.

I followed the steps here https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md for docker RUN apt-get update \ && apt-get install -y wget gnupg \ && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ && apt-get update \ && apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/*

I was able to make it work by changing google-chrome-unstable with google-chrome-stable. Is this okay ? If so do you want a PR to update the documentation ?

What is the expected result?

No errors

What happens instead?

sut_1 | Error: Failed to launch the browser process! sut_1 | /app/node_modules/puppeteer/.local-chromium/linux-756035/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory sut_1 | sut_1 | sut_1 | TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md sut_1 | sut_1 | at onClose (/app/node_modules/puppeteer/lib/cjs/node/BrowserRunner.js:193:20) sut_1 | at Interface.<anonymous> (/app/node_modules/puppeteer/lib/cjs/node/BrowserRunner.js:183:65) sut_1 | at Interface.emit (events.js:327:22) sut_1 | at Interface.EventEmitter.emit (domain.js:482:12) sut_1 | at Interface.close (readline.js:416:8) sut_1 | at Socket.onend (readline.js:194:10) sut_1 | at Socket.emit (events.js:327:22) sut_1 | at Socket.EventEmitter.emit (domain.js:482:12) sut_1 | at endReadableNT (_stream_readable.js:1221:12) sut_1 | at processTicksAndRejections (internal/process/task_queues.js:84:21)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:19
  • Comments:8

github_iconTop GitHub Comments

31reactions
dougndcommented, Jul 13, 2020

I’ve had the same issue. I fixed it by adding libxss1 to the list of fetched libraries:

RUN apt-get update \ 
    && apt-get install -y wget gnupg \ 
    && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ 
    && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ 
    && apt-get update \ 
    && apt-get install -y libxss1 google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \ --no-install-recommends \ 
    && rm -rf /var/lib/apt/lists/*
3reactions
ygorthcommented, Sep 11, 2020

I had the same issue on CentOS 7, I fixed by doing that:

$ repoquery --nvr --whatprovides libXss.so.1
libXScrnSaver-1.2.2-6.1.el7
$ yum install libXScrnSaver
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Puppeteer
The most common cause is a bug in Node.js v14.0.0 which broke extract-zip , the module Puppeteer uses to extract browser downloads into...
Read more >
Did Puppeteer get an update recently? Because it's been ...
I do some stuff on repl.it and recently I've been getting error involving chrome r594312 and a failed download, and I resolved it...
Read more >
Chrome Version 101 broke the loading of our organizations ...
Chrome Version 101 broke the loading of our organizations startup pages when Chrome is opened - Chrome Enterprise & Education Community.
Read more >
Netlify function with puppeteer breaks if I make any changes
For example, as of today, the latest version of puppeteer is 18.0.5. The latest version of chromium stated on puppeteer's support page is...
Read more >
Runtime versions using Node.js and Puppeteer
Explains the versions of canary runtimes, libraries, and configuration information.
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