Skip to content
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

Browser: 'chrome' was not found on your system or is not supported by Cypress. #8736

Closed
MaximeCheramy opened this issue Oct 2, 2020 · 5 comments

Comments

@MaximeCheramy
Copy link

MaximeCheramy commented Oct 2, 2020

Current behavior

We are building a docker image with cypress, chrome and all the spec files (using cypress/included). This image is run from our instance of Gitlab CI automatically. Only the CYPRESS_BASE_URL environment variable and the name of the spec file are passed to the docker run command line.

Sometimes, very rarely, we have the following error:

> cypress run --headless --browser chrome --reporter cypress-multi-reporters --reporter-options configFile=reporter-config.json "--spec" "cypress/integration/interview.spec.ts"
[15:37:14]  Verifying Cypress can run /root/.cache/Cypress/5.3.0/Cypress [started]
[15:37:16]  Verifying Cypress can run /root/.cache/Cypress/5.3.0/Cypress [completed]
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
Couldn't determine Mocha version
Can't run because you've entered an invalid browser name.
Browser: 'chrome' was not found on your system or is not supported by Cypress.
Cypress supports the following browsers:
- chrome
- chromium
- edge
- electron
- firefox
You can also use a custom browser: https://on.cypress.io/customize-browsers
Available browsers found on your system are:
- firefox
- electron

The system automatically retry failed jobs and it works the second time.

Desired behavior

Not crash.

Versions

Cypress 5.3.0 inside a Docker running on a Ubuntu 20.04.

@scottcrowe
Copy link

Seeing the same inconsistent behavior in a image built off of the cypress/browsers:node10.16.0-chrome77

@ptrk8
Copy link

ptrk8 commented Dec 13, 2020

Just thought that I'd reiterate that I'm experiencing the same issue using the official cypress Docker image, specifically "cypress/included:5.3.0".

The command I'm running in the Docker container is as follows:

NODE_ENV=test $(npm bin)/cypress run --config video=false --browser chrome --headless --record --key <my_key> --parallel --ci-build-id $BUILD_NUMBER

Below is the error I'm receiving. Like the others, it happens very inconsistently. Very perplexing given Chrome comes preinstalled with the "cypress/included:5.3.0" docker image.

cypress_1 | Can't run because you've entered an invalid browser name.
cypress_1 | Browser: 'chrome' was not found on your system or is not supported by Cypress.
cypress_1 | Cypress supports the following browsers:
cypress_1 | - chrome
cypress_1 | - chromium
cypress_1 | - edge
cypress_1 | - electron
cypress_1 | - firefox
cypress_1 | You can also use a custom browser: https://on.cypress.io/customize-browsers
cypress_1 | Available browsers found on your system are:
cypress_1 | - firefox
cypress_1 | - electron

The docker container is built and run by a Jenkins server running on Ubuntu 18.04.

@barakplasma
Copy link

I think this issue belongs on the https://github.com/cypress-io/cypress-docker-images instead of this repo

@rachelruderman
Copy link
Contributor

I can confirm that this error also (rarely) happens on cypress/included:6.3.0

@jennifer-shehane
Copy link
Member

Duplicate of #8611

@jennifer-shehane jennifer-shehane marked this as a duplicate of #8611 Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants