Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

AWstat wont update

Reply to Post Add a New Topic
UserPost

3:06 am
June 6, 2009


lyangy

Member

posts 6

Hello,

         I'm having issue with my statistic setup below is the fields for date time etc.. The problem is that when i run the perl awstats.pl -config=x.com -update, it will run through but when i view the stats online it show 0 hit 0 visit etc.. i know we have alots of traffic because the log files are 15mb . Please help! 

#Fields: date time cs-method cs-uri-stem cs-uri-query cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes

LogFormat="%time2 %method %url %query %logname %host %other %ua %referer %code %bytesd"

C:\\Inetpub\\wwwroot\\AWStats\\cgi-bin>perl awstats.pl -config=x.com -update
WARNING: LastLine parameter in history file is '20090601165415' so in future. Ma
y be you need to correct manually the line LastLine in some awstats*.x.com
.conf files.
Create/Update database for config "./awstats.x.com.conf" by AWStats versio
n 6.9 (build 1.925)
From data in log file "D:/Inetpub/logs/W3SVC1/ex090601.log"…
Phase 1 : First bypass old records, searching new record…
Direct access after last parsed record (after line 39142)
Jumped lines in file: 39142
 Found 39142 already parsed records.
Parsed lines in file: 81001
 Found 0 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 81001 new qualified records.

3:20 am
June 6, 2009


Jean-Luc

Admin

posts 1043

Hi,

The message you get at the end of the update does not show any error, but the "LastLine in future" warning. This pointless warning can disturb the reports. I would remove it by commenting out lines 10174 to 10178 in awstats.pl  (6.9).

Two more questions if this does not solve the problem :

  • Are you dynamically generating the reports (.pl) or are using static reports (.html) ?
  • Are the AWStats database files created in the DirData  directory ?

11:31 am
June 6, 2009


lyangy

Member

posts 6

the dirdata directory doesn't have any files at all i dont know why it wont create the files ? i dont know if it's dynamically or static? how do i check?

11:50 am
June 6, 2009


Jean-Luc

Admin

posts 1043

Please paste here the DirData  line from your AWStats confilg file.

The AWStats report is dynamic if its URL contains awstats.pl  and it is static if the URL ends with .html .

12:41 pm
June 6, 2009


lyangy

Member

posts 6

IT's dynamic then because it contains awstats.pl

Dirdata="C:/Inetpub/wwwroot/AWStats/data"

2:29 pm
June 6, 2009


Jean-Luc

Admin

posts 1043

This is weird.

When I try to run an update with DirData pointing to a write-protected DirData  directory, I get :

Error: Couldn't open file “/path_to/aws
tats052009.mysite.tmp.12052″ for write:
 Permission denied

And when I try to run an update with DirData  pointing to a directory that does not exist, I get :

Error: AWStats database directory defin
ed in config file by 'DirData' paramete
r (/path_to) does not exist or is not w
ritable.

As AWStats first writes a temporary data file in DirData , it needs to read it back to generate the final data file. I do not see how it could be doing that without detecting when DirData  does not exist or when it is write protected.

11:51 pm
June 6, 2009


lyangy

Member

posts 6

my permission is there and also the directory is there?

12:13 am
June 7, 2009


Jean-Luc

Admin

posts 1043

In your first post, you wrote :

WARNING: LastLine parameter in history file is '20090601165415' so in future.
(…)
Direct access after last parsed record (after line 39142)

Then you wrote :

the dirdata directory doesn't have any files at all i dont know why it wont create the files ?

That does not make sense ! Surprised

The date stamp of the LastLine parameter and the "last parsed record" mentioned in your first post have been read by AWStats in an existing data file in the DirData directory. Your statement that there is no file in the DirData  directory cannot be true.

Maybe you or another application erased the AWStats files in the DirData  directory or you looked in the wrong directory. Note that, in case there are several definitions of DirData  in the AWStats config file, only the last one will apply.

2:06 pm
June 7, 2009


lyangy

Member

posts 6

Ran it  again and it didn't give me the same error anymore but still is not updating.

C:\\Inetpub\\wwwroot\\AWStats\\cgi-bin>perl awstats.pl -config=x.com -update
Create/Update database for config "./awstats.x.com.conf" by AWStats versio
n 6.9 (build 1.925)
From data in log file "D:/Inetpub/logs/W3SVC1/ex090607.log"…
Phase 1 : First bypass old records, searching new record…
Direct access after last parsed record (after line 7199)
Jumped lines in file: 7199
 Found 7199 already parsed records.
Parsed lines in file: 46888
 Found 0 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 46888 new qualified records.

C:\\Inetpub\\wwwroot\\AWStats\\cgi-bin>

2:32 pm
June 7, 2009


Jean-Luc

Admin

posts 1043

Hello,

You now get “Found 7199 already parsed records“. AWStats found these 7199 already parsed records in its data files in DirData . Thus it is clear that the database has been updated.

What you describe could happen, if you do not use the same AWStats config file when updating and when calling AWStats from the browser. The address in the address bar of your browser should be like this :

http://…/awstats.pl?config=x.com

(assuming awstats.x.com.conf is the config file as in the update command).

7:05 pm
June 7, 2009


lyangy

Member

posts 6

you are right i been changing config files? so do i have to go back to the old config files?

10:58 pm
June 7, 2009


Jean-Luc

Admin

posts 1043

I cannot tell if you have to use the old or the new config file, as I do not know what the differences are between the two.

Reply to Post

Reply to Topic:
AWstat wont update

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
10 + 5
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online: Diggy
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 498
Posts: 2380

Membership:

There are 2068 Members
There have been 245 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
albert_newton – 30
deepakgupta – 28
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: Diggy, mopl91, henrique, ScottWigle, mgshirinda, andersondj

Administrators: Jean-Luc (1043 Posts)

Moderators: Jean-Luc (1043 Posts)