karma-runner / karma-edge-launcher

A Karma plugin. Launcher for Microsoft Edge.
MIT License
21 stars 7 forks source link

Error launching Edge on Windows 10 in CI environment (karma, jenkins) #1

Closed vobu closed 6 years ago

vobu commented 6 years ago

Scenario:

18 01 2018 10:38:03.043:ERROR [launcher]: Cannot start Edge

18 01 2018 10:38:03.043:ERROR [launcher]: Edge stdout: Couldn't find Edge URL with URL: 00891F48 Found 18 01 2018 10:38:03.043:ERROR [launcher]: Edge stderr: 18 01 2018 10:38:03.044:INFO [launcher]: Trying to start Edge again (1/2). 18 01 2018 10:38:24.359:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe FEHLER: Der Prozess "MicrosoftEdge.exe" wurde nicht gefunden.

18 01 2018 10:38:24.359:ERROR [launcher]: Cannot start Edge

18 01 2018 10:38:24.359:ERROR [launcher]: Edge stdout: Couldn't find Edge URL with URL: 00D42178 Found 18 01 2018 10:38:24.359:ERROR [launcher]: Edge stderr: 18 01 2018 10:38:24.360:INFO [launcher]: Trying to start Edge again (2/2). 18 01 2018 10:38:45.691:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe FEHLER: Der Prozess "MicrosoftEdge.exe" wurde nicht gefunden.

18 01 2018 10:38:45.691:ERROR [launcher]: Cannot start Edge

18 01 2018 10:38:45.691:ERROR [launcher]: Edge stdout: Couldn't find Edge URL with URL: 00BF2530 Found 18 01 2018 10:38:45.691:ERROR [launcher]: Edge stderr: 18 01 2018 10:38:45.692:ERROR [launcher]: Edge failed 2 times (cannot start). Giving up.


Issue https://github.com/nickmccurdy/karma-edge-launcher/issues/34 seems related to this.

Detail environment:
- Windows 10.0.15063
- Edge 40.15063.674.0
- karma-edge-launcher 0.4.2
- node v8.1.4
vobu commented 6 years ago

we got this resolved by switching the jenkins slave run mode. Originally it ran as a Windows service. Now it runs as a specific application - voilà.

nickserv commented 6 years ago

Good to hear. 😄 I don't use Jenkins so I don't think I could write something good on my own, but do you think it would be helpful to have Jenkin's specific setup tips in the readme to warn users of this issue?

vobu commented 6 years ago

a hint in the README couldn't hurt, me thinks. want me to do a PR?

nickserv commented 6 years ago

Sure, that would be great.

DeDuckProject commented 6 years ago

@nickmccurdy hi, This seems to happen in AppVeyor too: Windows 8.1.0.0 karma-edge-launcher: 0.4.2

00:03:19] 06 03 2018 14:20:56.798:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
[00:03:19] ERROR: The process "MicrosoftEdge.exe" not found.
[00:03:19] 
[00:03:19] 06 03 2018 14:20:56.798:ERROR [launcher]: Cannot start Edge
[00:03:19]  
[00:03:19] 06 03 2018 14:20:56.798:ERROR [launcher]: Edge stdout: 
[00:03:19] Couldn't find Edge URL with URL: 00A3DEB0
[00:03:19] Found
[00:03:19] 06 03 2018 14:20:56.798:ERROR [launcher]: Edge stderr: 
[00:03:19] 06 03 2018 14:20:56.798:INFO [launcher]: Trying to start Edge again (1/2).
[00:03:25] 06 03 2018 14:21:02.665:WARN [Firefox 57.0.0 (Windows 8.1.0.0)]: Disconnected (1 times), because no message in 10000 ms.
[00:03:25] Firefox 57.0.0 (Windows 8.1.0.0) ERROR
[00:03:25]   Disconnected, because no message in 10000 ms.
[00:03:41] 06 03 2018 14:21:18.416:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
[00:03:41] ERROR: The process "MicrosoftEdge.exe" not found.
[00:03:41] 
[00:03:41] 06 03 2018 14:21:18.416:ERROR [launcher]: Cannot start Edge
[00:03:41]  
[00:03:41] 06 03 2018 14:21:18.416:ERROR [launcher]: Edge stdout: 
[00:03:41] Couldn't find Edge URL with URL: 004B5FC8
[00:03:41] Found
[00:03:41] 06 03 2018 14:21:18.416:ERROR [launcher]: Edge stderr: 
[00:03:41] 06 03 2018 14:21:18.416:INFO [launcher]: Trying to start Edge again (2/2).
[00:04:02] 06 03 2018 14:21:39.727:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
[00:04:02] ERROR: The process "MicrosoftEdge.exe" not found.
[00:04:02] 
[00:04:02] 06 03 2018 14:21:39.727:ERROR [launcher]: Cannot start Edge
[00:04:02]  
[00:04:02] 06 03 2018 14:21:39.727:ERROR [launcher]: Edge stdout: 
[00:04:02] Couldn't find Edge URL with URL: 00B063F0
[00:04:02] Found
[00:04:02] 06 03 2018 14:21:39.727:ERROR [launcher]: Edge stderr: 
[00:04:02] 06 03 2018 14:21:39.727:ERROR [launcher]: Edge failed 2 times (cannot start). Giving up.

have any idea how to solve?

nickserv commented 6 years ago

Unfortunately AppVeyor doesn't support Edge, it uses Windows Server 2016 which doesn't support UWP apps like Edge because it's a long term support release and isn't intended to be compatible with Windows 10. See https://github.com/nickmccurdy/karma-edge-launcher/issues/34.