question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unify /websockify path used for vnc connections

See original GitHub issue

Description In continue to https://github.com/OpenNebula/one/issues/878

Sunstone uses two different addresses for establish websocket connections with novnc.

If you call vnc console from the vm page, sunstone will call:

https://example.org:<port>/?token=jkkg7cdyc7...

Unlike, if you click image, sunsone will call:

https://example.org:<port>/websockify/?token=jkkg7cdyc7...

To Reproduce

  1. Configure sunstone:

    :vnc_proxy_port: 29876
    :vnc_client_port: 443
    :vnc_proxy_support_wss: no
    
  2. Configure nginx reverse-proxy, use config file from https://github.com/OpenNebula/one/issues/878

  3. Login to sunstone, and try to connect via vnc

    vnc server disconnected (code: 1006)
    
  4. Click image, and sunstone will successful establish vnc connection

Expected behavior

All connections will use /websockify path.

Details

  • Affected Component: Sunstone
  • Hypervisor: KVM
  • Version: 5.6.1

Additional context

I found working workaround, just specify missing path in vnc_client_port variable:

:vnc_client_port: 443/websockify

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tinovacommented, Jul 27, 2021

noVNC to be fully deprecated in #5422

1reaction
baby-gnucommented, Sep 18, 2019

Since it’s working, I figure out that I needed to tweak a little the nginx timeouts.

When you keep a fixed image (like a login screen), no packet pass and the noVNC client do not seems to send ping to maintain the connection, so nginx close the connection after a time (60s by default).

I increase that to 15 minutes:

        location /websockify {
                proxy_pass http://websocketproxy;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
		proxy_send_timeout 15m;
		proxy_read_timeout 15m;
        }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote access to your VNC server via modern browsers
Here's how: we will use Apache, VNC and noVNC. VNC or Virtual Network Computing is a way to remotely access another computer using...
Read more >
Websockify & noVNC behind an NGINX Proxy - datawookie
In this post I'll show how we used the following tools to make this ... Using noVNC it's possible to connect to a...
Read more >
Tips - X11 in an Embedded System - noVNC
Step 1 : Upstream IP + port to the websocketproxy server · Step 2 : A path to /websockify to proxy the websocket...
Read more >
How to use noVNC to connect to a VNC server through browser
I just merge a fix from websockify to the noVNC repo. This should fix a bug with when running websockify with python2.4.
Read more >
SLES 12 SP4 | Administration Guide | Remote Access with VNC
1 Connecting Using the vncviewer CLI #. To start your VNC viewer and initiate a session with the server, use the command: tux...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found