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

[Cypress/included] Permission issue with xvfb #1303

Open
FrankReisenhofer opened this issue Feb 19, 2025 · 3 comments
Open

[Cypress/included] Permission issue with xvfb #1303

FrankReisenhofer opened this issue Feb 19, 2025 · 3 comments

Comments

@FrankReisenhofer
Copy link

We are running on a Jenkins in a CI/CD pipeline cypress tests using the latest docker image "cypress/included".

We get an issue with Xvfb. Any idea what is causing this issue and how to solve it?

Thanks for a hint

[1]

cypress run --component --browser chrome

[STARTED] Task without title.
[FAILED] Xvfb exited with a non zero exit code.
[FAILED]
[FAILED] There was a problem spawning Xvfb.
[FAILED]
[FAILED] This is likely a problem with your system, permissions, or installation of Xvfb.
[FAILED]
[FAILED] ----------
[FAILED]
[FAILED] Error: _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[FAILED] _XSERVTransMakeAllCOTSServerListeners: server already running
[FAILED] (EE)
[FAILED] Fatal server error:
[FAILED] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
[FAILED]
[FAILED] ----------
[FAILED]
[FAILED] Platform: linux-x64 (Debian - 12.9)
[FAILED] Cypress Version: 14.0.3
Xvfb exited with a non zero exit code.

There was a problem spawning Xvfb.

This is likely a problem with your system, permissions, or installation of Xvfb.


Error: _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)


Platform: linux-x64 (Debian - 12.9)
Cypress Version: 14.0.3

@MikeMcC399
Copy link
Collaborator

@FrankReisenhofer

Error: _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)

There are some comments in https://docs.cypress.io/app/continuous-integration/overview#Xvfb about problems with multiple X11 servers which may help you in your environment.

@MikeMcC399
Copy link
Collaborator

@FrankReisenhofer

Were you able to resolve your X11 issue under Jenkins? I don't believe that this would be a bug in the Cypress Docker image, so looking for your feedback.

@FrankReisenhofer
Copy link
Author

FrankReisenhofer commented Feb 21, 2025

@MikeMcC399 : So far we did not find a working solution. Also with the hints you provided . Main reason might be: We are not running the tests in parallel. But that is the prerequisite in your hint

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

2 participants