-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
node-firefox often fails with "Error: cannot open display: :99" #772
Comments
Hi @anto-ac, Is it possible for you to provide have a test that can help us to replicate the issue? Even if it only happens every now and then, we can just run it several times and wait until it happens. |
Hi @diemol, I guess I could put something together. Something like
Or did you have something else in mind? |
I was wondering, though, if you had any ideas already. There were some issues with this reported in the past, some of which where addressed. For example: #184 |
Yeah, but in theory that was resolved. So, yes, a project that help us replicate it would be really helpful, thanks. |
Also, just to clarify, I have never seen it when running the tests on a local machine (admittedly different version of docker, different host os), but only when the tests run in Jenkins. |
@diemol I have created a repo here: https://github.com/anto-ac/node-firefox-cannot-open-display |
Issue is not “awaiting answer” anymore I don’t think. |
No, it is not... I tried to reproduce the issue within a new VM with Jenkins and using the repo you provided (by the way, thanks for that, I wish all issues provided something like that)... But I could not, I ran the Jenkins job over 50 times and I could not see the error. Nevertheless, maybe there is some context missing? Are there more jobs running at the same time with the same images? I did some googling and I saw reports of the same issue for Firefox even without docker, always with display :99. So maybe we need to research more in that direction. |
Unfortunately it happens very sporadically. We’ve tried to reproduce it consistently, but failed to do so. I thought that perhaps it would happen more often if more than one job was running on the same Jenkins slave at the same time, but failed to find any correlation. Our original code adds a unique prefix to all containers when created (in order to avoid different jobs using the same containers). I’ve removed that bit from the example for convenience. |
Meta -
Image(s):
node-firefox
Docker-Selenium Image Version(s):
3.14.0-arsenic and previous versions
Docker Version:
17.06.2-ce
OS:
Debian 3.16.43-2 (2017-04-30)
Setup:
wdio + grid with a hub, 8 chrome nodes and 8 firefox nodes.
Tests run on a Jenkins slave
Expected Behavior -
All nodes work as expected throughout the duration of the test run.
Actual Behavior -
Sporadically, one (sometimes more) firefox nodes fail to have a session initiated, leading to the spec assigned to that session not being executed and the whole . The error is:
The text was updated successfully, but these errors were encountered: