cypress run times out waiting for the browser to connect

See original GitHub issue

Current behavior:

I have an automated release for my test suite. It consists of 8 specs that are executed one after the other.

A few weeks back, one of the specs got stuck and I had to force a shutdown of the release. After that, on every release, after the first spec is run, Cypress fails to open the browser or find it or something and the tests fail.

This is the error I’m getting:

2019-02-04T02:11:09.1221261Z Timed out waiting for the browser to connect. Retrying...
2019-02-04T02:11:39.1105823Z 
2019-02-04T02:11:39.4465327Z Timed out waiting for the browser to connect. Retrying again...
2019-02-04T02:12:09.4535443Z 
2019-02-04T02:12:10.1352111Z The browser never connected. Something is wrong. The tests cannot run. Aborting...

I have deleted the Virtual Machine I use for the test and created it again, changed versions of Chrome, changed versions of Cypress and nothing changes. If I enter the VM with the release user, and use the command manually on a command line, it works, but in the automated release doesn’t.

I’m currently out of ideas.

Desired behavior:

Every spec should run correctly as it did before

Versions

Cypress 3.1.4 and 3.1.5 Chrome 72.0.3626 VSTS for release automation

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:61 (8 by maintainers)

github_iconTop GitHub Comments

12reactions
jbpallingayancommented, Sep 3, 2019

Were experiencing this right now. Is there any fix for this?

4reactions
nielsboeckercommented, Jan 22, 2021

I’ve had the same error messages and resolved the issue by going headed as per https://github.com/cypress-io/cypress/issues/8606#issuecomment-703544094.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress UI tests throwing time out for waiting for browser
All of the tests were running fine few days back. It is throwing a Timed out waiting for the browser to connect. Retrying....
Read more >
Troubleshooting | Cypress Documentation
If you're having an issue during installation of Cypress, try removing the contents of the Cypress cache. This will clear out all installed...
Read more >
cypress-io/cypress - Gitter
Timed out waiting for the browser to connect. Retrying again... The browser never connected. Something is wrong. The tests cannot run. Aborting... (Results)....
Read more >
Waiting in Cypress and how to avoid it - Filip Hric
Just use the wait and be done with it · Use "defaultCommandTimeout" to change default timeout · Use timeout per command · Wait...
Read more >
Are your Cypress timeout settings right? - YouTube
Not having the appropriate Cypress timeout settings can lead to poor test performance. Here's how to avoid that. Cypress has a default ...
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