Page 1 of 1

Partitions report webpage - no pie chart

Posted: Fri Apr 06, 2012 8:09 am
by Davidson1
Came back from a long trip to a borked amahi server (house had a long power failure). Couldn't find anything similar to my errors on the Amahi wiki/forum, so went after the symptoms from other sites. I reinstalled several yum and ruby gem components from commandline (commands itemized below). Sys seems up and running fine again, but the storage reporting page on my server used to have 3 pie charts showing partition space use/avail. Now, all I get is the little box with

Free space: 352.2 GB
Used space: 1.5 TB
Total space: 1.8 TB

... and 3 spinning 'wait' animations where the pie charts for Partition 0, 1 and 2 used to be.

Anyone had dynamic graphic stuff like this die, or have suggestions?

Commands I ran:
yum install rubygems
gem update --system --source http://production.s3.rubygems.org
gem install -v=2.3.4 rails
hdactl restart
yum update rubygem-passenger
gem install pluginfactory
gem install rack
init 6

Re: Partitions report webpage - no pie chart

Posted: Sun Apr 08, 2012 5:59 pm
by bigfoot65
Can't say I have heard of this issue. A power outage often causes issues that are not easily resolved. Many that I have heard about end up reinstalling from scratch.

Not sure if the ruby updates you performed could be causing some of the issues.

Re: Partitions report webpage - no pie chart

Posted: Sun Apr 08, 2012 11:06 pm
by Davidson1
Thanks. I agree that the amahi framework might have residual damage.

Any coders out there know what the underlying code for the piecharts is?

Edit: found disk_graph in /platform/platform/html/app/controllers/setup_controller_rb - requires gruff, so I'll start with those two.

Re: Partitions report webpage - no pie chart

Posted: Tue Apr 10, 2012 9:29 am
by Davidson1
The above steps, plus

# gem install griff
# service httpd restart

... and the charts are being generated properly again. Posted in case anyone else has the problem.

Re: Partitions report webpage - no pie chart

Posted: Tue Apr 10, 2012 10:19 am
by bigfoot65
Glad to hear you got it sorted out. Would you be willing to add this to the wiki? We are trying to keep that as our primary source of documentation.