| User | Post |
|
2:20 pm April 23, 2008
| vtmckoy
Guest
| | | |
|
| |
|
|
Somebody, PLEASE HELP!!!
I am new to awstats. I've been running the following command successfully for a few months:
/apps/awstats/awstats-6.5/wwwroot/cgi-bin/awstats.pl -config=cfname -update
Now, I'm running it and I'm getting the message below:
webstats:/projects/dae/metrics/conf>/apps/awstats/awstats-6.5/ wwwroot/cgi-bin/awstats.pl -config=MCM -update Update for config “/usr/local/etc/awstats/awstats.MCM.conf” With data in log file “/apps/awstats/awstats-6.5/tools/logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log |”… Phase 1 : First bypass old records, searching new record… Searching new records from beginning of log file… sh: /apps/awstats/awstats-6.5/tools/logresolvemerge.pl: not found Error: Command for pipe '/apps/awstats/awstats-6.5/tools/logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log |' failed Setup ('/usr/local/etc/awstats/awstats.MCM.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
I've checked for the existence of /apps/awstats/awstats-6.5/tools/logresolvemerge.pl and it's there. It's also executable. For example:
cdcux65:webstats:/apps/awstats>ls -l /apps/awstats/awstats-6.5/tools/logresolvemerge.pl -rwxr-xr-x 1 webstats www 30323 Dec 4 2005 /apps/awstats/awstats-6.5/tools/logresolvemerge.pl
I'm desperately in need of help. Any suggestions?
Thank you,
|
|
|
2:58 pm April 23, 2008
| Jean-Luc
Admin
| | | |
|
| posts 220 |
|
|
I do not know how big your log files are. If they are not too big, you can try to run:
logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log >combined_log_file
I hope this will help understand where the problem is.
|
|
|
3:05 pm April 23, 2008
| Jean-Luc
Admin
| | | |
|
| posts 220 |
|
|
You can try my suggestion even if your log files are huge. Either you quickly get an error message or things work (and, after a while, you can kill the task if necessary).
|
|
|
4:02 pm April 23, 2008
| vtroymck
Guest
| | | |
|
| |
|
|
Jean-Luc said:
I do not know how big your log files are. If they are not too big, you can try to run:
logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log >combined_log_file
I hope this will help understand where the problem is.
Thank you for responding. When you stated: >combined_log_file, are you saying to redirect it to a log file? If so, I changed my conf file to:
LogFile=”/apps/awstats/awstats-6.5/tools/logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log >vtm_log_file”
Then, I re-ran the update and got the following:
cdcux65:webstats:/projects/dae/metrics/conf>/apps/awstats/ awstats-6.5/wwwroot/cgi-bin/awstats.pl -config=MCM -update Update for config “/usr/local/etc/awstats/awstats.MCM.conf” With data in log file “/apps/awstats/awstats-6.5/tools/logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log >vtm_log_file”… Error: Couldn't open server log file “/apps/awstats/awstats-6.5/tools/logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log >vtm_log_file” : No such file or directory Setup ('/usr/local/etc/awstats/awstats.MCM.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
/projects/dae/metrics/logs/cdcrs234/w3svc1/*.log is definitely there…
The last log is:
-rw-rw-r– 1 webstats www 1679475 Apr 15 01:15 /projects/dae/metrics/logs/cdcrs234/w3svc1/ex080414.log.
|
|
|
4:13 pm April 23, 2008
| Jean-Luc
Admin
| | | |
|
| posts 220 |
|
|
It was not what I meant. I suggested that you run
/apps/awstats/awstats-6.5/tools/logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log >vtm_log_file
directly from the commmand line without running awstats.pl. The intention is to isolate the error.
|
|
|
4:48 pm April 23, 2008
| vtroymck
Guest
| | | |
|
| |
|
|
Jean-Luc said:
I do not know how big your log files are. If they are not too big, you can try to run:
logresolvemerge.pl /projects/dae/metrics/logs/cdcrs234/w3svc1/*.log >combined_log_file
I hope this will help understand where the problem is.
I ran it from the command line and got “not found” for logresolvemerge.pl. Also, no output is in the redirected file.
/projects/dae/metrics/conf>/apps/awstats/awstats-6.5/ tools/logresolvemerge.pl /projects/dae/metrics/logs/> ksh: /apps/awstats/awstats-6.5/tools/logresolvemerge.pl: not found
I then cut/paste the exact directory structure above and got:
/projects/dae/metrics/conf>ls -l /apps/awstats/awstats-6.5/tools/logresolvemerge.pl -rwxr-xr-x 1 webstats www 30323 Dec 4 2005 /apps/awstats/awstats-6.5/tools/logresolvemerge.pl
logresolvemerge.pl is there and executable; also the logs are there also.
|
|
|
9:22 pm April 23, 2008
| vtroymck
Member
| | | |
|
| posts 3 |
|
|
Just an FYI…My problem is resolved. It looks like the executables got corrupted, somehow. I had the backup team restore the awstats directory structure from a previous backup. After it was restored, I was able to run an update, successfully. Thank you…
|
|