ispCP - Board - Support
[SOLVED] Error when I go to the panel - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: [SOLVED] Error when I go to the panel (/thread-3452.html)



[SOLVED] Error when I go to the panel - kurgans - 06-05-2008 01:28 AM

Hello good afternoon,
I'm trying to access the panel and I get this error

Table '. / Ispcp / login' is marked as crashed and should be repaired

How can I fix it?

thanks


RE: Error when I go to the panel - kurgans - 06-05-2008 01:59 AM

has been solved only with the commands CHECK and REPAIR, everything returns to work well.

Thanks


RE: [SOLVED] Error when I go to the panel - websetcom - 06-12-2008 11:06 PM

kurgans Wrote:Hello,
PROBLEM:
=======
I already informed that there is a problem with the table domain_traffic. When this table does not work, you receive this message

Table '. / Ispcp / login' is marked as crashed and should be repaired

I had a crash once per Week!

SOLUTION:
========
To solve this problem I tried many solutions. Since 1 month I don't have any Crash.

Edit the file ispc-vrl-traff. If you are familiare with UNIX, you have to type as administrator this line

nano /var/www/ispcp/engine/traffic/ispcp-vrl-traff

Search for the line 225 of this PHP script or search for this PHP line:
$sql = "insert into domain_traffic (domain_id, dtraff_time,....

After the line:
($rs, $rdata) = doSQL($sql);

Insert this PATCH:
# PATCH for DOMAIN_TRAFFIC problem: Sleep for 0,1 ms
usleep(100);
# PATCH for DOMAIN_TRAFFIC problem: Sleep for 0,1 ms



EXPLAINATION
===========
I suppose that the PHP script is too fast or the Database is too slow when there is an update of the Traffic Statistics, consequently the table domain_traffic is not any more consisten (Should be repaired).
This line that I suggest is just a delay of 0,1ms, so that the database has the time to update the table.



RE: [SOLVED] Error when I go to the panel - kurgans - 06-12-2008 11:18 PM

Thank you,

Now works very well, but added your lines to prevent future occurrences in the table.