eldy / AWStats

AWStats Log Analyzer project (official sources)
https://www.awstats.org
369 stars 120 forks source link

Improving error handling in awstats_buildstaticpages.pl #111

Closed Lucas-C closed 5 years ago

Lucas-C commented 5 years ago

Thanks to this I was able to catch this error:

$ /usr/share/awstats/tools/awstats_buildstaticpages.pl -config=local -update -dir=/usr/share/nginx/html/awstats
...
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.2 (build 1.992)
From data in log file "/usr/share/awstats/tools/logresolvemerge.pl /var/log/nginx/access.log /var/log/nginx/access.log.1"...
Error: Couldn't open server log file "/usr/share/awstats/tools/logresolvemerge.pl /var/log/nginx/access.log /var/log/nginx/access.log.1" : No such file or directory
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).