-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress hangs on verify step #819
Comments
Can you run verify step with |
Not much more to see:
Note that the icon keeps spinning, so it is not completely frozen.. |
Not sure if same problem but the same happens One issue I had during installation is that I could not find libsound package and I had to install libsound2 Operating System: Ubuntu 16.04.3 LTS (under windows 10)
|
The docs have been updated to specify |
@jennifer-shehane Does that have anything to do with these bug reports? P.S. |
@Hipska what happens if you just install cypress and then start adding dependencies one by one to see which one breaks?
|
The second line already keeps Cypress hanging. So only installing Cypress already breaks. |
so if I run
on |
Yup exactly, and apparently on Ubuntu 16.04.3 as well. |
@Hipska I made a (larger than necessary) Docker image based on Centos7 See if these dependencies / image solves your problem |
Hi, any updates on this issue? I can't manage to run tests on Jenkins, although locally everything is working perfectly. Tried the above mentioned build as well, got same result:
I tried also running explicitly
|
hi @bahmutov, tried the docker image and didn't solved the issue. when i ran DEBUG='cypress:* ./node_modules/cypress/bin/cypress verify it still hangs on the smoke test command. |
I'm having the same problem running the Docker image. Let me know if I can give valuable info. |
Is there any update regarding this problem? |
Are we talking about it hanging only in @floriansimon1 which docker image are you running? @bramsierag which docker image are you running? |
|
cypress/base:centos7 |
@floriansimon1 okay it sounds like then you're having a problem running in @bramsierag let me see if we can get some 👀 into this. @bkucera do you mind taking the lead on this one? @bramsierag is saying the verification stage of Cypress is failing on our docker centos image. Can you reproduce locally and then I'll help you take a look at it. Thanks. |
It might help if the verify step would output some debug info instead of just “doing stuff”. |
@brian-mann: thanks for your answer. If it helps, the image works locally. It only fails on my Jenkins server. I tried using the CentOS image on Jenkins, and I got the same results. It might be due to the Jenkins Docker config, but I don't have the liberty/knowledge to change it unfortunately, so I'll wait for the Cypress team to fix @bramsierag's problem and update, hoping that it will resolve my problem as well. I guess I'll have to disable the test suite on the CI server for now :-/ EDIT: My version of Docker on Jenkins is Docker version 17.12, and I have 17.05 locally. |
@bramsierag where are you running your docker image? I am not having any errors with any of the docker images with any Cypress versions running docker locally(on Linux) , it would be helpful to know your CI provider |
Hi Bkucera, appreciate the effort. Locally on osx no problem, only with Jenkins on centos7. Docker version local and on centos is 17.12 |
@bramsierag alright, looks like I'm gonna have to spin up Docker inside Jenkins inside Docker to see whats going on |
I just reran the tests with debug mode and it seems that it also hangs on the smoke-test line. The difference is that I have the following:
|
Having same issue on Ubuntu 16.04.5 LTS (WSL on windows 10) |
We had the same problem - the reason was that "$HOME/.config" was mounted into the container read-only. So the solution was to mount the relevant stuff into another directory and then copy it over before the build. Would be great when Cypress would not wait/hang when a file cannot be written. |
Same issue Windows 10 Steps: Result: never finishes 'Verifying cypress can run' |
In case it helps anyone: we had this issue with the cypress base image. But, we had environment variable |
I ran into this same problem of Cypress hanging on the verify step. The call to cypress/cli/lib/tasks/verify.js Lines 68 to 71 in 2333d04
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 EDIT would need to adjust things a little so the |
Finally some progress on this ticket 👍 |
@stuartsan Yes, we're definitely open to PRs for this - hanging with zero errors is the absolute worst experience Cypress can give. Any improvement on this is gladly welcomed. Feel free to open WIP PRs if you don't know how to implement and test it all also. https://github.com/cypress-io/cypress/blob/develop/CONTRIBUTING.md#writing-code |
Can this issue then be reopened please? |
@jennifer-shehane cool, thanks. Just sent a PR: #3807 |
While not actually testing the above PR, it did give the crucial tip to check for permissions on |
The code for this is done in cypress-io/cypress#4080, but has yet to be released. |
Released in |
Hi everyone!. I tried everything I could find on the Internet to solve this issue. Spent 2 days exhausting all the suggested fixes I found. It boiled down to WSL 2, which required me to install a pre-release of Win 10 on my machine after enrolling in the insider program. This worked for me:
Note: The legacy Ubuntu distro does not work with WSL 2.0. I added Ubuntu 18.04 through the Windows Store during Step 2.
|
@justinstander Your solution is working.... :) It's very tricky to install everything but after wasting half of the day to fix this "verification" issue I've made it working on my windows with ubuntu 18.4 and wsl2. Would be faster to install an ubuntu system and install the project there to see how this will work on CI instead of trying to fix this issue.... :) |
@snaix93 So glad! It is a little tricky... and time consuming. One other thing, to use Linux GUIs, like the Cypress GUI, you'll need a Windows X Server. I am using VcXsrv: https://sourceforge.net/projects/vcxsrv/ |
I can use other electron apps just fine on WSL1 and X410. WSL2 isn't officially released yet so I'm not ready to move to it yet, and won't be deprecated anytime soon. Can this be reopened? |
Current behavior:
Cypress keeps "Verifying Cypress can run", so the program hangs
Desired behavior:
Cypress to run normally
How to reproduce:
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
The text was updated successfully, but these errors were encountered: