Skip to content

ERROR [launcher]: Cannot start Edge Headless  #10

@toonnyyyy

Description

@toonnyyyy

In our environment we have a Jenkins server that runs the Jasmine unit tests with the karma-chromiumedge-launcher plugin. But with Edge versions higher than v95.x we get the this error ( ERROR [launcher]: Cannot start Edge Headless ) and we are unable to run the unit tests

System info:

OS: Microsoft Windows Server 2012 R2 Datacenter
Edge version failing: 96.x +
Edge version working: < 95.x

Full log:

E:\Jenkins\workspace\e_digidoc-dwc-multibranch_master>npm run test-coverage

digidoc-web@0.0.1 test-coverage E:\Jenkins\workspace\e_digidoc-dwc-multibranch_master
ng test --browsers=EdgeHeadless --watch=false --code-coverage

  • Generating browser application bundles (phase: setup)...
    Compiling @angular/core/testing : es2015 as esm2015
    Compiling @angular/platform-browser/testing : es2015 as esm2015
    Compiling @angular/compiler/testing : es2015 as esm2015
    Compiling @angular/common/testing : es2015 as esm2015
    Compiling @angular/common/http/testing : es2015 as esm2015
    Compiling @angular/router/testing : es2015 as esm2015
    Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015
    07 01 2022 10:06:14.931:INFO [karma-server]: Karma v6.3.6 server started at http://localhost:9876/
    07 01 2022 10:06:14.935:INFO [launcher]: Launching browsers EdgeHeadless with concurrency unlimited
    07 01 2022 10:06:14.939:INFO [launcher]: Starting browser Edge Headless
    07 01 2022 10:06:14.998:ERROR [launcher]: Cannot start Edge Headless

07 01 2022 10:06:14.999:ERROR [launcher]: Edge Headless stdout:
07 01 2022 10:06:14.999:ERROR [launcher]: Edge Headless stderr:
07 01 2022 10:06:15.003:INFO [launcher]: Trying to start Edge Headless again (1/2).
07 01 2022 10:06:15.577:ERROR [launcher]: Cannot start Edge Headless

07 01 2022 10:06:15.578:ERROR [launcher]: Edge Headless stdout:
07 01 2022 10:06:15.578:ERROR [launcher]: Edge Headless stderr:
07 01 2022 10:06:15.583:INFO [launcher]: Trying to start Edge Headless again (2/2).
07 01 2022 10:06:15.616:ERROR [launcher]: Cannot start Edge Headless

07 01 2022 10:06:15.616:ERROR [launcher]: Edge Headless stdout:
07 01 2022 10:06:15.616:ERROR [launcher]: Edge Headless stderr:
07 01 2022 10:06:15.627:ERROR [launcher]: Edge Headless failed 2 times (cannot start). Giving up.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! digidoc-web@0.0.1 test-coverage: ng test --browsers=EdgeHeadless --watch=false --code-coverage
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the digidoc-web@0.0.1 test-coverage script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\windows\system32\config\systemprofile\AppData\Roaming\npm-cache_logs\2022-01-07T09_06_15_797Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions