Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th September 2005, 13:00
thevinster thevinster is offline
Junior Member
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Statistics not compiling.

Hi,

I'm having some trouble with my statistics not compiling. Unless I run the log.php manually, cron doesn't seem to be doing it. How do I check / fix this?

I run Debian 3.1, and have installed to Falko's Perfect Setup instructions.

Also, what URL would I use to view the statistics?
Reply With Quote
Sponsored Links
  #2  
Old 14th September 2005, 13:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,714 Times in 2,556 Posts
Default

Quote:
Originally Posted by thevinster
Hi,

I'm having some trouble with my statistics not compiling. Unless I run the log.php manually, cron doesn't seem to be doing it. How do I check / fix this?

I run Debian 3.1, and have installed to Falko's Perfect Setup instructions.

Also, what URL would I use to view the statistics?
Do you have error messages from cron in /var/log/messages or /var/log/syslog?

The statistics URL would be www.example.com/stats.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th September 2005, 09:50
thevinster thevinster is offline
Junior Member
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nope... there are no errors, but the stats just don't compile.
Reply With Quote
  #4  
Old 15th September 2005, 10:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,714 Times in 2,556 Posts
Default

Quote:
Originally Posted by thevinster
Nope... there are no errors, but the stats just don't compile.
There are really no errors? Maybe you've overseen them. Run

Code:
grep -i cron /var/log/messages
and
Code:
grep -i cron /var/log/syslog
to find the cron related lines.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th September 2005, 11:03
thevinster thevinster is offline
Junior Member
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is what I get:


Code:
Sep 16 06:39:01 econwiki /USR/SBIN/CRON[4700]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 16 07:09:01 econwiki /USR/SBIN/CRON[5112]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 16 07:17:01 econwiki /USR/SBIN/CRON[5219]: (root) CMD (   run-parts --report /etc/cron.hourly)
Sep 16 07:39:01 econwiki /USR/SBIN/CRON[5485]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 16 08:09:01 econwiki /USR/SBIN/CRON[5860]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 16 08:17:01 econwiki /USR/SBIN/CRON[5966]: (root) CMD (   run-parts --report /etc/cron.hourly)
Sep 16 08:39:01 econwiki /USR/SBIN/CRON[6232]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 16 09:09:01 econwiki /USR/SBIN/CRON[6602]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 16 09:17:01 econwiki /USR/SBIN/CRON[6708]: (root) CMD (   run-parts --report /etc/cron.hourly)
Sep 16 09:39:01 econwiki /USR/SBIN/CRON[6995]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Reply With Quote
  #6  
Old 16th September 2005, 12:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,714 Times in 2,556 Posts
Default

We need log entries from the time between 00.00h and 5.00h because that's the time when the statistics related cron jobs run.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 19th September 2005, 01:47
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,257
Thanks: 75
Thanked 22 Times in 18 Posts
Default

I have exactly the same problem: no stats get compiled.

heres is what a grep -i grep -i cron /var/log/syslog > crongrep delivers into crongrep file. in messages there are no cron entries.

Code:
Sep 18 22:39:01 h5810 /USR/SBIN/CRON[17505]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 18 23:00:01 h5810 /USR/SBIN/CRON[17770]: (root) CMD (   test -x /usr/sbin/tigercron && /usr/sbin/tigercron -q)
Sep 18 23:05:01 h5810 /USR/SBIN/CRON[17951]: (logcheck) CMD (   if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi)
Sep 18 23:09:01 h5810 /USR/SBIN/CRON[18772]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 18 23:17:01 h5810 /USR/SBIN/CRON[18879]: (root) CMD (   run-parts --report /etc/cron.hourly)
Sep 18 23:39:01 h5810 /USR/SBIN/CRON[19148]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 19 00:00:01 h5810 /USR/SBIN/CRON[19413]: (root) CMD (   test -x /usr/sbin/tigercron && /usr/sbin/tigercron -q)
Sep 19 00:05:01 h5810 /USR/SBIN/CRON[20762]: (logcheck) CMD (   if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi)
Sep 19 00:09:01 h5810 /USR/SBIN/CRON[21579]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 19 00:17:01 h5810 /USR/SBIN/CRON[21685]: (root) CMD (   run-parts --report /etc/cron.hourly)
Sep 19 00:39:01 h5810 /USR/SBIN/CRON[21955]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 19 01:00:01 h5810 /USR/SBIN/CRON[22221]: (root) CMD ([ -x /usr/share/john/cronjob ] && nice /usr/share/john/cronjob start)
Sep 19 01:00:01 h5810 /USR/SBIN/CRON[22222]: (root) CMD (   test -x /usr/sbin/tigercron && /usr/sbin/tigercron -q)
Sep 19 01:05:01 h5810 /USR/SBIN/CRON[30646]: (logcheck) CMD (   if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi)
Sep 19 01:09:01 h5810 /USR/SBIN/CRON[31489]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Sep 19 01:17:01 h5810 /USR/SBIN/CRON[31646]: (root) CMD (   run-parts --report /etc/cron.hourly)
Sep 19 01:39:01 h5810 /USR/SBIN/CRON[32147]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
I gave you only the parts from the time interval you were asking from,
but I had a strange section
Code:
Sep 18 11:41:01 h5810 /usr/sbin/cron[662]: (*system*logcheck) RELOAD (/etc/cron.d/logcheck)
Sep 18 11:41:01 h5810 /usr/sbin/cron[662]: (root) WRONG INODE INFO (crontabs/root)
Sep 18 11:44:01 h5810 /usr/sbin/cron[662]: (*system*john) RELOAD (/etc/cron.d/john)
Sep 18 11:44:01 h5810 /usr/sbin/cron[662]: (root) WRONG INODE INFO (crontabs/root)
Sep 18 11:45:01 h5810 /usr/sbin/cron[662]: (*system*logcheck) RELOAD (/etc/cron.d/logcheck)
Sep 18 11:45:01 h5810 /usr/sbin/cron[662]: (root) WRONG INODE INFO (crontabs/root)
I guess that was when I run the commands manually?
Reply With Quote
  #8  
Old 25th September 2005, 00:38
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Default

Hi there,
I have had a similar problem...
I noticed that a few crons were running, for whatever reason.
Try to do a
/etc/init.d/cron stop
pkill cron (Make sure no cron processes are left.)
Edit your crontab (crontab -e) and save it again.
Then restart cron: /etc/init.d/cron start
Worked fine here...
Regards,
~jm
Reply With Quote
  #9  
Old 6th October 2005, 17:06
thevinster thevinster is offline
Junior Member
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This worked perfectly. Great job!
Reply With Quote
  #10  
Old 2nd December 2005, 01:13
kuyaedz kuyaedz is offline
Junior Member
 
Join Date: Nov 2005
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to kuyaedz
 
Default

I've followed these instructions too. Do I now need to wait 24hrs to give cron a chance to run again?

Also, it mentions editing crontab (crontab -e) and save again. Is there something I need to 'edit' or just re-save? I'm having the same issue of stats not compiling & not access at www.domain.com/stats/ (404 Error)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer - Usage by Country statistics leno Installation/Configuration 3 28th April 2005 18:12


All times are GMT +2. The time now is 17:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.