question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting error while running cypress on Jenkins - some dependencies missing

See original GitHub issue

Current 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
euZebecommented, Dec 3, 2018

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

0reactions
jennifer-shehanecommented, May 6, 2019

Existing issue for DISPLAY env var is here. PRs are welcome! https://github.com/cypress-io/cypress/issues/4034

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found