ubuntu shows some errors. release V19.0.0
See original GitHub issueBug description
after update to V19.0.0,ubuntu shows some errors when running. This seems to be a problem with the chrome path. The error that is eventually reported after relying on the installation is difficult to solve. Note that this is the case with Ubuntu.
Puppeteer version
19.0.0
Node.js version
16.7.1
npm version
8.15.0
What operating system are you seeing the problem on?
Linux
Configuration file
const puppeteer = require('puppeteer');
const moment = require('moment');
console.log(moment().format("YYYY-MM-DD HH:mm:ss"));
(async () => {
// const browser = await puppeteer.launch({ args: ['--no-sandbox', '--disable-setuid-sandbox'] })
const pathToExtension = '/root/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome';
const browser = await puppeteer.launch({
headless: true,
timeout: 0,
devtools: true,
executablePath: pathToExtension,
args:['--disable-infobars','--no-sandbox','--disable-setuid-sandbox']
});
const page = await browser.newPage();
await page.goto('https://www.google.com');
await page.screenshot({path: 'example110401.png'});
await browser.close();
})();
Relevant log output
[00:16:30] /root/workspace/pupperteer_WcJ8/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299
[00:16:30] reject(new Error([
[00:16:30] ^
[00:16:30]
[00:16:30] Error: Failed to launch the browser process!
[00:16:30] /root/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /root/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome)
[00:16:30] /root/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome: /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0: no version information available (required by /root/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome)
[00:16:30] /root/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome: symbol lookup error: /root/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome: undefined symbol: gbm_bo_get_modifier
[00:16:30]
[00:16:30]
[00:16:30] TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
[00:16:30]
[00:16:30] at onClose (/root/workspace/pupperteer_WcJ8/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299:20)
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
sudo apt-get upgrade results in 404 errors for everything
Run the following command to update archive.ubuntu.com and security.ubuntu.com package repository URLs with old-releases.ubuntu.com.
Read more >Ubuntu Server Documentation
This section of our documentation contains step-by-step tutorials to help outline what Ubuntu Server is capable of while helping you achieve specific aims,...
Read more >Download & Update Node.js to the Latest Version! Node v19 ...
Direct download links to update to the latest Node.js versions: Node v19.0.0 / LTS v16.18.0.
Read more >Docker Compose release notes | Docker Documentation
Docker Compose now displays an error message when invalid values are used in the version field. Fixed an issue that caused Docker Compose...
Read more >[Solved] Could not get lock /var/lib/dpkg/lock Error in Ubuntu
If you are using command line, check if an application like Software Center, Software Updater, Synaptic package manager, Gdebi is running any update/ ......
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
Please check our guide on troubleshooting on https://pptr.dev. You are missing some libraries.
i have the same issue in V19.2.2
`Error: Failed to launch the browser process! /opt/bytefaas/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome: symbol lookup error: /opt/bytefaas/.cache/puppeteer/chrome/linux-1056772/chrome-linux/chrome: undefined symbol: gbm_bo_get_modifier
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
from: ‘launchDef’ }`