-
-
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
Firefox node issue, browser hangs #31
Comments
If you are running Since you are trying to explicitly launch firefox without xvfb running, there would be no display device for it to work. |
@mtscout6 thanks a lot for your response! |
For a sanity check, can you run the Also, have you tried removing the selenium/node-firefox image and re-pulling it from docker hub? |
Hey @mtscout6, I am seeing this issue as well. I have tried removing the selenium/node-firefox and the selenium/hub images and re-pulling them. I have also run the test.sh script and got the following:
I have tried against the standalone-firefox image and got the same errors. Any debug steps/ideas would be appreciated. |
May be related to #36 . In particular https://code.google.com/p/selenium/issues/detail?id=8390 . |
I was thinking the same thing, but I have pulled the images fresh from hub.docker.com today and they are working. They were last built before the latest release of firefox. Have you built them yourself locally? |
Hmm, odd. I pulled them down today and get Mozilla Firefox 35.0.1 if I run firefox -v against any of the images. I have tried building them locally and am playing with curling down a lower version of Firefox. |
So I am still seeing the error running against firefox 33 👎 |
I only see this issue on my Ubuntu host. If I use boot2docker, I can run the exact same containers without any issues. |
We inspect this error over two days and wondered about
This error does happen because there is no display in the node-firefox environment.
Its important to enter a & after the screen creation to set the Xvfb process in background and don't close it in next command. |
The thing that's confusing is that's exactly what this line is for: https://github.com/SeleniumHQ/docker-selenium/blob/master/NodeBase/entry_point.sh#L21 |
The script was perfectly works in Windows / Mac (boot2Docker), but not in Linux. Perhaps some linux machine delete the virtual monitor after creating it. |
Have you tried setting |
@dpauli - let's be specific. boo2docker is based on tiny core linux (thanks @wadedude), so it's not a linux issue, per se. I suspect that it's only an issue on Ubuntu, which would be disappointing. I'll test on a Centos based system today and report back. |
We changed display with
without creating this display before. Then the error is
|
We could reproduce it with Ubuntu and CentOS as well. |
I don't have a linux machine to test with at the moment. So if you guys create a pull request with a fix I will test that it isn't broken on Mac and we'll go from there. |
I can also reproduce this on Ubuntu. I will try to check on mac when I have a chance. |
I created a hub:
image: selenium/hub
ports:
- "4444:4444"
node:
image: selenium/node-firefox
links:
- hub Then I put it up with I'm also getting those type of errors... It's running in an Ubuntu server 14.04. |
Does anyone have a setup that does work? I understand that there are a lot of things that don't work, but really most people just care about a working setup. I'm coming across the same errors with Ubuntu, and I'm even seeing it with boot2docker, so a solution rather than all of these problems would be nice. |
A colleague of mine setup a Docker Grid on Debian 8 without any of such problems. |
I have the same problem when running |
Seems that the problem lies actually in the following lines:
See: http://stackoverflow.com/a/22503523 Maybe |
installing dbus-x11 on the ubuntu host machine worked for me!
Thanks a lot @adiherzog |
This should not be an issue anymore due to the changes and improvements in the images since this was created, please report back and feel free to reopen in case this is still an issue. |
Hello,
my firefox nodes (i am running docker on ubuntu server) seem to hang (100% reproduces), as using custom docker builds as using official via docker pull (chrome nodes work well).
I tried to execute firefox in the container, seems to be no display configured:
If i execute docker logs $CID i see the following:
The text was updated successfully, but these errors were encountered: