Section Visitor Not Found

/usr/share/awstats/tools/update.sh
Error while processing /etc/awstats/awstats.site.com.conf
Create/Update database for config "/etc/awstats/awstats.site.com.conf" by AWStats version 7.4 (build 20150714)
From data in log file "/var/log/apache2/access.log"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record is out of file.
So searching it from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Error: History file "/var/www/usage/site.com/awstats/awstats08201.6site.com.txt" is corrupted (End of section VISITOR not found).
Restore a recent backup of this file (data for this month will be restored to backup date), remove it (data for month will be lost), or remove the corrupted section in file (data for at least this section will be lost).

Note, I didn’t remove this file, but rather deleted the last few lines of corrupted data and added END_VISITOR to the last line.
Additionally, you can repair the file from the raw apache access logs.

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • E-mail this story to a friend!
  • LinkedIn
  • Live
  • MySpace
  • Turn this article into a PDF!
  • Reddit
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz

Leave a Reply

You must be logged in to post a comment.