noVNC requires a secure context (TLS). Expect crashes!

1,296 views
Skip to first unread message

Shane Wang

unread,
Apr 8, 2023, 9:02:08 AM4/8/23
to noVNC
Hi, All,

When I was trying to connect to the remove VNCserver, I got "Failed to connect to server" at the top of the page. I then checked the Browser console output, I found it was complaining "noVNC requires a secure context (TLS). Expect crashes!".

What does this mean? What should I do now? Can you help me? 

Thanks a lot in advance!

My server info:

root@dreadfort:/novnc/novnc-noVNC-747603c/utils# uname -a
Linux dreadfort 4.15.0-208-generic #220-Ubuntu SMP Mon Mar 20 14:27:01 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
root@dreadfort:/novnc/novnc-noVNC-747603c/utils# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

The VNC version installed in my server:

root@dreadfort:/novnc/novnc-noVNC-747603c/utils# dpkg -l | grep vnc
ii  libvncclient1:amd64                        0.9.11+dfsg-1ubuntu1.4                    amd64        API to write one's own VNC server - client library
ii  remmina-plugin-vnc:amd64                   1.2.0-rcgit.29+dfsg-1ubuntu1.2            amd64        VNC plugin for Remmina
ii  tigervnc-common                            1.7.0+dfsg-8ubuntu2                       amd64        Virtual network computing; Common software needed by servers
ii  tigervnc-standalone-server                 1.7.0+dfsg-8ubuntu2                       amd64        Standalone virtual network computing server

The logs on the server:

root@dreadfort:/novnc/novnc-noVNC-747603c/utils# ./novnc_proxy --vnc localhost:5901
Using local websockify at /novnc/novnc-noVNC-747603c/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
/novnc/novnc-noVNC-747603c/utils/websockify/websockify/websocket.py:31: UserWarning: no 'numpy' module, HyBi protocol will be slower
  warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
  - Listen on :6080
  - Web server. Web root: /novnc/novnc-noVNC-747603c
  - SSL/TLS support
  - proxying from :6080 to localhost:5901


Navigate to this URL:

    http://dreadfort:6080/vnc.html?host=dreadfort&port=6080

Press Ctrl-C to exit


handler exception: [Errno 104] Connection reset by peer

The browser console log:

Snipaste_2023-04-08_20-53-18.png

Shane Wang

unread,
Apr 8, 2023, 10:00:38 PM4/8/23
to noVNC
My noVNC works well after I removed the "host=" and "port=" from the URL:

=>

I don't know why but it works, indeed.

Reply all
Reply to author
Forward
0 new messages