-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 is having trouble establishing a connection to the Chrome browser during my CI #27915
Comments
|
Same problem for my company. |
It is common for the Chrome version on a localhost to automatically update. It is also common for CI environments to automatically update the version of Chrome. In some CI systems you are able to use a Docker container to fix the version of Chrome used. |
@MikeMcC399 Cool. I used docker in different project for specific chrome versione. Solve some problem but create others one :) |
Are you still having this issue? Is yes, could you please say which version of Chrome you are using? For example from executing the command npx cypress info the output contains something like this:
What is the name of your CI provider. |
I also have this problem :( |
I am facing this issue when using latest cypress version with Cypress Browsers docker image (cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1) if i revert back to cypress old version 12.4.0, then this issue is not observed, but then it blocks me to use replay functionality |
I can confirm this issue.
|
You seem to have a different issue, given that the original post concerned Chrome and you write:
|
Having this issue with Chrome AND Firefox. Upgraded Cypress to 13.6. Chrome is 119.0.6045.200. Firefox is 115.5.0. Both will throw a browser window that says it's being controlled, but no spec list appears, and the tests don't run |
Also suffering from this issue for multiple weeks. Jenkins manages to run cypress tests like once every 15th time, otherwise timed out connecting to Chrome. Downgrading to Cypress version 12.4.0 seems to have solved the issue. For some reason Chrome still stalls for 4 minutes and 50 seconds on Jenkins every time when starting tests without no apparent reasons. |
@cypress-app-bot @jennifer-shehane seems some changes after 12.4.0 are causing this |
have the same issue on cypress starting from v 12.5.0 |
I see a similar issue with v13.2.0, when running in Jenkins (Red Hat 7 host) it will normally hang on |
My company is having the same issue while running Cypress locally with UI. The issue seems to start with Chrome 120. |
Does anybody who is facing this issue have a public repo available where this problem occurs and can be looked at? Chrome tests in GitHub Actions Is this only a problem on macOS like the original issue post, or are other operating systems also showing problems? @sarah-vendredi |
this is happening to me in AzureDevops with Linux: Cypress: 12.17.3 is there any workaround? |
@MikeMcC399 Cypress: 13.6.4 |
Thanks for your feedback! Which operating system were you using? |
Is the error condition permanent or do the tests work if you run them again? I tried the following repro steps using:
git clone --branch final https://github.com/cypress-io/cypress-realworld-testing-course-app
cd cypress-realworld-testing-course-app
npm ci
npm install [email protected] -D
npm run dev In a separate terminal npx cypress run --browser chrome On Ubuntu I once saw
When I ran it again, it all worked with no warnings or errors. |
I am using MacOS (14.3.1). Initially, I was able to launch the test app using Today, I checked out the repository again and followed your instructions - it's working so far! |
Having the same problem |
Been experiencing the same problem at my company in our gitlab ci setup. Cypress version 13.5.0. |
I when I used this image tag: node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1 |
This problem has been reported by different users and so far no root cause has been identified, so it's difficult to give any advice. I checked on GitHub Actions running Since the issue you have added your comment to is about Firefox, not Chrome, and it does not concern running in a Cypress Docker image, you may want to open a new Cypress issue and provide full debug logs. |
@MikeMcC399 |
I am so sorry. 🤭 I wrote Chrome and Firefox exactly the wrong way around! I've corrected my post #27915 (comment) now. The conclusion is still correct though, that it would be clearer if you could open a new issue. Have you checked that the issue with Firefox is repeatable? |
Thaank you, Already created new issue for the same. Much appriciated for quick response. |
|
FYI, you can workaround this if you use the Chromium browser packaged with pupeeter and dynamically update your browser list to use this, it's then available to Cypress and the tests pass. |
Aside from the incompatibility of chrome/cypress and those fixes this behavior also occurs if you have cypress running in another place so you can close all instances of cypress running and try running it up again. |
Having the same problem, on CI it works smoothly with static Chrome 111. But running on local has two scenarios: running Cypress 12.4 or lower shows the Author's timeout, and running v13 or above gives the 'connect ECONNREFUSED 127.0.0.1:4200'. Chrome version: 124.0.6367.202 |
Here are the debug logs that I just got from a failure. This is with Cypress 13.11 and Chrome 124. The issue is very intermittent. If there are better logs, let me know what I can adjust the
|
Please try updating to the latest Cypress version to see if this issue is resolved. We have resolved several browser connection error situations and this may already be fixed. |
The Node.js version |
|
I'm still having the issue too. Windows |
Could you run Cypress in debug mode mode and print the entire set of logs here? |
@jennifer-shehane since Chrome 128, I've been seeing this |
Buenos dias. ¿Se tiene solucion para el inconveniente de ? Timed out waiting for the browser to connect. Retrying... |
Are you on Chrome 129? I upgraded to |
@Matias0432 - I had this problem after upgrading to 129. The problem was solved once I closed Cypress, closed all instance of Chrome (Cmd-Q on Mac) and then started Cypress again. I am now able to open Chrome from the Cypress "Choose a browser" page and have Cypress successfully connect and set the URL etc. |
@aholland lamentablemente sigo con las mismas falla !!! |
See also Troubleshooting > Clear App Data. This is known to solve the issue in some circumstances. |
Hello! I have also encountered the connection Error issue. I just installed cypress, I cleared the app data, added some nodeEvents from Cypress that should bypass something frome chrome, but still nothing worked for me. I only encounter this issue for the Chrome browser. Below is a pastebin with all of the logs I could copy of the issue. |
Hello! Im facing the similar issue with chrome browser throwing error:
This issue is only faced during headless mode in both MAC and ubuntu instances. Cypress v13.15.1
Looking for some suggestion to work around this issue. |
Current behavior
I've had this cypress error for 4 days from the CI. The problem is that I haven't touched anything and I don't understand what's happened.
If so, when do you expect to fix it?
Desired behavior
No response
Test code to reproduce
i cant reproduce, its on the CI
Cypress Version
12.12.0
Node version
v.16.20.1
Operating System
macOs 13.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: