mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 16:15:50 +03:00
[GH-ISSUE #170] NoVNC Connect Timeout #132
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ITBlogger on GitHub (Dec 13, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/170
Hi,
After upgrading to v4.x, getting "Connect timeout" whenever trying to connect to a VM console using NoVNC.
Thanks,
Alex
@ITBlogger commented on GitHub (Dec 13, 2013):
Reloading the page does not help me.
@retspen commented on GitHub (Dec 14, 2013):
Open Console on Instaces page? If VM created not in WebVirtMgr need open page VM (instance) for add UUID to DB. And i forget write in instruction about reload service:
$ sudo service webvirtmgr-novnc reload
@goshlanguage commented on GitHub (Dec 16, 2013):
I'm experiencing the same thing and trying to troubleshoot atm. I have tailed the /var/log/libvirt/* , /var/log/libvirt// , /var/log/httpd/* , and the only thing I see is access tier information:
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /console/1/?token=None HTTP/1.1" 200 4148
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/base.css HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/util.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/webutil.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/base64.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/websock.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/des.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/input.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/display.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/jsunzip.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/js/novnc/rfb.js HTTP/1.1" 304 -
10.11.100.157 - - [16/Dec/2013:06:32:56 -0600] "GET /static/img/favicon.ico HTTP/1.1" 304 -
What logs might be better to watch while refreshing this for signs of errors? I'm able to connect to all ports I think are relevant, disabling the firewall doesn't help:
[ryan@centos ~]$ nc -z -v 10.1.1.1 16509
Connection to 10.1.1.1 16509 port [tcp/] succeeded!
[ryan@centos ~]$ nc -z -v 10.1.1.1 5900
Connection to 10.1.1.1 5900 port [tcp/] succeeded!
I get this error and I've only created the images through the web interface.
I just noticed some of my python processes are forking defunct processes, I'm thinking this is probably a dependency issue:
ps faux:
apache 2810 0.0 0.0 195900 10164 ? S 06:21 0:00 python /var/www/webvirtmgr/c
apache 2917 0.0 0.0 0 0 ? Z 06:21 0:00 _ [python] < defunct >
apache 2918 0.0 0.0 0 0 ? Z 06:21 0:00 _ [python] < defunct >
@goshlanguage commented on GitHub (Dec 16, 2013):
This is connected to this issue:
https://github.com/retspen/webvirtmgr/issues/44
When I open VNC on my Centos 6.5 x86_64 system I get this error:
Server disconnected (code: 1006)
When I open this in Windows 7 x86_64 I receive:
Connect timeout
I do notice that my URLs are rendered like this:
http://10.1.1.1/console/1/?token=None
On my working copy of this on another server, it actually renders a token, could you please let me know the packages that this uses to render the tokens?
@retspen commented on GitHub (Dec 16, 2013):
/console/1/?token=None - must be /console/1/?token=89043-432423-342342343. Are you open page with VM (when you open page with instance uuid add to DB) ?
@goshlanguage commented on GitHub (Dec 16, 2013):
I understand that's what it's supposed to be, but that's not what happens when using the web interface. When I create a VM in WebVirtMgr, and open Console from WebVirtMgr, it generates a URL that is tokenless (does not include a token). The token isn't be generated, are there any log files I could look into as to why it's not generating a token?
@retspen commented on GitHub (Dec 16, 2013):
Show your instances data in DB:
$ sqlite3 webvirtmgr.sqlite3
sqltite> select * from instance_instance;
@goshlanguage commented on GitHub (Dec 16, 2013):
[root@server~]# sqlite3 webvirtmgr.sqlite3
SQLite version 3.6.20
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from instance_instance;
Error: no such table: instance_instance
I'm not sure why the table isn't present, here is more:
seq name file
0 main /root/main.sqlite3
1 temp
sqlite> use main;
Error: near "use": syntax error
sqlite> .main;
Error: unknown command or invalid arguments: "main;". Enter ".help" for help
sqlite> .schema main
sqlite> .schema temp
sqlite>
The file for main is an empty flat file:
sqlite> ^C
[root@server~]# stat /root/main.sqlite3
File: `/root/main.sqlite3'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fd00h/64768d Inode: 2883600 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-12-16 09:00:23.267829464 -0600
Modify: 2013-12-16 09:00:23.267829464 -0600
Change: 2013-12-16 09:00:23.267829464 -0600
Could I be missing any packages that sqlite needs? I followed the installation directions here:
https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr
then here:
https://github.com/retspen/webvirtmgr/wiki/Setup-Host-Server
@goshlanguage commented on GitHub (Dec 16, 2013):
I installed python-sqlite2 and then re-ran ./manage.py syncdb:
[root@server~]# yum search sqlite python-sqlite
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: centos.unmeteredvps.net
epel: fedora-epel.mirror.lstn.net
extras: centos.mirrors.tds.net
updates: mirrors.finalasp.com
epel/pkgtags | 740 kB 00:03
============================ N/S Matched: sqlite, python-sqlite =============================
python-sqlite2.x86_64 : DB-API 2.0 interface for SQLite 3.x
Full name and summary matches only, use "search all" for everything.
[1]+ Killed yum search sqlite
[root@server~]# yum install python-sqlite2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: centos.unmeteredvps.net
epel: fedora-epel.mirror.lstn.net
extras: dallas.tx.mirror.xygenhosting.com
updates: dallas.tx.mirror.xygenhosting.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-sqlite2.x86_64 1:2.3.5-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
Package Arch Version Repository Size
Installing:
python-sqlite2 x86_64 1:2.3.5-2.el6 epel 80 k
Transaction Summary
Install 1 Package(s)
Total download size: 80 k
Installed size: 335 k
Is this ok [y/N]: y
Downloading Packages:
python-sqlite2-2.3.5-2.el6.x86_64.rpm | 80 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:python-sqlite2-2.3.5-2.el6.x86_64 1/1
Verifying : 1:python-sqlite2-2.3.5-2.el6.x86_64 1/1
Installed:
python-sqlite2.x86_64 1:2.3.5-2.el6
Complete!
[root@server ~]# cd /var/www/webvirtmgr/
[root@server webvirtmgr]# ./manage.py syncdb
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 6 object(s) from 1 fixture(s)
[root@server webvirtmgr]# sqlite3 webvirtmgr.sqlite3
SQLite version 3.6.20
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
auth_group create_flavor
auth_group_permissions django_content_type
auth_permission django_session
auth_user django_site
auth_user_groups instance_instance
auth_user_user_permissions servers_compute
sqlite> select * instance_instance
...> ;
Error: near "instance_instance": syntax error
sqlite> select * from instance_instance;
1|1|webserver01|041e32c5-0ab9-9edc-8e86-760d1bf31b9d
Now the token is populated, but I am still receiving the 1006 error.
@retspen commented on GitHub (Dec 16, 2013):
$ telnet your_ip 6080
Connected and service webvirtmgr-novnc restarted?
@goshlanguage commented on GitHub (Dec 16, 2013):
I updated /etc/libvirtd/qemu.conf with my actual IP instead of 0.0.0.0, restarted webvirtmgr-novnc, and had to at that point enter the following for iptables:
[root@server webvirtmgr]# iptables -I INPUT -p tcp --dport 6080 -j ACCEPT; iptables -I OUTPUT -p tcp --dport 6080 -j ACCEPT; service iptables save;
All works now, Thank you Retspen for your help