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

Chrome is not launching on desktop Environment Xfce #1223

Closed
Rudloff opened this issue Dec 21, 2016 · 11 comments
Closed

Chrome is not launching on desktop Environment Xfce #1223

Rudloff opened this issue Dec 21, 2016 · 11 comments
Assignees

Comments

@Rudloff
Copy link

Rudloff commented Dec 21, 2016

When I run lighthouse --verbose https://airhorner.com/ (with Node 6.2.2), it only outputs this then it exits:

  �[3undefined;1mLighthouse CLI:verbose Using supplied port 9222 �[3undefinedm+0ms
  �[3undefined;1mLighthouse CLI Launching Chrome... �[3undefinedm+5ms
  �[3undefined;1mChromeLauncher:verbose created /tmp/lighthouse.wkYF6V1 �[3undefinedm+4ms
@wardpeet
Copy link
Collaborator

Are you using latest master?
Are you running on windows? (seems like it)

@brendankenny
Copy link
Member

The next line should be ChromeLauncher:verbose Chrome running with pid xxxxx on port 9222, so looks like Chrome is somehow never launching? We don't explicitly cover errors coming from the spawned process there, but the following lines should fail in that case.

(don't know if it would help diagnose the problem here, but we probably should have a chrome.on('error', err => reject('whatever')); there)

@Rudloff
Copy link
Author

Rudloff commented Dec 21, 2016

I'm using Debian 8.6.
I can reproduce with lightouse 1.3.0 and master.

@wardpeet
Copy link
Collaborator

which type of UI are you using? (gnome? KDE?)
Which chrome do you have installed? (chrome-stable? or chromium?)

@Rudloff
Copy link
Author

Rudloff commented Dec 21, 2016

I am using Xfce 4.10 and Chromium 55.0.2883.75.

@Rudloff
Copy link
Author

Rudloff commented Dec 21, 2016

I can also reproduce on Ubuntu 16.10 with Xfce 4.12, Node 4.2.6 and Chromium 55.0.2883.87.

@wardpeet
Copy link
Collaborator

will have to check Xfce to look into this issue :)
you can set the following env enviroment LIGHTHOUSE_CHROMIUM_PATH and see if chrome starts spinning.
see https://github.com/GoogleChrome/lighthouse/blob/master/.travis.yml#L23

@wardpeet wardpeet changed the title Nothing happens when running Lighthouse Chrome is not launching on desktop Environment Xfce Dec 22, 2016
@wardpeet wardpeet added the cli label Dec 22, 2016
@Rudloff
Copy link
Author

Rudloff commented Dec 22, 2016

I tried setting LIGHTHOUSE_CHROMIUM_PATH but I get the same result.

@niklaszantner
Copy link

I have a similar error, so I thought I would comment here instead of opening a new issue:

OS: arch-linux
Browser: Google Chrome Beta 56.0.2924.28 beta (64-bit)

  1. I installed the lighthouse-cli via npm
  2. Tried to run lighthouse niklaszantner.de, lighthouse exits with the following error:
 �[3undefined;1mLighthouse CLI Launching Chrome... �[3undefinedm+0ms
which: no google-chrome-stable in (/home/nik/.npm-global/bin:/home/nik/.npm-global/bin:/home/nik/.npm-global/bin:/usr/local/bin:/usr/local/sbin:/usr/bin)
(node:15382) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'kill' of undefined
(node:15382) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  1. Looks like Google Chrome cannot be found, as I am using the chrome beta, so I added
export LIGHTHOUSE_CHROMIUM_PATH=/usr/bin/google-chrome-beta  

to my .bashrc used source ~/.bashrc to source it and executed $LIGHTHOUSE_CHROMIUM_PATH in my terminal. Chrome indeed opened.

Rerunning lighthouse niklaszantner.de sadly produced the same error I already encountered. Also, reinstalling lighthouse did not help.

  1. So I created a symbolic link for google-chrome-stable:
sudo ln -s /usr/bin/google-chrome-beta /usr/bin/google-chrome-stable

and as failed with no google-chrome

�[3undefined;1mLighthouse CLI Launching Chrome... �[3undefinedm+0ms
which: no google-chrome in (/home/nik/.npm-global/bin:/home/nik/.npm-global/bin:/home/nik/.npm-global/bin:/usr/local/bin:/usr/local/sbin:/usr/bin)
(node:16400) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'kill' of undefined
(node:16400) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I also created a symbolic link for google-chrome:

sudo ln -s /usr/bin/google-chrome-beta /usr/bin/google-chrome
  1. Yeah, at least the error message changed after rerunning lighthouse niklaszantner.de:
  �[3undefined;1mLighthouse CLI Launching Chrome... �[3undefinedm+0ms
  �[3undefined;1mChromeLauncher Waiting for browser. �[3undefinedm+46ms
  �[3undefined;1mChromeLauncher Waiting for browser... �[3undefinedm+2ms
  �[3undefined;1mChromeLauncher Waiting for browser..... �[3undefinedm+505ms
  �[3undefined;1mChromeLauncher Waiting for browser....... �[3undefinedm+502ms
  �[3undefined;1mChromeLauncher Waiting for browser......... �[3undefinedm+501ms
  �[3undefined;1mChromeLauncher Waiting for browser........... �[3undefinedm+502ms
  �[3undefined;1mChromeLauncher Waiting for browser............. �[3undefinedm+501ms
  �[3undefined;1mChromeLauncher Waiting for browser............... �[3undefinedm+501ms
  �[3undefined;1mChromeLauncher Waiting for browser................. �[3undefinedm+502ms
  �[3undefined;1mChromeLauncher Waiting for browser................... �[3undefinedm+501ms
  �[3undefined;1mChromeLauncher Waiting for browser..................... �[3undefinedm+502ms
  �[3undefined;1mChromeLauncher Waiting for browser....................... �[3undefinedm+501ms
(node:16548) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'kill' of undefined
(node:16548) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  1. So I installed google-chrome-stable and tried the same, running into the same errors.

I am slightly ouf of ideas what I can do. If I can help you with any more informations, please let me know.

@wardpeet wardpeet self-assigned this Dec 27, 2016
@khrome83
Copy link

khrome83 commented Feb 6, 2017

I see something similar @Nobol as well.

But my results are in a CI #1645

@wardpeet
Copy link
Collaborator

wardpeet commented Sep 4, 2017

Closing as this is old and plenty of updates on headless & docker

@wardpeet wardpeet closed this as completed Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants