[GH-ISSUE #215] VNC broken after last update #167

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

Originally created by @bsavelev on GitHub (Jan 30, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/215

VNC console doesn't work after last update.
browser said:
Server disconnected (code: 1006)

and I didn't see any connection requests in webvirtmgr-novnc output

Originally created by @bsavelev on GitHub (Jan 30, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/215 VNC console doesn't work after last update. browser said: Server disconnected (code: 1006) and I didn't see any connection requests in webvirtmgr-novnc output
kerem closed this issue 2026-02-27 16:38:14 +03:00
Author
Owner

@retspen commented on GitHub (Jan 30, 2014):

restart service after update?

<!-- gh-comment-id:33663433 --> @retspen commented on GitHub (Jan 30, 2014): restart service after update?
Author
Owner

@bsavelev commented on GitHub (Jan 30, 2014):

yes

<!-- gh-comment-id:33663501 --> @bsavelev commented on GitHub (Jan 30, 2014): yes
Author
Owner

@retspen commented on GitHub (Jan 30, 2014):

stop service webvirtmgr-novnc and then run /var/www/webvirtmgr/webvirtmgr-novnc

$ telnet x.x.x.x 6080

what show ?

<!-- gh-comment-id:33667950 --> @retspen commented on GitHub (Jan 30, 2014): stop service webvirtmgr-novnc and then run /var/www/webvirtmgr/webvirtmgr-novnc $ telnet x.x.x.x 6080 what show ?
Author
Owner

@bsavelev commented on GitHub (Jan 30, 2014):

disclaimer:
I change port to 8443 in
console/webvirtmgr-novnc
console/views.py
if it make sense

novnc output:

./webvirtmgr-novnc 
WebSocket server settings:
  - Listen on 0.0.0.0:8443
  - Flash security policy server
  - SSL/TLS support
  - proxying from 0.0.0.0:8443 to ignore:ignore

  1: 127.0.0.1: new handler Process
  1: 127.0.0.1: ignoring socket not ready
<!-- gh-comment-id:33670456 --> @bsavelev commented on GitHub (Jan 30, 2014): disclaimer: I change port to 8443 in console/webvirtmgr-novnc console/views.py if it make sense novnc output: ``` ./webvirtmgr-novnc WebSocket server settings: - Listen on 0.0.0.0:8443 - Flash security policy server - SSL/TLS support - proxying from 0.0.0.0:8443 to ignore:ignore 1: 127.0.0.1: new handler Process 1: 127.0.0.1: ignoring socket not ready ```
Author
Owner

@bsavelev commented on GitHub (Jan 30, 2014):

from remote ip also all fine:

  1: 195.88.xxx.xxx: new handler Process
  1: 195.88.xxx.xxx: ignoring empty handshake
<!-- gh-comment-id:33670584 --> @bsavelev commented on GitHub (Jan 30, 2014): from remote ip also all fine: ``` 1: 195.88.xxx.xxx: new handler Process 1: 195.88.xxx.xxx: ignoring empty handshake ```
Author
Owner

@retspen commented on GitHub (Jan 30, 2014):

Do you use virtualenv or install through pip global ?

<!-- gh-comment-id:33672073 --> @retspen commented on GitHub (Jan 30, 2014): Do you use virtualenv or install through pip global ?
Author
Owner

@bsavelev commented on GitHub (Jan 30, 2014):

all packages installed via apt except Django -- it was install with pip global

<!-- gh-comment-id:33672312 --> @bsavelev commented on GitHub (Jan 30, 2014): all packages installed via apt except Django -- it was install with pip global
Author
Owner

@retspen commented on GitHub (Jan 30, 2014):

add in file webvirtmgr-novnc after line:

from vrtManager.instance import wvmInstance

insert line

instance = Instance.objects.get(uuid=token)
print instance

and run webvirtmgr-novnc show your output

<!-- gh-comment-id:33673228 --> @retspen commented on GitHub (Jan 30, 2014): add in file webvirtmgr-novnc after line: <code>from vrtManager.instance import wvmInstance</code> insert line <code>instance = Instance.objects.get(uuid=token) print instance</code> and run webvirtmgr-novnc show your output
Author
Owner

@bsavelev commented on GitHub (Jan 30, 2014):

I look into console page html and see that host var is not correct. It 127.0.0.1 -- proxy address
Probably it is my configuration error...

<!-- gh-comment-id:33674149 --> @bsavelev commented on GitHub (Jan 30, 2014): I look into console page html and see that host var is not correct. It 127.0.0.1 -- proxy address Probably it is my configuration error...
Author
Owner

@bsavelev commented on GitHub (Jan 30, 2014):

proxy -- means proxy for gunicorn (apache/nginx)

<!-- gh-comment-id:33674354 --> @bsavelev commented on GitHub (Jan 30, 2014): proxy -- means proxy for gunicorn (apache/nginx)
Author
Owner

@retspen commented on GitHub (Jan 30, 2014):

No, need console output:

python /var/www/webvirtmgr/console/webvirtmgr-novnc

<!-- gh-comment-id:33675206 --> @retspen commented on GitHub (Jan 30, 2014): No, need console output: python /var/www/webvirtmgr/console/webvirtmgr-novnc
Author
Owner

@bsavelev commented on GitHub (Jan 30, 2014):

Yes, it configuration error from me. I use apache2 with mod_proxy instead nginx.
and request.get_host() return not valid info in django
I add to VirtualHost

ProxyPreserveHost On

and all work fine. sorry...(

<!-- gh-comment-id:33676580 --> @bsavelev commented on GitHub (Jan 30, 2014): Yes, it configuration error from me. I use apache2 with mod_proxy instead nginx. and request.get_host() return not valid info in django I add to VirtualHost ``` ProxyPreserveHost On ``` and all work fine. sorry...(
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#167
No description provided.