question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot `cypress verify` - Hangs on Smoke Test on WSL2

See original GitHub issue

Current behavior:

I have just installed version 4.4.0 of cypress and integrated it in to my project. I’m using using WSL Ubuntu and have install the suggested packages in the documentation.

After trying several fixes as well as reverting the version to earlier versions where I’m met with different issues.

After running DEBUG=cypress:* yarn run cypress open it looks like it’s getting stuck on the smoke test time out .

  cypress:cli disabling Electron sandbox +57ms
  cypress:cli running smoke test +1ms
  cypress:cli using Cypress executable /home/<user>/.cache/Cypress/4.4.0/Cypress/Cypress +0ms
  cypress:cli smoke test command: /home/<user>/.cache/Cypress/4.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=47 +0ms
  cypress:cli smoke test timeout 30000 ms +0ms
  ⠼  Verifying Cypress can run /home/<user>/.cache/Cypress/4.4.0/Cypress

Desired behavior:

It should continue to verify and then open Cypress

If anybody could point me in the right direction that would be much appreciated

Versions

Cypress: 4.4.0 Windows 10 Ubuntu 18.04.4 LTS

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
amkoehlercommented, Jul 9, 2020

@timharsch your solution worked for me on WSL2. I had a DISPLAY env variable set for VcXsrv, and after running unset DISPLAY the verification step completed w/o issues.

4reactions
Ex4lcommented, Jul 30, 2021

Same here in WSL2 Ubuntu 20.04 LTS and Cypress 8.0.0

if DISPLAY env variable is set it fails but unsetting the variable by doing so is making it work :

unset DISPLAY

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot `cypress verify` - Hangs on Smoke Test on WSL2
Current behavior: I have just installed version 4.4.0 of cypress and integrated it in to my project. I'm using using WSL Ubuntu and...
Read more >
Using Graphical User Interfaces like Cypress' in WSL2
Just ran the @Cypress_io kitchen sink tests in their GUI. ... To confirm this worked, print out the variable you just set in...
Read more >
cypress-io/cypress - Gitter
Hello. I just installed cypress in an angular project. after running npx cypress open and selecting one of the example tests -- chrome...
Read more >
Troubleshooting | Cypress Documentation
If the smoke test fails to execute, check if a shared library is missing (a common problem on Linux machines without all of...
Read more >
How to run Cypress on WSL2 - Shouvojit Sarker - Medium
Either way, running a GUI based tool like Cypress could be a pain, so… ... Cypress is a great tool for writing automated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found