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.

Cypress doesn't start when running in RHEL7 docker container

See original GitHub issue
  • Operating System: RHEL 7.4
  • Cypress Version: 0.20.0
  • Browser Version: N/A

Is this a Feature or Bug?

Bug or maybe just an unsupported OS

Current behavior:

Cypress fails to start. It produces the following output:

It looks like this is your first time using Cypress: 0.20.0

[16:44:03]  Verifying Cypress can run /data/node_modules/cypress/dist/Cypress [started]
[16:44:05]  Verifying Cypress can run /data/node_modules/cypress/dist/Cypress [failed]
Cypress 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 using Docker, we provide containers with all required dependencies installed.
----------
----------

Platform: linux (Red Hat Linux - 7.4)
Cypress Version: 0.20.0

NOTE: despite declaring it would list the missing dependencies, the output does not contain any.

Desired behavior:

Cypress starts, or gives better output as to what is missing or what went wrong.

How to reproduce:

Run cypress run in a RHEL7 docker image with the following dependencies installed:

yum install -y xorg-x11-server-Xvfb GConf2 alsa-lib libXScrnSaver gtk2 nss-devel libnotify-devel

Test code:

N/A

Additional Info (images, stack traces, etc)

The dependencies listed in the CI documentation are for an apt-get command, but RHEL uses yum. We attempted to find the relevant dependencies for yum, but it is entirely likely that we got them wrong. The following shows which dependencies were used as replacements for the apt-get versions:

xvfb -> xorg-x11-server-Xvfb
ibgconf-2-3 -> GConf2
libasound -> alsa-lib
libxss1 -> libXScrnSaver
libgtk2.0-0 -> gtk2
libnss3 -> nss-devel
libnotify-dev -> libnotify-devel

The reason we are trying to run on a RHEL image instead of just using your docker container is that it needs to run in our corporate network and there are lots of certificates and other configurations required, so we were hoping to make it easier for us and use one of our base images and install Cypress on top of that.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tormosengcommented, Sep 18, 2017

Otherwise you might also try the “under hood” xvfb-run command:

$ xvfb-run a -s “-screen 0 1280x1024x24” ./node_modules/cypress/dist/Cypress/Cypress --run-project <project.basedir> --spec <project.basedir><spec.file>

0reactions
jennifer-shehanecommented, Jan 3, 2020

@ajzawawi Open an new issue in our docs to document the RHEL… Our documentation is open source and contributions are welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run Cypress with a single Docker command
I've tried this setup but I can't run the test runner from the container. When I launch it, it suddenly stops with exit...
Read more >
pull access denied repository does not exist or may require ...
But, the run command wants the id of an image, not a container. To start a container, docker wants. docker start -i <crypticalId>....
Read more >
Part 1: Docker for Oracle Database Applications in Node.js ...
To show a container running as a daemon, I'll swap to using Node.js. (Yes, this still doesn't connect to a database). Create a...
Read more >
How to install the Azure CLI - Microsoft Learn
The Azure CLI is available to install in Windows, macOS and Linux environments. It can also be run in a Docker container and...
Read more >
Running integration tests in Kubernetes | by Balazs Szeti
Let's have a look at how to run integration tests by starting multiple ... create all the containers pulling the given Docker images...
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