[GH-ISSUE #429] noVNC tries to connect to a port on top of a port #322

Closed
opened 2026-02-27 16:38:52 +03:00 by kerem · 5 comments
Owner

Originally created by @aprt5pr on GitHub (Sep 15, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/429

When using SSH connection type with webvirtmgr, noVNC tries to connect to hostname:ssh-port:vnc-port:

-bash-4.1$ python .../webvirtmgr/console/webvirtmgr-novnc
WARNING:root:No local_settings file found.
WebSocket server settings:
    - Listen on 0.0.0.0:6080
    - Flash security policy server
    - SSL/TLS support
    - proxying from 0.0.0.0:6080 to ignore:ignore

1: 192.168.x.x: SSL/TLS (wss://) WebSocket connection
1: 192.168.x.x: Version hybi-13, base64: 'True'
1: connecting to: foo.bar.tld:xxxx:59xx
1: handler exception: [Errno -2] Name or service not known

As a workaround I've modified .../webvirtmgr/console/webvirtmgr-novnc on line 74 to be:

tsock = socket_factory("hostname-without-ssh-port", port, connect=True)

After restarting supervisor(d) or webvirtmgr-novnc, noVNC then connects normally.

Originally created by @aprt5pr on GitHub (Sep 15, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/429 When using SSH connection type with webvirtmgr, noVNC tries to connect to _hostname:ssh-port:vnc-port_: ``` -bash-4.1$ python .../webvirtmgr/console/webvirtmgr-novnc WARNING:root:No local_settings file found. WebSocket server settings: - Listen on 0.0.0.0:6080 - Flash security policy server - SSL/TLS support - proxying from 0.0.0.0:6080 to ignore:ignore 1: 192.168.x.x: SSL/TLS (wss://) WebSocket connection 1: 192.168.x.x: Version hybi-13, base64: 'True' 1: connecting to: foo.bar.tld:xxxx:59xx 1: handler exception: [Errno -2] Name or service not known ``` As a workaround I've modified .../webvirtmgr/console/webvirtmgr-novnc on line 74 to be: ``` tsock = socket_factory("hostname-without-ssh-port", port, connect=True) ``` After restarting supervisor(d) or webvirtmgr-novnc, noVNC then connects normally.
kerem closed this issue 2026-02-27 16:38:52 +03:00
Author
Owner

@generalmanager commented on GitHub (Sep 19, 2014):

Can confirm & your fix works for me too. Thanks!

<!-- gh-comment-id:56213928 --> @generalmanager commented on GitHub (Sep 19, 2014): Can confirm & your fix works for me too. Thanks!
Author
Owner

@vide commented on GitHub (Oct 23, 2014):

Mmh, I had the same problem, now with this fix I get:

WebSocket server settings:
   - Listen on 0.0.0.0:6080
   - Flash security policy server
   - SSL/TLS support
   - proxying from 0.0.0.0:6080 to ignore:ignore

   1: 192.168.10.94: Plain non-SSL (ws://) WebSocket connection
   1: 192.168.10.94: Version hybi-13, base64: 'False'
   1: handler exception: 'NoneType' object has no attribute 'find'
<!-- gh-comment-id:60220229 --> @vide commented on GitHub (Oct 23, 2014): Mmh, I had the same problem, now with this fix I get: ``` WebSocket server settings: - Listen on 0.0.0.0:6080 - Flash security policy server - SSL/TLS support - proxying from 0.0.0.0:6080 to ignore:ignore 1: 192.168.10.94: Plain non-SSL (ws://) WebSocket connection 1: 192.168.10.94: Version hybi-13, base64: 'False' 1: handler exception: 'NoneType' object has no attribute 'find' ```
Author
Owner

@retspen commented on GitHub (Oct 23, 2014):

Do you restart webvirtmgr-novnc after update?

<!-- gh-comment-id:60220300 --> @retspen commented on GitHub (Oct 23, 2014): Do you restart webvirtmgr-novnc after update?
Author
Owner

@vide commented on GitHub (Oct 23, 2014):

Yes, it's a fresh start (from command line, no init script) after restarting supervisor

<!-- gh-comment-id:60220417 --> @vide commented on GitHub (Oct 23, 2014): Yes, it's a fresh start (from command line, no init script) after restarting supervisor
Author
Owner

@vide commented on GitHub (Oct 23, 2014):

Nevermind, it was a secret key problem (I had a parallel installation in another path with pip and it was trying to read that secret key). Sorry for the noise and great software BTW!

<!-- gh-comment-id:60222329 --> @vide commented on GitHub (Oct 23, 2014): Nevermind, it was a secret key problem (I had a parallel installation in another path with pip and it was trying to read that secret key). Sorry for the noise and great software BTW!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#322
No description provided.