$ /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).
Thanks to this I was able to catch this error: