karma-chrome-launcher: Having problems running karma with jenkins in chrome
After chrome updated today it seems our builds no longer work. interactive shells seem to work, just not in jenkins 😦
chrome Version 52.0.2743.82 m OS: Windows Server 2012 r2
[4mRunning "karma:continuous" (karma) task[24m
[32mINFO [karma]: [39mKarma v0.12.31 server started at http://localhost:9876/
[32mINFO [launcher]: [39mStarting browser Chrome
[32mINFO [framework.browserify]: [39m2640391 bytes written (24.08 seconds)
[32mINFO [framework.browserify]: [39mbundle built
[33mWARN [launcher]: [39mChrome have not captured in 60000 ms, killing.
[32mINFO [launcher]: [39mTrying to start Chrome again (1/2).
[33mWARN [launcher]: [39mChrome have not captured in 60000 ms, killing.
[32mINFO [launcher]: [39mTrying to start Chrome again (2/2).
[33mWARN [launcher]: [39mChrome have not captured in 60000 ms, killing.
[31mERROR [launcher]: [39mChrome failed 2 times (timeout). Giving up.
About this issue
- Original URL
- State: open
- Created 8 years ago
- Reactions: 6
- Comments: 44
I was running into the same issue with both e2e protractor tests and Karma unit tests. Windows jenkins specifically (running manually in cmd was working fine).
The (temp) fix was the same for both:
In karma.conf:
In protractor.conf
“karma-chrome-launcher”: “^1.0.1”, and “protractor”: “4.0.0”,
Same problem for me with the following setup:
karma-chrome-launcher: 2.0.0 karma: 1.3.0 chrome: 53.0.2785.116 os: CentOS 7
@jotka Check this comment I gave on a related issue : https://github.com/karma-runner/karma/issues/1206#issuecomment-337599491
I’m using the same versions as yours, and I can run everything without any problem now.
I am attempting to run in bamboo:
Same problem:
I had the exact same issue with our jenkins and ChromeHeadless.
This solved it for me: set a NO_PROXY env variable : export NO_PROXY=“localhost, 0.0.0.0/4201, 0.0.0.0/9876”
Source: https://github.com/karma-runner/karma/issues/1206#issuecomment-337599491
hi dear all. Has this been somehow fixed? I have the same on the lastest Chrome / Debian. “Chrome have not captured in 60000 ms, killing.” when running a job on Jenkins through docker container.
“karma”: “1.7.1”, “karma-chrome-launcher”: “2.2.0”,
I’m having this as well. It does not capture on first attempt, but does in second attept. This makes the Jenkins CI cycle be very slow. Any fix for this? (Same error on both Chrome and ChromeHeadless)
“karma”: “1.7.0”, “karma-chrome-launcher”: “2.1.1”, Chrome 60.0.3112.90 (Official Build) (64-bit)
Hello, I’m running into this as well now… after upgrading packages:
Chrome 60 is installed on Windows 7 64-bit. Tried the fix mentioned in this ticket, but it still cannot connect with --no-sandbox.
Did anyone have a work around for this?
Was experiencing this problem with Chrome 52.0.x Karma-Chrome-Launcher 1.0.1 and 2.0.0
Chrome update as of this morning to 53.0.2785 and seems to have resolved it. Anyone else confirm?
@agccheung Yep. Can confirm that it is now working for us in Chrome 53.0.2785
We tried edgahan’s temp fix but it did not work for us. The issues started around upgrading to karma-chrome-launcher: 1.0.1 and Chrome 51 upgrading to 52. It’s unclear what’s the issue here since our Jenkins machine spits out:
Next up, will be checking if reverting to older launcher version helps. UPDATE - no fix from reverting karma-launcher versions - likely this is related to: https://bugs.chromium.org/p/chromium/issues/detail?id=615396
Running into the same issue.
Without any changes in any JS modules, this appears to stop working after Chrome upgraded from 51.0.2704.103 to 52.0.2743.82.
Some time ago our e2e tests using a selenium server on Windows started to fail due to this issue. We have yet to validate if that still happens, but it might be related?
We’re not using Jenkins here (Microsoft Visual Studio Team Services) but a similar setup I guess. The build agent runs as a Windows Service in session 0, spawns a build process (Gulp in our case) which starts Chrome using this plugin.