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.

[Bug]: ubuntu shows some errors. release V19.0.0 #9218

See original GitHub issue

Bug description

hi i install the libraries.the problem still.

sudo apt install -y gconf-service libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 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 wget libappindicator3-1 image

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:open
  • Created 10 months ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

4reactions
ServOKiocommented, Nov 10, 2022

same problem

const puppeteer = require('puppeteer');
const cheerio = require('cheerio');
async function main() {
    const browser = await puppeteer.launch({
        headless: true
    });

    const page = await browser.newPage();

    await page.goto('https://news.ycombinator.com/');
    const content = await page.content();
    const $ = cheerio.load(content);
    const titles = [];

    $('.storylink').slice(0, 5).each((idx, elem) => {
        const title = $(elem).text();
        titles.push(title);
    });

    browser.close();
    console.log(titles);
}
main();
(node:30201) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/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

  System:
    OS: Linux 4.9 Debian GNU/Linux 9 (stretch) 9 (stretch)
    CPU: (4) x64 Westmere E56xx/L56xx/X56xx (IBRS update)
    Memory: 270.80 MB / 3.86 GB
    Container: Yes
    Shell: 4.4.12 - /bin/bash
  Binaries:
    Node: 14.21.1 - /usr/bin/node
    npm: 8.19.3 - /usr/bin/npm
  npmPackages:
    puppeteer: ^19.2.2 => 19.2.2

1reaction
thovdencommented, Nov 21, 2022

I was running an older version of the official Node 14 Docker distribution. Updating to the latest version for Node 14 solved the issue - it has a newer version of libgbm1 - 18.3.6-2+deb10u1 that contains the gbm_bo_get_modifier symbol.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ubuntu shows some errors. release V19.0.0 #9218 - GitHub
This seems to be a problem with the chrome path. The error that is eventually reported after relying on the installation is difficult...
Read more >
ErrorTracker - Ubuntu Wiki
Ubuntu's error tracker explains crashes, hangs, and other severe errors to end users; lets them report an error with the click of a...
Read more >
Failed to fetch security undetermined error [IP: 91.189.91.38 ...
Revert your repositories list to the original Ubuntu Focal list by running the following command in the terminal:
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