question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CHROME_BIN being ignored

See original GitHub issue

karma seems to fail to find chrome (though it’s in the usual, default location), so I sed CHROME_BIN:

$ echo $CHROME_BIN
/usr/bin/chromium
$ ./node_modules/karma/bin/karma start
INFO [karma]: Karma v0.12.24 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
ERROR [launcher]: Cannot start Chrome
        Can not find the binary google-chrome
        Please set env variable CHROME_BIN
INFO [Chrome 38.0.2125 (Linux)]: Connected on socket Y_kpEkvqa_GuyoaXj2qd with id manual-7363
$ test -x /usr/bin/chromium; echo $?                                                                                           
0

It seems that karma is ignoring CHROME_BIN.

Aditionally, I’ve seen not *nix distribution package chrome’s binary as google-chrome, so maybe the default binary name should be chromium?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
WhyNotHugocommented, Nov 13, 2014

Ah, thanks for the clarification. I was unaware of the difference (subprocesses inheretance).

Maybe karma’s output could use some tweaking to make this clearer?

INFO [launcher]: Starting browser Chrome
ERROR [launcher]: Cannot start Chrome
        Can not find the binary google-chrome
        Please set env variable CHROME_BIN

It’s not obvious that I should use EXPORT according to this.

1reaction
maksimrcommented, Nov 12, 2014

@hobarrera if you set variable CHROME_BIN without export it will not work because sub process does not inherit this variable. You should use export or run sub process with predefined variable

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting environment variable for CHROME_BIN does not work
Was facing the same issue and I solved it by editing the karma.conf.js and karma-e2e.conf.js files which is under config directory. Change:
Read more >
Why is Google Chrome not responding? - Microsoft Community
Sometimes, my Google Chrome would freeze up and say "Google Chrome is not responding" Lately though, it's been happening ALL time.
Read more >
1783 - "chrome_binary" capability key is ignored - chromedriver
I'm trying to set up a Selenium Grid 3.4.0 with Chrome Canary. However, when I try to test, the stable Chrome window opens...
Read more >
AUR (en) - google-chrome - Arch Linux
For anyone else who is experiencing "Failed to generate google-chrome information" issue: Open Pamac, click three lines at top right, click "preferences", click...
Read more >
Buiding chromium browser on windows - Google Groups
Message has been deleted ... nment.x64 False lib.exe /nologo /ignore:4221 ... Hi i still get the error that module type is X86 and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found