-
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
Docker - Browser: 'chrome' was not found on your system or is not supported by Cypress #8611
Comments
@sabarishnarain it seems to work fine with version 5.1.0 |
@gustawx and which docker image are you using? i had the issue reproducible even with 5.1.0 version |
Currently I'm successful with latest version 5.6.0. |
yep, im using latests cypress/browsers:node12.18.3-chrome83-ff77 and latest cypress version 5.6.0
edit: im using this to run ~24 runs for 24 country permutations of our web and approx. every 3rd run one of the 24 jobs fails with the above message |
What's on your dockerfile? |
@j2020v I was using the default image cypress/browsers:node12.18.3-chrome83-ff77 one thing I tried doing was to rehost this on our GitLab so just recently I tried updating to the newest image The worst thing is more time I spent debugging this more nonsensical it seems
|
here is also pastebin with debug enabled https://pastebin.com/TfDr5rYE |
I just faced the same issue:
Cypress 5.2.0 It looks like flickering issue, because previous and next builds with the same configuration executed without the issue. |
Also I see a similar issue here: #8736 |
any news about this? this is still a problem for us |
Cypress looks for chrome installation in this Path: "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe". If chrome installed in "C:/Program Files/" then it will throw an error. |
Intermittent issue on our CI with cypress@6.2.1 using Cypress official Docker image. Same error, approx 1/50th of the time. Restarting the job almost always results in a successful run. No clear pattern. |
Same here. Problem happens randomly, maybe 1-2% of the time, even though nothing about our infra is changing. Also running Cypress 6.2.1. |
We've been closely monitoring this issue. Same image for all our runners. Same resources for all our runners. But we are seeing two Cypress-related errors intermittently. This one and Smoke test timeouts. |
We noticed this issue happening too in one of our longer (~50 lines) cypress tests (rare, but annoying), but another hello world test on google.com has had no such failure on any run in the last 30 days. Could it depend on the nature of the test? |
seems to work now using cypress/browsers:node14.16.0-chrome89-ff86 |
it only worked when I've tried with |
What @madhav580 here said is what appears to have been the issue for a good deal of these cases, it seems. |
I see this with Chrome installed on Debian 9. |
Having the same issue with |
I believe this is an issue with the Cypress launcher and not Docker image related. The issue is caused by not fully reading the output of the browser's version command. In the The issue is in cypress/packages/launcher/lib/utils.ts Lines 8 to 40 in 60b217c
When the
According to the PR that introduced
To resolve the issue, Cypress could revert to using the As an example, for Chrome Cypress tries all of cypress/packages/launcher/lib/browsers.ts Lines 7 to 14 in 60b217c
In the Cypress Docker images, only I have observed one of the two Chrome detections fail in the Docker container by running I have observed the general issue when running Cypress intermittently with Cypress 6.x and Cypress 7.1.0. You can see the issue with empty stdout in the provided logs
The earliest Cypress version I found this issue reported with is Potential duplicate issues
Potential obsolete issues |
@pgfisico it's a great investigation, thank you! @bahmutov @jennifer-shehane probably you can fix it? Seems now the fix is clear. |
ughh, @pgfisico I ran Chrome detection 1000 times in a row in a Docker container, did not see the empty output. Do you know how one could see the STDOUT still streaming after the |
We've merged a PR so that the verify process listens for the 'close' event instead of 'exit'. We're not sure if this solves this issue since we weren't able to recreate it. You can install the pre-release with the potential fix by following the instructions here. Please let us know if this seems to fix the issue or not. |
We released 7.3.0 with a change that we believe should fix this issue. This error should only display when Chrome is not installed on the system. Please comment in this issue if this error is still displaying in your Docker container with Chrome installed after updating to 7.3.0. |
I had exactly same issue with version : 8.3.0 . any help please ! |
Please help! We are using cypress v7.6 and the situation is quite frequent for us still |
@AnnaKarinaNava The recommended workaround is to use the chrome/ff images and it appears it has worked out so far. I tried Thanks to the cypress team who appears to have addressed this issue. I'm not active over my personal projects now, but if anyone still sees this problem please feel free to re-open. |
If I may say so that is not a very good description of how one is supposed to work around the problem. I get this issue with 8.7.0 when using github-actions. Where does one specify |
Could a more up-to-date image containing the most up to date version of chrome-stable be released so that the workaround can be utilized? The application that I have automation built requires t the most recent version of chrome be used or else there is an error (This is for an internal application). I am getting the " Browser: 'chrome' was not found on your system or is not supported by Cypress." error using cypress/base:16.5.0 docker image. My Dockerfile handles retrieving the latest version of chrome-stable. The most recent chrome/ff image is for chrome version 94 (chrome94-ff93). I require chrome-stable 96.. |
tried image: cypress/browsers:node14.15.0-chrome86-ff82 and it works fine now |
cypress version 4.11
Current behavior:
cypress run --browser chrome --headless --spec "**/pr/*.spec.ts"",
Tests intermittently fails with the following.
Browser: 'chrome' was not found on your system or is not supported by Cypress - on docker
This happens more frequently in azure CI services on using
cypress/browsers:node12.16.2-chrome81-ff75
.Workaround is to re-try the job several times.
cypress.log
Desired behavior:
Tests should run on chrome.
Test code to reproduce
Not sure how to provide a test code. This problem is very common with the above docker image and in Azure CI. I can provide the link to the CI job if needed.
The text was updated successfully, but these errors were encountered: