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.

Gtk-WARNING **: cannot open display: when cypress is first run from CLI

See original GitHub issue

Current behavior:

After directly downloading from the website and running Cypress verify or Cypress version, this message is displayed: Gtk-WARNING **: cannot open display:

Desired behavior:

It seems like cypress is trying to open a GUI, but this should not be necessary. We want to be able to run it via CLI.

Steps to reproduce: (app code and test code)

  1. Direct download from cypress.io
  2. Running Cypress verify

Versions

Cypress : via direct download(should be the latest version) OS: Debian GNU/Linux 9

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
JacekWalczak92commented, Jan 7, 2020

For me works: -> change display to 0:0: export DISPLAY=0:0 -> then: xhost + -> set up a display to proper one: export DISPLAY=$IP:0 -> and launch docker container :)|

2reactions
flotwigcommented, Jan 28, 2020

@PMK try Cypress 3.8.3, there was a fix related to this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hi Nick, thanks for the article. I'm trying to run cypress inside ...
I'm trying to run cypress inside wsl 2, but the command yarn run cy:open always display an error message saying this: (Cypress:23887): Gtk-WARNING ......
Read more >
git produces Gtk-WARNING: cannot open display
I have finally discovered a solution to the problem. As it was described here, I ran the following command in the terminal:
Read more >
Run Cypress with a single Docker command
1 open --project . I am receiving this error: (Cypress:16): Gtk-WARNING **: cannot open display: /private/tmp/com.
Read more >
gksu: Gtk-WARNING **: cannot open display: :0 - Ask Ubuntu
Try running xhost +localhost in your terminal, and then running the command again. This lets all users on your system (i.e. root) open...
Read more >
How do I fix a "cannot open display" error when opening an X ...
8), opening an terminal in X11 and running xhost + , I then ssh -Y to my Ubuntu 10.04 VM (running on VMware...
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