[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Error with disk reporting in web interface



> I look into diskUsage.cgi
> 
> I replace on the line 204 :
> 
>     my $sitePercent = ($siteTotal) ?
>      sprintf $fmt, $siteUsed / $siteTotal * 100 : '?';
> 
> By :
> 
>     my $sitePercent = ($siteTotal);
>       #sprintf $fmt, $siteUsed / $siteTotal * 100 : '?';
> 
> This didn't solve totaly the problem, but you don't have the internal server
> error and you can
> entierly access to the diskusage by user (this part works fine)....

> > Hi all
> >
> > I have an interesting problem for you all.
> >
> > When you click on "Active monitor" then on disk I recieve an error
> >
> > "The server encountered an internal error or
> >                     misconfiguration and was unable to complete your
> >                     request. "
> >
> > I took a look in the /var/log/httpd/adm_error.log and it says
> >
> > Illegal division by zero at
> > /usr/admserv/cgi-bin/.cobalt/diskUsage/diskUsage.cgi line 204.
> > [Thu Nov  8 22:13:35 2001] [error] [client 202.7.89.171] Premature end
> > of script headers: /usr/admserv/cgi-bin/.cobalt/diskUsage/diskUsage.cgi
> >
> > Has anyone come accross this one before???


Hi this is interesting that there is an actual division on that line this error can pop up anywhere i am guessing that it is actually the header that is not outputting correctly that is jiggering this i dont think that  $siteTotal is zero maybe its not getting that value? anyway i think it could be a coincidence that it is giving you this line as an error perl gives strange error messages sometimes

simple fix is get another copy for your raq version from somewhere rename old one as .cgi.bak or something course it would be interesting to find out what caused this

has the cgi been updated by some upgrade?

you could try running through the command line and it might give a different or more useful error.

try from that dir

perl -c diskUsage.cgi
# just to check context

then
perl -w diskUsage.cgi
## this will run it without errors and may give a different error message

anyway my 2c worth oh as there is another Gerald (fine name) on this list im going back to my nick wampy

b w wampy



> >