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

Xvbf fails to start with Host RHEL 9.3 + Docker 25.0.3 + Cypress Base Image #1028

Open
whlucky opened this issue Apr 2, 2024 · 2 comments
Open
Labels

Comments

@whlucky
Copy link

whlucky commented Apr 2, 2024

After upgrading our Build Servers to RHEL 9.3 our Gitlab CI/CD Steps running Cypress Tests started to fail.

[FAILED] Cypress Version: 13.6.6
Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
----------
[31:0322/115354.489665:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[31:0322/115354.873807:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[31:0322/115354.873822:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.

After lots of trail and error I could pinpoint the issue to Xvfb as it did even fail after starting Xvfb manually with

Xvfb -ac :99 -screen 0 1280x1024x16 &
export DISPLAY=:99

I tried lots of different cypress images include cypress/base:latest and cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1.
We could verify that this is a problem with the combination of RHEL 9.3, Docker and the cypress base image, as we could get it to run again by using ubuntu:latest and installing the requirements, so there is probably some incompability between RHEL 9.3 and the cypress base images.

@whlucky whlucky changed the title Xbvf fails to start with Host RHEL 9.3 + Docker 25.0.3 + Cypress Base Image Xvbf fails to start with Host RHEL 9.3 + Docker 25.0.3 + Cypress Base Image Apr 3, 2024
@podlesny-j
Copy link

@whlucky care to share your setup or functioning Dockerfile if you can, please? 🙏
I am running into similar issues and I could use some guidance.

@whlucky
Copy link
Author

whlucky commented Apr 4, 2024

@podlesny-j sure:

FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_21.x | bash
RUN apt-get install -y nodejs
RUN apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb

Just the latest ubuntu image with all cypress dependencies installed.

@MikeMcC399 MikeMcC399 added the bug label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants