Docker-selenium: Cannot connect to VNC server

Created on 31 Dec 2014  路  11Comments  路  Source: SeleniumHQ/docker-selenium

Thanks for the great work with this repo.

I'm having trouble connecting to the VNC server to debug why my selenium tests are failing. I've tried with multiple vnc clients on both mac and linux but without joy. I've also tried connecting without SSL in case the certificate missing was the issue.

I've tried connecting to:
127.0.0.1:49155
localhost:49155
selenium-hub-ip:49155
selenium-chrome-debug-ip:49155

$ docker ps
CONTAINER ID        IMAGE                               COMMAND                CREATED              STATUS              PORTS                     NAMES
0e68a29b6bf8        selenium/node-chrome-debug:2.44.0   "/opt/bin/entry_poin   About a minute ago   Up About a minute   0.0.0.0:49155->5900/tcp   angry_brown         
6bab0f7039ab        selenium/hub:2.44.0                 "java -jar /opt/sele   58 minutes ago       Up About a minute   0.0.0.0:4444->4444/tcp    selenium-hub 

Any ideas where I'm going wrong?

I-chrome-debug I-firefox-debug I-standalone-chrome-debug I-standalone-firefox-debug R-awaiting-answer

Most helpful comment

Remmina vnc

For Remmina you must change _Color depth_ to _True color (24 bit)_ first

All 11 comments

Did you try 0.0.0.0:49155?
Also, if you are using boot2docker on either mac or windows, you will need access to boot2docker ports.

Thanks for the quick response.

I tried 0.0.0.0:49155 too but no luck.

I'm not using boot2docker, I'm using vagrant on mac and docker.io on linux.

Sorry I have no experience with Vagrant, but there should be some kind of vagrant vm which is your dockerhost, once you find that then dockerhost:49155 should work. As for linux the localhost option should have worked, although I haven't used these on a linux box yet.

I forwarded the relevant ports from the Vagrant linux guest to the mac host so connecting to vnc://127.0.0.1:49155 from safari should work.

I tried with ssvnc and remmina vnc clients on my linux box which is running mint 16.

It doesn't look like I'm going to be able to solve this issue but thanks for your replies.

I managed to get it working on vagrant by creating a standalone debug image.

Then I was able to connect to 0.0.0.0:49154 with VNCReal viewer.

Is the only difference here the base image set to the standalone chrome image?

Yes and I also removed all the selenium grid stuff from the boostrap script

are you still having this issue @techjacker ?

Not tried it again since I posted that last commit two years ago

alrighty - well i'll close this out. feel free to reopen if you ever run into it again, or validate that you still can't

馃槂

Remmina vnc

For Remmina you must change _Color depth_ to _True color (24 bit)_ first

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Manolo2014 picture Manolo2014  路  3Comments

pfluegs picture pfluegs  路  4Comments

rosskevin picture rosskevin  路  5Comments

lluisteamcmp picture lluisteamcmp  路  6Comments

westlakem picture westlakem  路  5Comments