Closed Desperado closed 7 years ago
Seen this?
http://stackoverflow.com/questions/32151043/xvfb-docker-cannot-open-display
Also, you might have some luck deleting the tmp lock files that Xvfb leaves. See this search: https://www.google.com/#q=xvfb+tmp+lock+%22cannot+open+display%22
Hi @samhatoum. Thanks. It seems I have fixed this particular error with downgrading FF to 47.0.1 http://seleniumsimplified.com/2016/06/use_selenium_webdriver_jar_locally/
But currently it fails just with this with no other information.
[Error: Unable to connect to selenium]
Can you provide some hints how to get more information what is getting there or maybe how to start selenium-standalone with debug mode over chimpJS?
Thanks in advance
@samhatoum I have resolved this problem. Basically after any chimp/selenium run in /tmp folder I have following directories:
.X11-unix
hsperfdata_root
npm-3799-222f1b69
And they are there after xvfb stop as well. Only cleaning them together with cleaning /node_modules/chimp
will make path to test successfully running again and connect to selenium on the same environment.
Thanks for hints.
Also, maybe not really related question, but how can I make only selenium-standalone
module installed after deletion?
how can I make only selenium-standalone module installed after deletion?
I don't understand the question :)
@samhatoum nevermind. Actually my problem is described here https://github.com/xolvio/chimp/issues/469. I often receive phantomjs2 installation error, which is part of the chimp, though I don't really use it. PhantomJS tar seems to be placed on some remote repo, and sometimes disconnection happen and installation fails. And it's like 30% chance of failing, especially during PDT daytime
ok, closing this. thanks
thanks
Hello, this problem happens for me while running chimp e2e tests second, third or any other time, while on headless linux host, freshly built on docker. First time after image is built test runs well.
What should I do to forgot about this trouble? Why it looses to find the screen and open display?
Here is also my xvfb start-stop script