PDA

View Full Version : No log entries


milvet
21st May 2006, 21:46
The weblog that ispconfig created has stopped updating. I have no entires for the past 5 days. I have noticed that the sys access_log does contain these enties. I also noticed that the Vhosts_ispconfig.conf entry for the domain does not contain any customlog entries. I also get the following error when running log.php

Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125

Any help in getting things back to normal would be greatly appreaciated.

falko
21st May 2006, 22:47
The weblog that ispconfig created has stopped updating. What file are you referring to?

milvet
21st May 2006, 23:50
The web log is located at

/home/www/web5/log/2006/05/web.log

Also webalizer reports have also stop showing at the same time.

cron is running and I have verified that the log and webalizer crontabs are scheduled.

web entries are being logged at: /var/log/httpd/ispconfig_access_log_%Y_%m_%d"

The following customlog entry is in httpd.conf

###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig

falko
22nd May 2006, 10:29
Do the statistics work for your other sites?
Any errors related to this in your logs?
What's the output of
repquota -avug | grep web5?

milvet
24th May 2006, 01:29
Currently only one website and no errors in the logs. Only error noted was the manual run for logs.php noted in the first entry of this thread.

repquota -avug | grep web5
web5_admin -- 54676 0 0 6397 0 0
web5 -- 54688 256000 256000 6400 0 0

I'm not a Linux guru...just some basic knowledge and I'm not sure what the above means.

Chris

falko
24th May 2006, 14:01
It means the the group web5 and the user web5_admin have not exceeded their disk quota so that's not the problem.

What happens when you run

/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php
/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.phpon the shell?

milvet
25th May 2006, 02:53
/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php
Produces:

Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125

/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
Hangs and does not return to prompt.

falko
25th May 2006, 15:37
/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
Hangs and does not return to prompt.
It can take some time, depending on the size of your web logs.

milvet
26th May 2006, 02:33
The problem is that webalizer and I assume the log.php scripts are accessing an old webid

root 32167 33.7 0.6 7360 2952 pts/0 S+ 16:24 0:11 webalizer -n -s -r -q -T -o /home/www/web1/web/stats -c /root/ispconfig/scripts/shell/webalizer.conf

I deleted web1 when I first start this server. It should be running on web5. I have cruised thru the 54 mysql tables trying to find references to web1. The only one that I can find is in the "del_status" table where there is two records, one for web1 and the other for web1_admin. They are both is "D" status in the table. Should these be there? There is nothing in any of the recycle bins. Also web1 file structure still exists under /home/www. Does webalizer gets is info from the MySQL tables or some other source.

Chris

falko
26th May 2006, 03:03
Does webalizer gets is info from the MySQL tables or some other source.

ChrisIT gets part of the info from the file structure in /home/www and part from the MySQL database.

milvet
26th May 2006, 03:11
I believe that I found the problem. There was symlink point to web1 that was screwing things up.

Thanks for the help

Chris