Skip to content
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

Settings VNC_PASSWORDLESS to 'true' results in 'ERR_CONNECTION_REFUSED' #31

Closed
GOvEy1nw opened this issue Jul 25, 2024 · 13 comments
Closed

Comments

@GOvEy1nw
Copy link

Hi, this is a great container, thank you.

I've set it up on my Unraid server, and I wanted to use it without a password as I'm only accessing locally. However when I add 'VNC_PASSWORDLESS' with the value 'true' as a variable, it no longer works and results in 'ERR_CONNECTION_REFUSED' .

If I set it to 'false', it works fine.
If I set VNC_PW to be blank, and keep 'VNC_PASSWORDLESS' set to false, it also works fine (though still have to click the popup).
If I set VNC_PW to be blank, and set 'VNC_PASSWORDLESS' to true, it no longer works and results in 'ERR_CONNECTION_REFUSED' .

There's no errors in the docker log. The noVNC heading says 'Something went wrong, connection is closed'.

Is there a fix for this please?

@evans036a
Copy link

i have the same problem.

thanks,
steve

@groenator
Copy link
Owner

groenator commented Jul 26, 2024

Hey guys,

I've looked at the VNC base image documentation to try finding if there are issues with VNC_PASSWORDLESS. However, I haven't found any. The developer is just suggesting to use this variable.
When you set this variable to VNC_PASSWORDLESS equal true, how did you set it? Did you set the value as a boolean or string?

I am going to try testing it this weekend in my home lab and get back to you.

Unfortunately, this variable is set by the VNC base image not me.

@groenator
Copy link
Owner

groenator commented Jul 26, 2024

Another way to access the container without clicking the pop-up I use this URL: http://localhost:6901/?password=vncpassword. Replace localhost with your machine host IP. Of course in this instance I am using the default password from VNC.

@evans036a
Copy link

evans036a commented Jul 26, 2024 via email

@evans036a
Copy link

This sucks that you cannot save the password on your vnc client. Have you tried using RealVNC client? If I remember correctly, you can save your password. What OS do you use?

windows for the front end.

i used to use realVNC some years ago, but ran into issues that tightVNC solved. for the life of me i dont remember what those issues were. it may have been related to using it on a windows server (which i dont have any more). i'll give realVNC another try.

thanks for the tip.
steve.

@groenator
Copy link
Owner

It appears there's a bug on their side. When I use the debian version container and set the variable, the container doesn't start. If I use the Rocky base version and set the variable the container is starting well. I am going to open a case with them and see if there's anything to do to fix this.

docker run -it -p 5901:5901 -p 6901:6901 -e VNC_PASSWORDLESS=true consol/rocky-xfce-vnc                       
Unable to find image 'consol/rocky-xfce-vnc:latest' locally
latest: Pulling from consol/rocky-xfce-vnc
489e1be6ce56: Already exists 
041b96c16345: Already exists 
267348571648: Already exists 
3d2a1ef7a37f: Already exists 
719040561794: Already exists 
956f0809b069: Already exists 
c66cf48d04ed: Already exists 
309b2626f099: Already exists 
0c244a6e87b0: Already exists 
620db9a9674d: Already exists 
152002d12272: Already exists 
4fe493324ae4: Already exists 
8a361259be9e: Already exists 
f03d5b5e1023: Already exists 
c8d90773a8f3: Already exists 
Digest: sha256:f69f5caa1c9d3777704cc18c319fac257f6ae34a22bee802f9f433636d5b932c
Status: Downloaded newer image for consol/rocky-xfce-vnc:latest
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
USER_ID: 1000, GROUP_ID: 0
nss_wrapper location: /usr/lib64/libnss_wrapper.so
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

------------------ update chromium-browser.init ------------------

... set window size 1280 x 1024 as chrome window size!


------------------ change VNC password  ------------------

------------------ start noVNC  ----------------------------
start vncserver with param: VNC_COL_DEPTH=24, VNC_RESOLUTION=1280x1024
...
start window manager
...


------------------ VNC environment started ------------------

VNCSERVER started on DISPLAY= :1 
        => connect via VNC viewer with 172.17.0.2:5901

noVNC HTML client started:
        => connect via http://172.17.0.2:6901/?password=...

@groenator
Copy link
Owner

groenator commented Jul 27, 2024

Issue raised: ConSol/docker-headless-vnc-container#205

@evans036a
Copy link

Issue raised: ConSol/docker-headless-vnc-container#205

thankyou

@groenator
Copy link
Owner

You are welcome!

@groenator
Copy link
Owner

Updates from my issue raised:

It seems this was fixed in the most recent commit https://github.com/ConSol/docker-headless-vnc-container/commit/94657f6ae0a1b58fb451dfa6e48b61729b0a488f.
The corresponding image is available on Docker Hub using the nightly tag.

Once is in the stable channel I will rebuild the image and push a new update.

@evans036a
Copy link

again, your efforts are greatly appreciated. many thanks.

@groenator
Copy link
Owner

Issue fixed #36. Pull the latest version and test it. It works fine on my end. Re-open the issue if you are still encountering issues.

@evans036a
Copy link

tested and working as expected.

many thanks,
steve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants