TFS (vNext) + Karma + Chrome : Chrome have not captured in 60000 ms, killing
<p><a href="https://i.stack.imgur.com/w0HF3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w0HF3.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/Lee1Z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lee1Z.jpg" alt="enter image description here"></a></p>

<p>I am trying to build our team's UI through TFS 2015(vNext) on premises builds.
I am using Grunt build step in vNext to call a gruntjs file which will build all the grunt tasks.</p>

<p>Currently,the build is failing because of the task is not able to Start chrome and is timing out "Chrome have not captured in 60000 ms, killing." <strong>I see it is able to start chrome for some grunt tasks but fails for some.</strong> <strong>When I run the grunt command directly calling the gruntjs file from cmdline or powershell console on the build server, it works perfectly fine but it fails from the vNext builds.</strong></p>

<p>I rolled back the chrome version to "51.0.2704.103 m" from "52.0.2743.116 m" and tried but still no success.</p>

<p>I went through the links which discuss the same issue. But I am not sure if this is a chrome issue as it works for some grunt tasks.</p>

<p>I am stuck with this since past week and on the verge of giving up, any help will be really great.</p>

<p>Thanks</p>

<p><strong>ERROR</strong></p>

<pre><code>[32m31 08 2016 11:27:53.800:INFO [karma]: [39mKarma v0.13.22 server started at http://localhost:8888/
[32m31 08 2016 11:27:53.815:INFO [launcher]: [39mStarting browser Chrome
[33m31 08 2016 11:28:49.663:WARN [launcher]: [39mChrome have not captured in 60000 ms, killing.
[32m31 08 2016 11:28:49.757:INFO [launcher]: [39mTrying to start Chrome again (1/2).
[33m31 08 2016 11:28:53.834:WARN [launcher]: [39mChrome have not captured in 60000 ms, killing.
[32m31 08 2016 11:28:53.912:INFO [launcher]: [39mTrying to start Chrome again (1/2).
[33m31 08 2016 11:29:49.779:WARN [launcher]: [39mChrome have not captured in 60000 ms, killing.
[32m31 08 2016 11:29:49.842:INFO [launcher]: [39mTrying to start Chrome again (2/2).
[33m31 08 2016 11:29:53.931:WARN [launcher]: [39mChrome have not captured in 60000 ms, killing.
[32m31 08 2016 11:29:53.993:INFO [launcher]: [39mTrying to start Chrome again (2/2).
[33m31 08 2016 11:30:49.852:WARN [launcher]: [39mChrome have not captured in 60000 ms, killing.
[31m31 08 2016 11:30:49.930:ERROR [launcher]: [39mChrome failed 2 times (timeout). Giving up.
[33mWarning: Task "karma:ci" failed. Use --force to continue.[39m
[31mAborted due to warnings.[39m
    [33mWarning:  Use --force to continue.[39m

    [31mAborted due to warnings.[39m
Grunt failed with error: C:\Users\user1\AppData\Roaming\npm\grunt.cmd failed with return code: 6
</code></pre>