[GH-ISSUE #667] ubuntu16.04 no novnc service #505

Open
opened 2026-02-27 16:39:29 +03:00 by kerem · 0 comments
Owner

Originally created by @avyou on GitHub (Jul 11, 2018).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/667

hi , I connect vm console has error:
Failed to connect to server (code: 1006)
and:

Plain non-SSL (ws://) WebSocket connection
Version hybi-13, base64: 'False'
localhost:5900

ubuntu 16.04 system don't has this service:

$ sudo service novnc stop
$ sudo insserv -r novnc
$ sudo vi /etc/insserv/overrides/novnc

my supervisor configure:

[program:webvirtmgr]
command=/home/.virtualenv/kvm/bin/python /data/webvirtmgr/manage.py run_gunicorn -c /data/webvirtmgr/conf/gunicorn.conf.py
[program:webvirtmgr]
command=/home/.virtualenv/kvm/bin/python /data/webvirtmgr/manage.py run_gunicorn -c /data/webvirtmgr/conf/gunicorn.conf.py
directory=/data/webvirtmgr
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/webvirtmgr.log
redirect_stderr=true
user=www-data

[program:webvirtmgr-console]
command=/home/.virtualenv/kvm/bin/python  /data/webvirtmgr/console/webvirtmgr-console
directory=/data/webvirtmgr
:q
tail -f /var/log/supervisor/webvirtmgr-console.log
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/webvirtmgr-console.log
redirect_stderr=true
user=www-data

netstat -nltup

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      16002/nginx.conf
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      2658/dnsmasq    
tcp        0      0 0.0.0.0:6080            0.0.0.0:*               LISTEN      8989/python     
tcp        0      0 127.0.0.1:8321          0.0.0.0:*               LISTEN      8990/python     
tcp        0      0 0.0.0.0:10020           0.0.0.0:*               LISTEN      2111/sshd       
tcp        0      0 127.0.0.1:5900          0.0.0.0:*               LISTEN      7338/qemu-system-x8
tcp6       0      0 :::10020                :::*                    LISTEN      2111/sshd       
udp        0      0 192.168.122.1:53        0.0.0.0:*                           2658/dnsmasq    
udp        0      0 0.0.0.0:67              0.0.0.0:*                           2658/dnsmasq 

How to install novnc on ubuntu16 system?

Originally created by @avyou on GitHub (Jul 11, 2018). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/667 hi , I connect vm console has error: `Failed to connect to server (code: 1006)` and: ``` Plain non-SSL (ws://) WebSocket connection Version hybi-13, base64: 'False' localhost:5900 ``` ubuntu 16.04 system don't has this service: ``` $ sudo service novnc stop $ sudo insserv -r novnc $ sudo vi /etc/insserv/overrides/novnc ``` my supervisor configure: ``` [program:webvirtmgr] command=/home/.virtualenv/kvm/bin/python /data/webvirtmgr/manage.py run_gunicorn -c /data/webvirtmgr/conf/gunicorn.conf.py [program:webvirtmgr] command=/home/.virtualenv/kvm/bin/python /data/webvirtmgr/manage.py run_gunicorn -c /data/webvirtmgr/conf/gunicorn.conf.py directory=/data/webvirtmgr autostart=true autorestart=true stdout_logfile=/var/log/supervisor/webvirtmgr.log redirect_stderr=true user=www-data [program:webvirtmgr-console] command=/home/.virtualenv/kvm/bin/python /data/webvirtmgr/console/webvirtmgr-console directory=/data/webvirtmgr :q tail -f /var/log/supervisor/webvirtmgr-console.log autostart=true autorestart=true stdout_logfile=/var/log/supervisor/webvirtmgr-console.log redirect_stderr=true user=www-data ``` netstat -nltup ``` Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 16002/nginx.conf tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2658/dnsmasq tcp 0 0 0.0.0.0:6080 0.0.0.0:* LISTEN 8989/python tcp 0 0 127.0.0.1:8321 0.0.0.0:* LISTEN 8990/python tcp 0 0 0.0.0.0:10020 0.0.0.0:* LISTEN 2111/sshd tcp 0 0 127.0.0.1:5900 0.0.0.0:* LISTEN 7338/qemu-system-x8 tcp6 0 0 :::10020 :::* LISTEN 2111/sshd udp 0 0 192.168.122.1:53 0.0.0.0:* 2658/dnsmasq udp 0 0 0.0.0.0:67 0.0.0.0:* 2658/dnsmasq ``` How to install novnc on ubuntu16 system?
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#505
No description provided.