docker-selenium icon indicating copy to clipboard operation
docker-selenium copied to clipboard

VNC connection requires password

Open chrismcmahon opened this issue 6 years ago • 6 comments

Please make sure that the boxes below are checked before you submit your issue. Thank you!

Operating System

Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64

Image version

I have latest version of this image. Upgrade with docker pull elgalu/selenium

Docker version

  • [ ] I have latest version of docker and I will specify here the output of docker --version Docker version 19.03.5, build 633a0ea

Docker-Compose

  • [ ] I have latest version of docker-compose and I will specify here the output of docker-compose --version docker-compose version 1.24.1, build 4667896b

I want to VNC into a running firefox_grid image. I use the Safari browser and vnc://localhost:5900. Apple Screen Sharing shows me a dialog saying "Screen Sharing requires a password to sign in to "localhost"". I get the same result using vnc://0.0.0.0:5900 An empty password does not result in a connection. The system password does not result in a connection.

Note that with the docker-compose file below I can go to http://127.0.0.1:6080 and see the running image by way of noVNC. I need actual VNC in order to manipulate the Firefox browser instance preferences in ways that can not be automated.

This is my docker-compose.yml section describing the image:

firefox:
    image: elgalu/selenium
    depends_on:
      - hub
   # volumes:
   #   - /dev/shm:/dev/shm
    ports:
     # VNC: See what's going on by connecting your VNC client to 0.0.0.0:5900
      - 5900:25900
      # noVNC: See what's going on by hitting http://0.0.0.0:6080 in your browser
      #        Important: http://127.0.0.1:6080 works but http://localhost:6080 doesn't
      - 6080:26080
    shm_size: 12g
    privileged: true
    environment:
      - NOVNC=true
      - DEBUG=false
      - SELENIUM_HUB_HOST=hub
      - SELENIUM_HUB_PORT=4444
      - SELENIUM_NODE_HOST={{CONTAINER_IP}}
      - SCREEN_WIDTH=1300
      - SCREEN_HEIGHT=999
      - VIDEO=${VIDEO-false}
      - GRID=false
      - CHROME=false
      - FIREFOX=true

chrismcmahon avatar Dec 03 '19 17:12 chrismcmahon

@chrismcmahon have you checked the readme? https://github.com/elgalu/docker-selenium#vnc

diemol avatar Dec 03 '19 18:12 diemol

The README says "When you don't specify a VNC password, the new default VNC_PASSWORD=no will make it VNC passwordless accessible."

I reported the issue because this seems not to be true. My experience is that a password is required, and I have no password that works.

chrismcmahon avatar Dec 03 '19 18:12 chrismcmahon

Ok, then let's wait for @elgalu

diemol avatar Dec 03 '19 18:12 diemol

aha, in docker-compose.yml I can specify "VNC_PASSWORD=foo" and get in that way, so there is a workaround if this is a bug

chrismcmahon avatar Dec 03 '19 18:12 chrismcmahon

Hi all! from now on I will only be able to give support to project contributors or to users that click and follow the Sponsor button thanks in advance for your support <3

elgalu avatar Dec 10 '19 15:12 elgalu

I saw the same issue, and It seems to be a limitation of the default VNC client of OSX, which requires password input. Password-less access works fine from Linux.

ksauzz avatar Dec 18 '19 05:12 ksauzz