cli icon indicating copy to clipboard operation
cli copied to clipboard

CLI command to stop server not working.

Open jensakejohansson opened this issue 3 years ago • 3 comments

Using version: @percy/cli 1.0.0-beta.76

I works fine to start the server with "npx percy exec:start" and send snapshots. However, I cannot stop the server. I've been trying: "npx percy exec:stop", but it just hangs, no response and the server keeps running. I have to use "Control+C" to terminate the process!

I do not want to use "npx percy exec:start --" since it does not suite my needs. I need to be able to start & stop the server seperate from starting test execution.

Running on Windows 10 in Command Prompt.

Also tried: http://localhost:5338/percy/stop and get success: true, but server does not stop.

Thankful for any investigation/help regarding this...

jensakejohansson avatar Mar 01 '22 13:03 jensakejohansson

Hey @jensakejohansson! Looks like I'm able to reproduce this as well. Will start working on a fix for this shortly. Have you tried downgrading @percy/cli yet to see which version introduced this change?

In the meantime, I was able to stop the process myself with pkill -f percy

wwilsman avatar Mar 01 '22 18:03 wwilsman

@samarsault I think solving this issue, might fix some of our CI flakiness for windows as well.

itsjwala avatar Feb 14 '23 16:02 itsjwala

any updates on this?

Auishwariyaa avatar Aug 29 '24 06:08 Auishwariyaa