Getting error while running cypress on Jenkins - some dependencies missing
See original GitHub issueCurrent behavior:
I am trying to launch my cypress tests from Jenkins, using docker image cypress/base:8. Here are a few lines of my log and the error I get on cypress run instruction:
> Running shell script
+ docker inspect -f . cypress/base:8
[...] // checkout code, install node modules
> start-server-and-test start:dev http://localhost:4000 cypress:run
[...] // application is starting
> cypress run
It looks like this is your first time using Cypress: 3.1.1
[?25l[15:25:16] Verifying Cypress can run /home/node/.cache/Cypress/3.1.1/Cypress [started]
[15:25:16] Verifying Cypress can run /home/node/.cache/Cypress/3.1.1/Cypress [failed]
[?25hCypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.io/required-dependencies
If you are using Docker, we provide containers with all required dependencies installed.
----------
Command failed: /home/node/.cache/Cypress/3.1.1/Cypress/Cypress --smoke-test --ping=836
----------
Platform: linux (Debian - 8.11)
Cypress Version: 3.1.1
What is that --smoke-test option ? Anyone, any idea why it could fail ?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Missing dependencies when running Cypress on Jenkins
This is a common error in Linux machines. The solution has been provided in https://docs.cypress.io/guides/continuous-integration/ ...
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
I'm getting an error when trying to start cypress on circleCI: Cypress failed to start. This is usually caused by a missing library...
Read more >Continuous Integration - cypress - w3resource
Running Cypress in Continuous Integration is very similar to running Cypress ... for some CI providers in order to help you get started....
Read more >Common errors | npm Docs
Random errors · Some strange issues can be resolved by simply running npm cache clean and trying again. · If you are having...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The problem came from our jenkins configuration ; DISPLAY environment property was set, which created some trouble with the following line: https://github.com/cypress-io/cypress/blob/24e9315e38d1e3d97918962cbdc0252f339e658d/cli/lib/exec/xvfb.js#L43
Existing issue for
DISPLAYenv var is here. PRs are welcome! https://github.com/cypress-io/cypress/issues/4034