karma-runner / karma-edge-launcher

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

Cannot launch Edge from a service #7

Open jeffsaremi opened 5 years ago

jeffsaremi commented 5 years ago

I can start Karma with Edge on the command line when I do it manually. However if I have a Windows Service running under say "Network Service" it does not look it can find it.

Console output:

INFO [launcher]: Starting browser Edge
WARN [launcher]: Edge have not captured in 120000 ms, killing.
Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.

INFO [launcher]: Trying to start Edge again (1/2).
WARN [launcher]: Edge have not captured in 120000 ms, killing.
ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.
nickserv commented 5 years ago

Is this on the same machine? If not, note that Edge is not supported on Windows Server.

jeffsaremi commented 5 years ago

These are both the same machines. The OS is Windows 10 Pro

Using PsTools from SysInternals I managed to run the "Karma start..." under the Network Service in a cmd window and I got this:

image

TManB commented 5 years ago

I see the same behavior trying to run via a teamcity agent on a windows 10 Pro OS.

I can run my test script manually but when the agent attempts to start Edge it gets the same error message "ERROR: The process "MicrosoftEdge.exe" not found."

prateekbaheti commented 5 years ago

I see the same behavior on a Windows 10 Pro running GoCD agent as a service. Its unable to launch edge.

pavenkostanislav commented 4 years ago

Hello? Gays! I have the same problem. What environment param I should set or rename for win7?

95% emitting08 07 2020 16:09:02.373:INFO [launcher]: Trying to start Edge again (1/2). 08 07 2020 16:09:02.454:WARN [karma]: No captured browser, open http://localhost:9876/ 08 07 2020 16:10:02.422:WARN [launcher]: Edge have not captured in 60000 ms, killing. 08 07 2020 16:10:02.576:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe ERROR: The process "MicrosoftEdge.exe" not found.

08 07 2020 16:10:02.579:INFO [launcher]: Trying to start Edge again (2/2). 08 07 2020 16:11:02.581:WARN [launcher]: Edge have not captured in 60000 ms, killing. 08 07 2020 16:11:02.688:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe ERROR: The process "MicrosoftEdge.exe" not found.

08 07 2020 16:11:02.691:ERROR [launcher]: Edge failed 2 times (timeout). Giving up.

My EDGE have name C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe

nickserv commented 4 years ago

Do you have new Edge (Chromium) or legacy Edge (ChakraCore) installed?

jeraldsiby commented 3 years ago

I am able to run FireFox and Chrome using the same config. But when I tried to add Edge, it gives me this errror

19 04 2021 09:56:05.915:INFO [launcher]: Starting browser Edge 19 04 2021 09:56:27.488:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe ERROR: The process "MicrosoftEdge.exe" not found.

19 04 2021 09:56:27.489:ERROR [launcher]: Cannot start Edge

19 04 2021 09:56:27.489:ERROR [launcher]: Edge stdout: Couldn't find Edge URL with URL: 01789C60 Found 19 04 2021 09:56:27.489:ERROR [launcher]: Edge stderr: 19 04 2021 09:56:27.491:INFO [launcher]: Trying to start Edge again (1/2). 19 04 2021 09:56:49.074:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe ERROR: The process "MicrosoftEdge.exe" not found.

19 04 2021 09:56:49.075:ERROR [launcher]: Cannot start Edge

19 04 2021 09:56:49.075:ERROR [launcher]: Edge stdout: Couldn't find Edge URL with URL: 014F9A68 Found 19 04 2021 09:56:49.075:ERROR [launcher]: Edge stderr: 19 04 2021 09:56:49.076:INFO [launcher]: Trying to start Edge again (2/2). 19 04 2021 09:57:10.667:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe ERROR: The process "MicrosoftEdge.exe" not found.

19 04 2021 09:57:10.667:ERROR [launcher]: Cannot start Edge

Any leads to solve this issue?

Smolations commented 2 years ago

This might have something to do with this issue?