[GH-ISSUE #192] VM Page could not show Usage Statistics #148

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

Originally created by @Paul-LKW on GitHub (Jan 13, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/192

As the following screen I could not see the Statistics for every VM, but the overview page could show the statistics graph.

capture

Would it need any additional configuration ?

Originally created by @Paul-LKW on GitHub (Jan 13, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/192 As the following screen I could not see the Statistics for every VM, but the overview page could show the statistics graph. ![capture](https://f.cloud.github.com/assets/5645956/1899099/ac79bf12-7c33-11e3-8d22-681e6f3037c5.PNG) Would it need any additional configuration ?
kerem closed this issue 2026-02-27 16:38:09 +03:00
Author
Owner

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

Update project and restart apache

<!-- gh-comment-id:32154381 --> @retspen commented on GitHub (Jan 13, 2014): Update project and restart apache
Author
Owner

@Paul-LKW commented on GitHub (Jan 13, 2014):

Hi retspen:
I just perform "git pull" inside the webvirtmgr directory and restarted apache, the CPU information show issue fixed but for this Usage Statistics is not, it is still could not show.

<!-- gh-comment-id:32155101 --> @Paul-LKW commented on GitHub (Jan 13, 2014): Hi retspen: I just perform "git pull" inside the webvirtmgr directory and restarted apache, the CPU information show issue fixed but for this Usage Statistics is not, it is still could not show.
Author
Owner

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

What browser?

<!-- gh-comment-id:32155427 --> @retspen commented on GitHub (Jan 13, 2014): What browser?
Author
Owner

@Paul-LKW commented on GitHub (Jan 13, 2014):

Tried Firefox and Chrome also could not show.

<!-- gh-comment-id:32155503 --> @Paul-LKW commented on GitHub (Jan 13, 2014): Tried Firefox and Chrome also could not show.
Author
Owner

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

If the some errors in Conlose Chrome?

<!-- gh-comment-id:32177147 --> @retspen commented on GitHub (Jan 13, 2014): If the some errors in Conlose Chrome?
Author
Owner

@Paul-LKW commented on GitHub (Jan 13, 2014):

I checked again and could not find any error message, would I need enable the Debug mode to see does any message ?

<!-- gh-comment-id:32179270 --> @Paul-LKW commented on GitHub (Jan 13, 2014): I checked again and could not find any error message, would I need enable the Debug mode to see does any message ?
Author
Owner

@Paul-LKW commented on GitHub (Jan 13, 2014):

I just enabled the Debug mode and still no any error message.

<!-- gh-comment-id:32179613 --> @Paul-LKW commented on GitHub (Jan 13, 2014): I just enabled the Debug mode and still no any error message.
Author
Owner

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

Check cpu info. URL: http://x.x.x.x/info/inst/cpu/host_id/vm_name/ - where host_id your id and vm_name your vm name.

<!-- gh-comment-id:32186853 --> @retspen commented on GitHub (Jan 13, 2014): Check cpu info. URL: http://x.x.x.x/info/inst/cpu/host_id/vm_name/ - where host_id your id and vm_name your vm name.
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

Hi retspen, Do you mean below details;
{"labels": ["", "", "", "", "", "", "", "", "", ""], "datasets": [{"pointColor": "rgba(241,72,70,1)", "strokeColor": "rgba(241,72,70,1)", "data": [0, 0], "fillColor": "rgba(241,72,70,0.5)", "pointStrokeColor": "#fff"}]}

<!-- gh-comment-id:32239644 --> @Paul-LKW commented on GitHub (Jan 14, 2014): Hi retspen, Do you mean below details; {"labels": ["", "", "", "", "", "", "", "", "", ""], "datasets": [{"pointColor": "rgba(241,72,70,1)", "strokeColor": "rgba(241,72,70,1)", "data": [0, 0], "fillColor": "rgba(241,72,70,0.5)", "pointStrokeColor": "#fff"}]}
Author
Owner

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

Host_id - this is number. Add fist - 1 etc. On open page overview, graphics not showing too?

<!-- gh-comment-id:32240117 --> @retspen commented on GitHub (Jan 14, 2014): Host_id - this is number. Add fist - 1 etc. On open page overview, graphics not showing too?
Author
Owner

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

Can you show html on page instance ?

<!-- gh-comment-id:32241927 --> @retspen commented on GitHub (Jan 14, 2014): Can you show html on page instance ?
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

Do you mean to show HTML code ?
But I just find in the Tools > Developer Tools from Chrome it is keeping to show
GET http://X.X.X.X/info/inst/disk/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706
GET http://X.X.X.X/info/inst/disk/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706
GET http://X.X.X.X/info/inst/net/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706
GET http://X.X.X.X/info/inst/cpu/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706
GET http://X.X.X.X/info/inst/cpu/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706
GET http://X.X.X.X/info/inst/disk/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706
GET http://X.X.X.X/info/inst/net/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706

<!-- gh-comment-id:32246792 --> @Paul-LKW commented on GitHub (Jan 14, 2014): Do you mean to show HTML code ? But I just find in the Tools > Developer Tools from Chrome it is keeping to show GET http://X.X.X.X/info/inst/disk/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706 GET http://X.X.X.X/info/inst/disk/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706 GET http://X.X.X.X/info/inst/net/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706 GET http://X.X.X.X/info/inst/cpu/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706 GET http://X.X.X.X/info/inst/cpu/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706 GET http://X.X.X.X/info/inst/disk/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706 GET http://X.X.X.X/info/inst/net/3/Testing/ 500 (Internal Server Error) jquery-1.10.2.js:8706
Author
Owner

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

Stop apache service and run developer mode with debug. Change in file settings.py:
DEBUG=False to DEBUG=True

and run django

$ ./manage.py runserver 0:8000

then open url http://x.x.x.x:8000/ and open developer tools in chrome

<!-- gh-comment-id:32247365 --> @retspen commented on GitHub (Jan 14, 2014): Stop apache service and run developer mode with debug. Change in file settings.py: DEBUG=False to DEBUG=True and run django $ ./manage.py runserver 0:8000 then open url http://x.x.x.x:8000/ and open developer tools in chrome
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

This mode could show the VM stat graph without any problem and no former error.
What happened ?

<!-- gh-comment-id:32248208 --> @Paul-LKW commented on GitHub (Jan 14, 2014): This mode could show the VM stat graph without any problem and no former error. What happened ?
Author
Owner

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

Revert all changes and try

<!-- gh-comment-id:32248263 --> @retspen commented on GitHub (Jan 14, 2014): Revert all changes and try
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

All error occur again !!!
Will it my apache has problem ?

<!-- gh-comment-id:32248365 --> @Paul-LKW commented on GitHub (Jan 14, 2014): All error occur again !!! Will it my apache has problem ?
Author
Owner

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

Change in file settings.py:
DEBUG=False to DEBUG=True

restart service apache and open url:

http://X.X.X.X/info/inst/disk/3/Testing

have data or errors?

<!-- gh-comment-id:32248495 --> @retspen commented on GitHub (Jan 14, 2014): Change in file settings.py: DEBUG=False to DEBUG=True restart service apache and open url: http://X.X.X.X/info/inst/disk/3/Testing have data or errors?
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

Continue

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@xxxxxxx.xxx and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

<!-- gh-comment-id:32248776 --> @Paul-LKW commented on GitHub (Jan 14, 2014): Continue The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, support@xxxxxxx.xxx and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
Author
Owner

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

Show apache error log

<!-- gh-comment-id:32248858 --> @retspen commented on GitHub (Jan 14, 2014): Show apache error log
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

[Tue Jan 14 17:09:57 2014] [notice] child pid 6951 exit signal Segmentation fault (11)
[Tue Jan 14 17:09:58 2014] [notice] child pid 6978 exit signal Segmentation fault (11)
[Tue Jan 14 17:09:59 2014] [notice] child pid 6996 exit signal Segmentation fault (11)
[Tue Jan 14 17:10:00 2014] [notice] child pid 7014 exit signal Segmentation fault (11)
[Tue Jan 14 17:10:09 2014] [notice] child pid 7032 exit signal Segmentation fault (11)

<!-- gh-comment-id:32248913 --> @Paul-LKW commented on GitHub (Jan 14, 2014): [Tue Jan 14 17:09:57 2014] [notice] child pid 6951 exit signal Segmentation fault (11) [Tue Jan 14 17:09:58 2014] [notice] child pid 6978 exit signal Segmentation fault (11) [Tue Jan 14 17:09:59 2014] [notice] child pid 6996 exit signal Segmentation fault (11) [Tue Jan 14 17:10:00 2014] [notice] child pid 7014 exit signal Segmentation fault (11) [Tue Jan 14 17:10:09 2014] [notice] child pid 7032 exit signal Segmentation fault (11)
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

But in the webvirtmgr-error_log;

[Tue Jan 14 17:10:00 2014] [error] /var/www/webvirtmgr/hostdetail/views.py:6: DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
[Tue Jan 14 17:10:00 2014] [error] from django.utils import simplejson
[Tue Jan 14 11:10:09 2014] [error] /var/www/webvirtmgr/instance/views.py:8: DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
[Tue Jan 14 11:10:09 2014] [error] from django.utils import simplejson
[Tue Jan 14 17:10:09 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py, referer: http://X.X.X.X:8080/host/3/
[Tue Jan 14 17:10:09 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py

<!-- gh-comment-id:32248972 --> @Paul-LKW commented on GitHub (Jan 14, 2014): But in the webvirtmgr-error_log; [Tue Jan 14 17:10:00 2014] [error] /var/www/webvirtmgr/hostdetail/views.py:6: DeprecationWarning: django.utils.simplejson is deprecated; use json instead. [Tue Jan 14 17:10:00 2014] [error] from django.utils import simplejson [Tue Jan 14 11:10:09 2014] [error] /var/www/webvirtmgr/instance/views.py:8: DeprecationWarning: django.utils.simplejson is deprecated; use json instead. [Tue Jan 14 11:10:09 2014] [error] from django.utils import simplejson [Tue Jan 14 17:10:09 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py, referer: http://X.X.X.X:8080/host/3/ [Tue Jan 14 17:10:09 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py
Author
Owner

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

What ver django you use ???

<!-- gh-comment-id:32249303 --> @retspen commented on GitHub (Jan 14, 2014): What ver django you use ???
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

version 1.6.1

<!-- gh-comment-id:32249437 --> @Paul-LKW commented on GitHub (Jan 14, 2014): version 1.6.1
Author
Owner

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

Oh men :-) Need django 1.5.5

<!-- gh-comment-id:32249511 --> @retspen commented on GitHub (Jan 14, 2014): Oh men :-) Need django 1.5.5
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

Oh, I just think use the new version should be more stable.

<!-- gh-comment-id:32249596 --> @Paul-LKW commented on GitHub (Jan 14, 2014): Oh, I just think use the new version should be more stable.
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

Let me roll back to 1.5.5 to report work or not.

<!-- gh-comment-id:32249672 --> @Paul-LKW commented on GitHub (Jan 14, 2014): Let me roll back to 1.5.5 to report work or not.
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

Just roll back to django 1.5.5 but issue still same.

<!-- gh-comment-id:32250176 --> @Paul-LKW commented on GitHub (Jan 14, 2014): Just roll back to django 1.5.5 but issue still same.
Author
Owner

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

and error same too in webvirtmgr-error_log?

<!-- gh-comment-id:32250237 --> @retspen commented on GitHub (Jan 14, 2014): and error same too in webvirtmgr-error_log?
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

Yes.
[Tue Jan 14 17:39:22 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py, referer: http://X.X.X.X/instance/3/Windows08_R2/
[Tue Jan 14 17:39:22 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py, referer: http://X.X.X.X/instance/3/Windows08_R2/
[Tue Jan 14 17:39:22 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py, referer: http://X.X.X.X/instance/3/Windows08_R2/

<!-- gh-comment-id:32250490 --> @Paul-LKW commented on GitHub (Jan 14, 2014): Yes. [Tue Jan 14 17:39:22 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py, referer: http://X.X.X.X/instance/3/Windows08_R2/ [Tue Jan 14 17:39:22 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py, referer: http://X.X.X.X/instance/3/Windows08_R2/ [Tue Jan 14 17:39:22 2014] [error] [client X.X.X.X] Premature end of script headers: wsgi.py, referer: http://X.X.X.X/instance/3/Windows08_R2/
Author
Owner

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

CentOS 6.5 ?

<!-- gh-comment-id:32250548 --> @retspen commented on GitHub (Jan 14, 2014): CentOS 6.5 ?
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

Yes.

<!-- gh-comment-id:32250585 --> @Paul-LKW commented on GitHub (Jan 14, 2014): Yes.
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

In fact the Control Panel will sometime show Internal Server Error but just when I press reload (F5) it will return normal.

<!-- gh-comment-id:32250664 --> @Paul-LKW commented on GitHub (Jan 14, 2014): In fact the Control Panel will sometime show Internal Server Error but just when I press reload (F5) it will return normal.
Author
Owner

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

Remove apache and try gunicorn and nginx. https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr#5-gunicorn-and-supervisor-only-for-geeks

<!-- gh-comment-id:32252859 --> @retspen commented on GitHub (Jan 14, 2014): Remove apache and try gunicorn and nginx. https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr#5-gunicorn-and-supervisor-only-for-geeks
Author
Owner

@Paul-LKW commented on GitHub (Jan 14, 2014):

OK, Let me try this later at home.
Thanks again for your effort for this Control Panel, always keeping update OS and software version is not easy.

<!-- gh-comment-id:32254336 --> @Paul-LKW commented on GitHub (Jan 14, 2014): OK, Let me try this later at home. Thanks again for your effort for this Control Panel, always keeping update OS and software version is not easy.
Author
Owner

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

maybe reference to #212 #213

<!-- gh-comment-id:33615596 --> @bsavelev commented on GitHub (Jan 29, 2014): maybe reference to #212 #213
Author
Owner

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

Move to webvirtmgr Nignx + supervisor + gunicorn

<!-- gh-comment-id:33687391 --> @retspen commented on GitHub (Jan 30, 2014): Move to webvirtmgr Nignx + supervisor + gunicorn
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#148
No description provided.