-
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
"Still waiting to connect to Firefox" Firefox103 | Ubuntu 20.04 | Cypress 9.50.0 #23215
Comments
Hey @ChristianMLux, thanks for the ticket and apologies for the frustration. #22086 was closed because the issue, specifically with Firefox releases 101 and 102 for Windows, was corrected with Firefox 103. We didn't find Firefox 101 or 102 to have the same connection issue on Ubuntu. You could be seeing a new issue manifesting itself in the same way, as there are a number of reasons why the connection to Firefox could fail. The best place to start here would be to run cypress with the DEBUG env set so that we can review the logs: |
This is a really large junk of text. is this the log needed? Could |
little question about that block: is it possible that the delay of 1000 isn't enough for the ci to open the port requested? |
Is it somehow possible to extend the delay time? |
Seeing the same issue, my issue started after the update to Firefox 103, was working fine on 102 |
After more hours of investigating here is my workaround until it's fixed:
|
did you add the above to your workflow before kicking off cypress? Does it add much overhead? |
@DawidOskwarek pool:
vmImage: "ubuntu-latest"
.
.
.
steps:
.
.
.
- script: |
sudo apt-get purge firefox
wget https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_102.0.1-0ubuntu1_amd64.deb
sudo dpkg -i firefox-mozilla-build_102.0.1-0ubuntu1_amd64.deb
sudo apt-mark hold firefox
displayName: 'Install FF102 (workaround as FF103 is bugged)'
.
.
. - script: |
npm run cypress:ci -- browser=firefox frontendPrefix=../ui-release specs=cypress/integration/...../**
.
.
. |
Hi @ChristianMLux. Thank you for opening an issue. I created a reproduction repository, but wasn't able to reproduce the issue. It's a docker image that is installing firefox I am wondering if there is something unique about the azure agent that would cause a problem. Maybe worth a try exploding the tarball directly similar to the Dockerfile? |
@AtofStryker can you try to reproduce the issue by creating a Github Actions workflow and using the latest ubuntu runner with cypress-io/github-action (firefox browser). This would be exactly my setup and the firefox browser is failing 1/4 times on average |
@AtofStryker |
@DawidOskwarek which FF version you are on? |
@DawidOskwarek @ChristianMLux what version of Node is being used in the github worksflows runner? |
@AtofStryker |
@ChristianMLux thank you for sharing that. I wanted to rule out Node 18 as we have seen some issues with that thus far. Hopefully I get some time today to attempt a reproduction with github worksflows. I should be able to use the same repository and will keep you both updated |
@ChristianMLux I have moved the repo over to azure devops and created a pipeline. However, I do not have the ability to run azure devops freely on a public repo. I submitted a parallelization request, and likely will hear back in 2-3 days. Any ideas around this? Link is here |
@AtofStryker any luck with reproducing on the github workflow instead of azure devops? |
@DawidOskwarek every time I try to run firefox within github workflows with a docker image, I can't seem to actually locate the binary (even though it's right there). I created cypress-io/cypress-docker-images#729 for this issue. My guess is you aren't using the docker image? Do you have a sample configuration you can share out to get me started? |
@AtofStryker Seems to be standard behavior since they wanted protection from spam bots etc. |
@AtofStryker I'm using similar config to the below:
|
Is it possible to use an earlier version of Firefox that worked in the meantime? |
Hi, Update: The workaround XDG_CONFIG_HOME=$HOME/cypress from #19793 works, too. Hope this will help you and: Thanks so much for your work! |
Hi @bijx ! Can you confirm if @FrankL-git 's suggested workaround is working for you? Thank you both! |
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen. |
Hi, I just tried the call
(without setting XDG_CONFIG_HOME) with cypress 10.6.0 and firefox 104.0 and it works. It's due to the update of firefox (snap refresh) because with cypress 10.6.0 and firefox 103.0.2 it produces the "Still waiting ..." yet. Thank's again for cypress! |
disable unreliable Firefox test using Cypress v9 GitHub Cypress issue cypress-io/cypress#23215 describes the problem
disable unreliable Firefox test using Cypress v9 GitHub Cypress issue cypress-io/cypress#23215 describes the problem
I have noticed this issue occurring using github-action (GHA) with Cypress 9.6.1 (see issue cypress-io/github-action#659) and Firefox 107.0.1. I couldn't however see it happening on Cypress 10.0.0 or 12.0.2. |
Should this issue be re-opened? It seems to be an intermittent problem only. I'm unclear about the Cypress support policy and if it is intended to provide fixes for Cypress 9.x, since apparently the issue doesn't occur after migrating to Cypress 10 and later. If there is interest in this I have collected Cypress DEBUG logs with both failed and successful runs. |
Hi @MikeMcC399 , we currently do not backport fixes to older versions of Cypress. I would definitely like to hear more about reasons folks can't upgrade to the latest versions of Cypress. We are always trying to make the upgrade process as simple and stable as possible for our users, so any friction points you may be facing would be really helpful to understand so hopefully we can address them. |
|
disable unreliable Firefox test using Cypress v9 GitHub Cypress issue cypress-io/cypress#23215 describes the problem
First of all, i know that this issue should be fixed with FF103. but I'm still facing the same error and got really no idea what to do after many hours of searching through issues since 2019 x.x
Current behavior
Desired behavior
Cypress must be loaded within the Firefox browser
reproduce
headless mode in ci.
-FF103
-Ubuntu 20.04 (via vmImage ubuntu latest: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml)
-Cypress 9.40.1
https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
Can anyone give me a tip on what else I can do here?
According to the readme of the Unbuntu image, the Firefox version has already been updated to V103. Unfortunately, I'm still facing the bug mentioned above
Originally posted by @ChristianMLux in #22086 (comment)
The text was updated successfully, but these errors were encountered: