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]: Error: Failed to launch the browser process! #9941

Closed
2 tasks
xiaolizi9 opened this issue Mar 30, 2023 · 2 comments
Closed
2 tasks

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

xiaolizi9 opened this issue Mar 30, 2023 · 2 comments

Comments

@xiaolizi9
Copy link

Bug expectation

image

Bug behavior

  • Flaky
  • PDF

Minimal, reproducible example

const browser = await puppeteer.launch({
    // Optional, if you want to see the tests in action.
    headless: false,
    slowMo: 50,
    args: ["--no-sandbox", "--disable-setuid-sandbox"],
    executablePath: process.env.CHROMIUM_PATH,
  });
  const page = await browser.newPage();

Error string

Failed to launch the browser process!

Puppeteer configuration

No response

Puppeteer version

19.8.2

Node version

v16.17.0

Package manager

npm

Package manager version

19.8.2

Operating system

Windows

@github-actions
Copy link

This issue was not reproducible. Please check that your example runs locally and the following:

  • Ensure the script does not rely on dependencies outside of puppeteer and puppeteer-core.
  • Ensure the error string is just the error message.
    • Bad:

      Error: something went wrong
        at Object.<anonymous> (/Users/username/repository/script.js:2:1)
        at Module._compile (node:internal/modules/cjs/loader:1159:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
        at Module.load (node:internal/modules/cjs/loader:1037:32)
        at Module._load (node:internal/modules/cjs/loader:878:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
        at node:internal/main/run_main_module:23:47
    • Good: Error: something went wrong.

  • Ensure your configuration file (if applicable) is valid.
  • If the issue is flaky (does not reproduce all the time), make sure 'Flaky' is checked.
  • If the issue is not expected to error, make sure to write 'no error'.

Once the above checks are satisfied, please edit your issue with the changes and we will
try to reproduce the bug again.


Analyzer run

@OrKoN
Copy link
Collaborator

OrKoN commented Mar 30, 2023

Hey, are you trying to run a headful browser on a server? Make sure that you have all dependencies installed on the system (some tips are here https://pptr.dev/troubleshooting#chrome-headless-doesnt-launch-on-unix) and use a tool like xvfb-run to run headful in a virtual X server environment (https://manpages.ubuntu.com/manpages/xenial/man1/xvfb-run.1.html). Also, it does not look like you run on Windows? is it WSL? (see https://pptr.dev/troubleshooting#running-puppeteer-on-wsl-windows-subsystem-for-linux)

@OrKoN OrKoN closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants