Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed to launch the browser process! #8343

Closed
msrumon opened this issue May 13, 2022 · 1 comment
Closed

[Bug]: Failed to launch the browser process! #8343

msrumon opened this issue May 13, 2022 · 1 comment
Labels

Comments

@msrumon
Copy link

msrumon commented May 13, 2022

Bug description

Reproduction Steps

  1. Clone https://github.com/msrumon/puppeteer-browser-launch-issue.
  2. Follow the README.

Sample Code

import Puppeteer from 'puppeteer';
const browser = await Puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://www.google.com');
await page.screenshot({ path: './out/google.png' });
await page.close();
await browser.close();

Puppeteer version

14.1.0

Node.js version

16.15.0

npm version

8.5.5

What operating system are you seeing the problem on?

Linux

Relevant log output

Failed to launch the browser process! spawn /app/node_modules/puppeteer/.local-chromium/linux-991974/chrome-linux/chrome ENOENT


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
@msrumon msrumon added the bug label May 13, 2022
@OrKoN
Copy link
Collaborator

OrKoN commented May 13, 2022

I think the error like this could have many reasons and is likely to have nothing to do with Node 14. I recommend checking out https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-in-docker and modifying the docker file accordingly. The script you provided works without Docker so it's the matter of the docker file configuration and installing missing dependencies most likely. The work on the official Docker image for Puppeteer can be tracked here #8315 Until that is finished the troubleshooting md doc is the best we have.

@OrKoN OrKoN closed this as completed May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants