Cypress hangs on verify step
See original GitHub issueCurrent behavior:
Cypress keeps “Verifying Cypress can run”, so the program hangs
Desired behavior:
Cypress to run normally
How to reproduce:
npm install cypress mocha mocha-multi-reporters mocha-junit-reporter
node_modules/cypress/bin/cypress verify
Additional Info (images, stack traces, etc)
No, are there log files somewhere?
Cypress team update
If you hit problems running Cypress on a specific system:
-
try using newer Cypress version
-
try using newer CI version, or a different CI. See our examples for different CI systems that we run already in cypress-example-kitchensink for examples of systems that work very well
-
try using our official images from cypress-io/cypress-docker-images
-
run Cypress with debug log output. In particular, we would like to see debug output from the CLI module and from our XVFB module. You can turn them both using
DEBUG=cypress:cli,xvfb npx cypress verify
-
provide an example for us to reproduce, and please remember that it will be hard for us to install an entire system that matches your system unless you provide Docker file
-
Operating System: CentOS 7.4
-
Cypress Version: 1.0.2
-
Browser Version: N/A
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:83 (20 by maintainers)
Same issue
Windows 10 WSL - Ubuntu 18.04.1 LTS (Bionic Beaver) Cypress - ^3.1.5
Steps:
npm i
node node_modules/cypress/bin/cypress open
Result: never finishes ‘Verifying cypress can run’
I ran into this same problem of Cypress hanging on the verify step.
The call to
util.exec
is where I observed it hanging:https://github.com/cypress-io/cypress/blob/2333d04a54acfd2d89d9d53cc60a49d46228ceef/cli/lib/tasks/verify.js#L68-L71
If I change that first line to:
So that the child process dumps its stdout and stderr to those of the parent process, it still hangs but I get an informative error message:
Which I was able to use to trace back to the problem (same as @derkoe 's – electron’s default appData path was a read-only directory).
Y’all open to a PR to add this? Doesn’t address the underlying issue of why
cypress --smoke-test
seems to be not exiting when this kind of failure happens, but it at least adds visibility so folks can self-serve and fix their specific problem more easily.EDIT would need to adjust things a little so the
then
andcatch
callbacks don’t blow up with the difference when the smoke test does exit – more like “y’all open to something along these lines”