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

Re: [cobalt-users] RAQ3 Server CRASHED



Looks like the variable $siteTotal is 0 in line 204

I would open the file using your favorite editor on the server and comment out lines 204 and 205
and then set $sitePercent to 1 until you get a chance to either debug the script or get Cobalt to fix the problem.

See changes below, of course you do this at your own risk. If it gets you back up and running you can donate $25 to the Local devision of the Red Cross or other non-political charity in the name of Anonymous.

Good luck!
Roger

======= Possible temporary workaround ======
my $siteObj = swatch_get("quota", "all");
my $siteTotal = sprintf $fmt, $siteObj->get("total") - $sysTotal;
my $siteFree = sprintf $fmt, $siteObj->get("free") - $sysFree;
my $siteUsed = sprintf $fmt, $siteObj->get("used") - $sysUsed;
# my $sitePercent = ($siteTotal) ?
# sprintf $fmt, $siteUsed / $siteTotal * 100 : '?';
my $sitePercent = 1



*********** REPLY SEPARATOR  ***********

On 6/8/2000 at 6:48 PM Dale McIsaac wrote:

Our web, mail and dns server on our RAQ3 have crashed. Our server still has
a network connection and we are able to Telnet. The following is an extract
from the adm_error log:

Illegal division by zero at
/usr/admserv/cgi-bin/.cobalt/diskUsage/diskUsage.cgi
 line 204.
[Mon Jun  5 13:33:42 2000] [error] [client 210.55.27.111] Premature end of
scrip
t headers: /usr/admserv/cgi-bin/.cobalt/diskUsage/diskUsage.cgi

Would this be preventing the restart of the server. We cannot reboot from
the prompt.

Any help or suggestions would be greatly appreciated.




_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users