Current time: 12-26-2024, 11:44 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Error when I go to the panel
Author Message
websetcom Offline


Posts: 1
Joined: Jun 2008
Reputation: 0
Post: #3
RE: [SOLVED] Error when I go to the panel
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.
06-12-2008 11:06 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Error when I go to the panel - kurgans - 06-05-2008, 01:59 AM
RE: [SOLVED] Error when I go to the panel - websetcom - 06-12-2008 11:06 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)