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

[cobalt-users] Hidden web.cache and web.cache.new



Hi all,

I've been getting some cron daily messages along the lines of getting low on
memory, occasional sort failures things like that. So I've been doing the
"normal" things along the lines of deleting the logs etc but after a while I
was still getting these messages even when the individual site logs were
pretty much zeroed. As more sites and traffic has come through the server it
has become more common, to the point I get them nearly every day now. This
has led me to think there was a specific file causing the issue.

doing a

du -a |sort -n

as root from the root directory gave a nice list after a few minutes of all
files on the server in ascending order of size, whilst most of the results
at the larger end of the scale where things that were supposed to be there
it did show two files web.cache and web.cache.new which were about 120Mb in
size each.

These were not associated with a site, but seem to be a global version and
are located in /home/.cobalt/report which is a hidden directory which to be
honest I never even knew existed.
Both these files just seem to have a load of stats related info in there for
the gui based display.
So they were deleted, recreated and had the permmisions set back to what
they were;

rm web.cache
touch web.cache
chmod 600 web.cache
rm web.cache.new
touch web.cache.new
chmod 600 web.cache.new

So hopefully this little cron timebomb has now been defused and tommorow
after the cron daily I will still have a server!


Phil

** http://www.diygear.com THE Online DIY Toolstore For DIY & Business
** Infolink Electronic Systems Ltd. http://www.infolinkelectronics.co.uk
** Professional Web Design & Cobalt Hosting Solutions
** Sun Cobalt iForce Reseller - Canon Silver Reseller
** Contact: Sales@xxxxxxxxxxxxxxxxxxxxxxxxx
** Tel / Fax 0121 458 4894 (office) 0121 441 3558 (home)