chrome-launcher icon indicating copy to clipboard operation
chrome-launcher copied to clipboard

finder: Failing to find google-chrome binary on centos 7

Open paulirish opened this issue 7 years ago • 5 comments

Reported by @jayflux

CHROME_PATH=/usr/bin/google-chrome
NODE_EXTRA_CA_CERTS=/etc/pki/tls/certs/ca-bundle.crt
_=/usr/bin/env
[developer@sounds-performance sounds-performance]$ sudo -E node index.js 
which: no chromium-browser in (/sbin:/bin:/usr/sbin:/usr/bin)
which: no chromium in (/sbin:/bin:/usr/sbin:/usr/bin)
{ Error: connect ECONNREFUSED 127.0.0.1:33429
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 33429 }
[developer@sounds-performance sounds-performance]$ 
  1. google-chrome installed via YUM on centos 7. chrome-finder is failing to locate it.
  2. and the explicit CHROME_PATH setting doesn't seem to fix things.

paulirish avatar Nov 17 '17 17:11 paulirish

If it helps my google chrome installation step was...

# Install Google Chrome
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
RUN yum install ./google-chrome-stable_current_*.rpm -y
RUN rm google-chrome-stable_current_*.rpm

(taken from https://www.cyberciti.biz/faq/howto-install-google-chrome-on-redhat-rhel-fedora-centos-linux/) I've set CHROME_PATH=/usr/bin/google-chrome

And then i followed https://github.com/GoogleChrome/lighthouse/blob/master/docs/readme.md#using-programmatically

jasonwilliams avatar Nov 17 '17 17:11 jasonwilliams

@Jayflux got a dockerfile or image recommendation that I can use to reproduce this centos setup?

paulirish avatar Nov 17 '17 17:11 paulirish

Hey @paulirish I've created a testcase project for you all to try out. https://github.com/Jayflux/lighthouse-testcase

This should help you with reproducing and debugging the issue

jasonwilliams avatar Nov 20 '17 11:11 jasonwilliams

Managed to fix it. It was this issue, https://github.com/GoogleChrome/chrome-launcher/issues/6#issuecomment-341491690

Might be still worth keeping this issue open though, as i still get

which: no chromium-browser in (/sbin:/bin:/usr/sbin:/usr/bin)
which: no chromium in (/sbin:/bin:/usr/sbin:/usr/bin)

jasonwilliams avatar Nov 28 '17 20:11 jasonwilliams

Also had which: no chromium-browser in (/sbin:/bin:/usr/sbin:/usr/bin) which: no chromium in (/sbin:/bin:/usr/sbin:/usr/bin)

"sudo yum install -y chromium" helped for me

mariusJar avatar Feb 06 '18 20:02 mariusJar