[GH-ISSUE #281] Instance Statistics Graphs Broken? #225

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

Originally created by @EmbeddedAndroid on GitHub (Apr 14, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/281

Just installed a new instance from HEAD of master. I noticed that the "Instance Statistics" view never displays a graph for any resource, i.e.CPU usage, Bandwidth - Eth0, and Disk I/O - vdz. However in the "Overview" page the graphs function properly.

Tried this on both Chrome and Safari same result. Anyone else having this issue?

Originally created by @EmbeddedAndroid on GitHub (Apr 14, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/281 Just installed a new instance from HEAD of master. I noticed that the "Instance Statistics" view never displays a graph for any resource, i.e.CPU usage, Bandwidth - Eth0, and Disk I/O - vdz. However in the "Overview" page the graphs function properly. Tried this on both Chrome and Safari same result. Anyone else having this issue?
kerem closed this issue 2026-02-27 16:38:29 +03:00
Author
Owner

@retspen commented on GitHub (Apr 15, 2014):

Do you have anyone errors in Chrome Console?

<!-- gh-comment-id:40448096 --> @retspen commented on GitHub (Apr 15, 2014): Do you have anyone errors in Chrome Console?
Author
Owner

@EmbeddedAndroid commented on GitHub (Apr 21, 2014):

It 500's when accessing a link such as:

http://domain.com/info/instusage/1/vm_name/

Here is a snippet from the nginx log:

2014/04/21 08:26:41 [error] 1000#0: *35526 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.106, server: domain.test, request: "GET /info/instusage/1/storage/ HTTP/1.1", upstream: "http://127.0.0.1:8000/info/instusage/1/storage/", host: "virtio.us", referrer: "http://virtio.us/instance/1/storage/"

Here are the errors I'm seeing in the browser:

[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 502 (Bad Gateway) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)

<!-- gh-comment-id:40943595 --> @EmbeddedAndroid commented on GitHub (Apr 21, 2014): It 500's when accessing a link such as: http://domain.com/info/instusage/1/vm_name/ Here is a snippet from the nginx log: 2014/04/21 08:26:41 [error] 1000#0: *35526 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.106, server: domain.test, request: "GET /info/instusage/1/storage/ HTTP/1.1", upstream: "http://127.0.0.1:8000/info/instusage/1/storage/", host: "virtio.us", referrer: "http://virtio.us/instance/1/storage/" Here are the errors I'm seeing in the browser: [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 502 (Bad Gateway) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
Author
Owner

@retspen commented on GitHub (Apr 22, 2014):

Can you enable Debug mode and show trace?

<!-- gh-comment-id:41023219 --> @retspen commented on GitHub (Apr 22, 2014): Can you enable Debug mode and show trace?
Author
Owner

@EmbeddedAndroid commented on GitHub (Apr 22, 2014):

I found the issue after debugging for a bit.

ERROR:django.request:Internal Server Error: /info/instusage/1/storage/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/var/www/webvirtmgr/instance/views.py", line 56, in instusage
blk_usage = conn.disk_usage()
File "/var/www/webvirtmgr/vrtManager/instance.py", line 307, in disk_usage
devices.append([dev_file, dev_bus])
UnboundLocalError: local variable 'dev_file' referenced before assignment

A fix for anyone using rbd devices can be found here: https://github.com/retspen/webvirtmgr/pull/288

<!-- gh-comment-id:41105247 --> @EmbeddedAndroid commented on GitHub (Apr 22, 2014): I found the issue after debugging for a bit. ERROR:django.request:Internal Server Error: /info/instusage/1/storage/ Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response response = callback(request, _callback_args, *_callback_kwargs) File "/var/www/webvirtmgr/instance/views.py", line 56, in instusage blk_usage = conn.disk_usage() File "/var/www/webvirtmgr/vrtManager/instance.py", line 307, in disk_usage devices.append([dev_file, dev_bus]) UnboundLocalError: local variable 'dev_file' referenced before assignment A fix for anyone using rbd devices can be found here: https://github.com/retspen/webvirtmgr/pull/288
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#225
No description provided.