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 fails to start due to missing X server or display (MacOS 15.1.1) #6238

Open
chriscconte opened this issue Jan 29, 2025 · 0 comments
Open
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@chriscconte
Copy link

Description

When I do ./run cypress run locally, I get the following error

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.

----------

[16:0129/234121.443033: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
[16:0129/234121.966452:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[16:0129/234121.966468:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.

----------

Platform: linux-arm64 (Debian - 11.9)
Cypress Version: 13.7.3  

Steps to reproduce

  1. run the dev server on your machine ./run dev
  2. run xQuartz window server xhost +local:
  3. in a separate terminal window, run the cypress command ./run cypress run

Screenshots

Image

Code Sample


Setup

  • Mermaid version: commit #a01938c
  • Mac OS 15.1.1
  • XQuartz 2.8.5

Suggested Solutions

Removing these two lines (26,27) in the docker-compose.yml file fixes the issue for me.

    environment:
      - DISPLAY

Additional Context

No response

@chriscconte chriscconte added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant