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

getting ChromeLauncher Waiting for browser in linux server #14522

Open
pavanseniorassociate opened this issue Nov 11, 2022 Discussed in #14517 · 6 comments
Open

getting ChromeLauncher Waiting for browser in linux server #14522

pavanseniorassociate opened this issue Nov 11, 2022 Discussed in #14517 · 6 comments

Comments

@pavanseniorassociate
Copy link

Discussed in #14517

Originally posted by pavanseniorassociate November 10, 2022
Hi team,

Please find the below details and help me

Command

      lighthouse https://nodejs.org/en/ --chrome-flags=--headless --config-path=./myconfig.js --preset=desktop --output=html --output-path=./Reports_11-10-22.html

I am trying to run this command using python code.

Linux system details

      NAME="Red Hat Enterprise Linux Server"
      VERSION="7.9 `(Maipo)"`
      ID="rhel"
      ID_LIKE="fedora"  
      VERSION_ID="7.9"
      PRETTY_NAME="Red Hat Enterprise Linux Server 7.9"
      ANSI_COLOR="0;31"
      CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
      HOME_URL="https://www.redhat.com/"
      BUG_REPORT_URL="https://bugzilla.redhat.com/"
      REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
      REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
      REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
      REDHAT_SUPPORT_PRODUCT_VERSION=7.9

I am getting following error

 LH:ChromeLauncher Waiting for browser. +0ms
  LH:ChromeLauncher Waiting for browser... +1ms
  LH:ChromeLauncher Waiting for browser..... +505ms
  LH:ChromeLauncher Waiting for browser....... +504ms
  LH:ChromeLauncher Waiting for browser......... +502ms
  LH:ChromeLauncher Waiting for browser........... +502ms
  LH:ChromeLauncher Waiting for browser............. +502ms
  LH:ChromeLauncher Waiting for browser............... +501ms
  LH:ChromeLauncher Waiting for browser................. +502ms
  LH:ChromeLauncher Waiting for browser................... +502ms
  LH:ChromeLauncher Waiting for browser..................... +502ms
  LH:ChromeLauncher Waiting for browser....................... +502ms
  LH:ChromeLauncher Waiting for browser......................... +502ms
  LH:ChromeLauncher Waiting for browser........................... +501ms
  LH:ChromeLauncher Waiting for browser............................. +501ms
  LH:ChromeLauncher Waiting for browser............................... +502ms
  LH:ChromeLauncher Waiting for browser................................. +501ms
  LH:ChromeLauncher Waiting for browser................................... +502ms
@adamraine
Copy link
Member

@pavanseniorassociate Is your issue that Chrome never launches?

@pavanseniorassociate
Copy link
Author

@adamraine
Copy link
Member

I can't repro this unfortunately, could you please provide this information:

  • Lighthouse version
  • Node version
  • Chrome version
@pavanseniorassociate
Copy link
Author

  1. lighthouse version : 9.6.8
  2. Node Version : v16.15.0
  3. Chrome Version : Google Chrome 107.0.5304.110
@adamraine
Copy link
Member

I was able to reproduce this when I removed the --chrome-flags=--headless flag, perhaps headless mode isn't being applied somehow?

@pavanseniorassociate lmk if either of these commands works for you:

lighthouse https://nodejs.org/en/ --chrome-flags="--headless"

If you have Xorg installed:

xvfb-run --auto-servernum lighthouse https://nodejs.org/en/ --chrome-flags="--headless"
@pavanseniorassociate
Copy link
Author

HI @adamraine 

Below command is not working. getting same error... LH:ChromeLauncher Waiting for browser
    lighthouse https://nodejs.org/en/ --chrome-flags="--headless"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment