Blue|Fusion

Well-Known Member
Sep 12, 2004
377
0
166
Cleveland, Ohio
Hello,

I feel like I'm having a stupid moment or something, because I can't figure this one out for the life of me (I always seem to say that 5 minutes before figuring it out on my own). Anyway, for some time now, AWStats has not been updating on all accounts.

I've checked to make sure all users are to have AWStats ran, checked the permissions and ownership of the files relating to this, and then some.

To try to fix the error, I've ran the following (not in any particular order):
/scripts/upcp --force
/scripts/runlogsnow
/scripts/fixeverything
/scripts/runweblogs username
(recompiled perl 5.8.7 and some perl modules)

Despite all that, I still get the following error, on accounts that never had AWStats ran:
Error: Couldn't open config file "awstats.domain.com.conf" nor "awstats.conf" after searching in path ".,/home/user/tmp/awstats/,/etc/opt/awstats,/etc/awstats,/etc,/usr/local/etc/awstats": No such file or directory

- Did you use the correct URL ?
Example: http://localhost/awstats/awstats.pl?config=mysite
Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite
- Did you create your config file 'awstats.btxformfactor.info.conf' ?
If not, you can run "./../../tools/awstats_configure.pl" from command line, or create it manually.

Check config file, permissions and AWStats documentation (in 'docs' directory).
Accounts that had AWStats ran in the past have not been updated since July of 2005. In the accounts that show the error above, do not have the awstats directory in the user's tmp/ durectory, no any awstats configuration files created.

Here's the output from /scripts/runweblogs username:
[email protected] [/home/username]# /scripts/runweblogs bigbruin
Log checker loaded ok..
==> WARNING: configured processor count does not match
==> actual processor count (2)! Running stats programs
==> on this system may cause excessive load!
==> You should set extracpus=0 in /var/cpanel/cpanel.config if this is not ok.
==> cPanel Log Daemon version 22.2
==> Shared RRDTOOL support enabled
Processing username...
Run Logs domain: site.com BW Limit: 262144000000 Domains: [site.info site.net site.org,site.com]
Update status for /var/cpanel/bandwidth/username-http.rrd: (562)
Processing exim stats for username.......Done
Update status for /var/cpanel/bandwidth/username-all.rrd: (562)
WEBLANG english
Archive Status: 1
About to fork for username [ALL DOMAINS: site.info site.net site.org,site.com]
Archiving /usr/local/apache/domlogs/ftp.site.tld-ftp_log
Archiving /usr/local/apache/domlogs/site.tld
Complete
I tried cPanel 10.8.1-C112 and R-113, both with the same results. Running CentOS 3.6.

Any help or advice greatly appreciated!
 

Blue|Fusion

Well-Known Member
Sep 12, 2004
377
0
166
Cleveland, Ohio
Speak of the devil...
Cut my time in half to 2 minutes :-D

Was a problem with /var/cpanel/users/account problem. For some reason, despite being checked in WHM, AWSTATS was not in the STATGENS field. I ran /scripts/runlogsnow and worked fine.

Hope someone else can use this info if necessary. :rolleyes:
 

Vinayak

Well-Known Member
Jun 27, 2003
288
6
168
Bharat
cPanel Access Level
Root Administrator
For those who want the same to be don via WHM,

Go to
Interactive Knowledge Base

Type in "Analog" (without quotes) in Enter Issue hit return.

It will give you the problem and solution to fix it.

One Click and you will be done.
 

nyjimbo

Well-Known Member
Jan 25, 2003
1,135
1
168
New York
We're getting the same thing here.

:(
 

jimmyp

Registered
Nov 9, 2005
4
0
151
Lincs UK
The WHM Interactive Knowledge Base option mentioned above runs /scripts/fixsubdomainlogs (but the accounts do not have subdomains)

and then I manually ran /scripts/runweblogs once for each problem account. Can take some time for busy accounts.

I think its the runweblogs which actually created the initial files, but the Statistics Software Configuration in the users CPanel account was still showing crosses for Analog, Awstats and Webalizer.

In WHM I went to Statistics Software Configuration, then in User Permissions selected the user accounts in question and gave permission to change the choice of stats to run, then configured each account so they had them turned on. Hopefully this will have enabled everything properly for the cron job for daily/month end updates and archiving.
:)

I do not yet know whether this has permanently fixed the problem ready the next new user account I create !
 
Last edited:

naveen3

Active Member
Jan 28, 2005
30
0
156
this resloved my issue

having same issue, after shiffing server
this commond resloved my probel.
chmod -R 755 /usr/local/apache/domlogs/
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
That's exactly what I needed. The previous server had Urchin and the config was set for that which caused other stats not to be ran.

Blue|Fusion said:
Speak of the devil...
Cut my time in half to 2 minutes :-D

Was a problem with /var/cpanel/users/account problem. For some reason, despite being checked in WHM, AWSTATS was not in the STATGENS field. I ran /scripts/runlogsnow and worked fine.

Hope someone else can use this info if necessary. :rolleyes:
 

flash7

Well-Known Member
Feb 16, 2004
201
0
166
Last stable version of AWStats is 6.5 - 2006-04-05

In cPanel is 6.4 (build 1.814) :rolleyes:
 

randomuser

Well-Known Member
Jun 25, 2005
146
0
166
If web stats stop working everyone on the server, check to make sure cpanellogd is running:

# ps aux | grep cpanellogd

If not, try restarting the cpanel service, which should start the logging service:

# /etc/rc.d/init.d/cpanel restart

Or, check WHM -> Tweak Settings and make sure stats are enabled. This should be reflected in /var/cpanel/cpanel.config similiar to this:

# egrep 'awstats|webalizer|analog' /var/cpanel/cpanel.config
skipanalog=0
skipawstats=0
skipwebalizer=0

which would indicate those stats programs are enabled, and cpanellogd should update those stats.