Ticket #3806 (closed defect: fixed)
Disk usage graph: calculated a negative diameter for the pie chart
| Reported by: | alexey_z@… | Owned by: | jamor@… |
|---|---|---|---|
| Milestone: | 2.2.X | Component: | base |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by jamor@…) (diff)
DiskUsage? module not working for this configuration.
# fdisk -l /dev/sda:
Device Boot Start End Blocks Id System
/dev/sda1 2048 976773167 488385560 fd Linux raid autodetect
Disk /dev/sdc: 500.1 GB
Device Boot Start End Blocks Id System
/dev/sdc1 2048 976773167 488385560 fd Linux raid autodetect
/dev/sdb:
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 206847 102400 83 Linux /dev/sdb2 206848 19738623 9765888 8e Linux LVM
# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/SYSTEM-root
7,4G 1,9G 5,1G 27% /
none 493M 248K 493M 1% /dev none 497M 0 497M 0% /dev/shm none 497M 288K 497M 1% /var/run none 497M 0 497M 0% /var/lock none 497M 0 497M 0% /lib/init/rw none 7,4G 1,9G 5,1G 27% /var/lib/ureadahead/debugfs /dev/sdb1 97M 22M 71M 24% /boot
# lvscan
ACTIVE '/dev/SYSTEM/swap' [976,00 MiB] inherit ACTIVE '/dev/SYSTEM/root' [7,45 GiB] inherit
Error
I have calculated a negative diameter for the pie chart, maybe your labels are too long or the picture is too small.
Trace
I have calculated a negative diameter for the pie chart, maybe your labels are too long or the picture is too small. at /usr/share/perl5/EBox/Report/DiskUsage.pm line 122.
Attachments
Change History
Changed 16 months ago by anonymous
-
attachment
zentyal.log
added
comment:1 Changed 16 months ago by jamor@…
- Status changed from new to accepted
- Description modified (diff)
- Summary changed from Bug report from Zentyal Server to Disk usage graph: calculated a negative diameter for the pie chart
comment:2 Changed 16 months ago by jamor@…
Hello Alexey Z and thanks for your detailed report,
unfortunately I need more data to reproduce and fix this problem. I had write a script for gather this data and attached it to the ticket. It is 'DiskUsageDump'. Please, download it to your system, execute it and report the results.
To run it, use this command:
sudo perl DiskUsageDump
Regards,
Javier
comment:3 Changed 16 months ago by alexey_z@…
Done, see atached file. If you need more data - just ask.
comment:4 Changed 16 months ago by jamor@…
- Status changed from accepted to closed
- Resolution set to fixed
Hello Alexey Z,
thanks a lot for the data, I have made some changes in [d6f9f1fd45f7699] which I think will avoid this errors.
However we plan to change the sued graph library to have better and more reliable graph generation.
If you want to hotfix your server:
1) Download the new diskUsage.pm file fromhttp://git.zentyal.org/zentyal.git/blob/d6f9f1fd45f7699f84da65fba075a90c3624bcbb:/main/core/src/EBox/Report/DiskUsage.pm
2) Use it to replace /usr/share/perl5/EBox/Report/DiskUsage.pm
3) Execute 'sudo /etc/init.d/zentyal apache restart'
Regards,
Javier
zentyal.log