Page 1 of 1

GCount - unwanted reset

Posted: Tue Jan 17, 2012 8:59 am
by zeebulon
Hi there,

first of all: great site & great scripts!!

So far I only use GCount (graphcount.php).
Installation and handling is easy and well documented, so thanks again for this. Counter runs without problems.

However, from time to time (once twice a day, then again only 2 times a month) the counter resets to 0 and starts all over again. The chmod of the [page].txt in /logs/ directory is set correctly to 777; there are 7 numbers configured. Apart of the sudden reset, there are no errors or other problems.
Can I trace the reset to some particular event? What could be the reason for this?

Any hints or help is greatly apprechiated! :)

Infos:
session_test: passed
PHP: PHP Version 5.2.17, Apache 2.0,
System: Linux vwp3564 2.6.18-prep-xenU-static-i686-he+10 #58 SMP Fri Apr 15 09:14:47 UTC 2011 i686

cheers,
zeebulon

Re: GCount - unwanted reset

Posted: Tue Jan 17, 2012 4:06 pm
by Klemen
You will probably need to install a counter with a MySQL database, because it looks like your text files are getting corrupted (possibly too many concurrent accesses).

Re: GCount - unwanted reset

Posted: Wed Jan 18, 2012 4:11 pm
by zeebulon
Hi Klemen,

woah, quick reply, thanks a LOT! 8) 8)

Well, that's what I thought could be possible;
but with about 2.700 - 3100 visitors per day - is that likely?

Re: GCount - unwanted reset

Posted: Wed Jan 18, 2012 8:42 pm
by Klemen
It's really hard to say - it usually depends on the entire server, from how it's setup to under how much load the entire server is, not just one website.

Either way, MySQL databases are way more reliable than text files.