Unify /websockify path used for vnc connections
See original GitHub issueDescription 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 , sunsone will call:
https://example.org:<port>/websockify/?token=jkkg7cdyc7...
To Reproduce
-
Configure sunstone:
:vnc_proxy_port: 29876 :vnc_client_port: 443 :vnc_proxy_support_wss: no
-
Configure nginx reverse-proxy, use config file from https://github.com/OpenNebula/one/issues/878
-
Login to sunstone, and try to connect via vnc
vnc server disconnected (code: 1006)
-
Click , 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:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
noVNC to be fully deprecated in #5422
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: