I did find old discussions about this problem, but nothing helped. On my test system with Debian 10 and ISPConfig 3.1.15p3 the yesterday-access.log symbolic link does not get updated all the time, It is not the same website that fails, seems one or two get this failure. Reboot seems to correct it for one day, but then one website gets it again. I even looked at the code that updates the symlink, but could not see why it would fail for some websites and work for others. In the following the last link is not updated, it still points to the day before yesterday. I get every ten minutes e-mail about this error, so it is quite annoying. This started happening 23rd May. Code: # ls -lh /var/log/ispconfig/httpd/*/yesterday-access.log lrwxrwxrwx 1 root root 53 Jun 12 00:03 /var/log/ispconfig/httpd/autoconfig.taleman.ovh/yesterday-access.log -> /var/www/clients/client1/web7/log/20200611-access.log lrwxrwxrwx 1 root root 53 Jun 12 00:03 /var/log/ispconfig/httpd/xyzzy.taleman.ovh/yesterday-access.log -> /var/www/clients/client2/web3/log/20200611-access.log lrwxrwxrwx 1 root root 53 Jun 12 00:03 /var/log/ispconfig/httpd/posti.taleman.ovh/yesterday-access.log -> /var/www/clients/client1/web1/log/20200611-access.log lrwxrwxrwx 1 root root 54 Jun 12 00:04 /var/log/ispconfig/httpd/rospos.taleman.ovh/yesterday-access.log -> /var/www/clients/client1/web15/log/20200611-access.log lrwxrwxrwx 1 root root 53 Jun 11 00:03 /var/log/ispconfig/httpd/foobar.taleman.ovh/yesterday-access.log -> /var/www/clients/client1/web2/log/20200610-access.log
This might be the reason. The log is switched by vlogger (vlogger is the script that apache pipes the logs to), so if there is nearly no traffic, then it might be that the symlink does not get switched, at least if I remember correctly. Maybe we must add some additional code to an ispconfig corn plugin that checks and corrects the symlinks before the statistics corn runs. another possibility might be that the awstats system cronjob is still active, check in /etc/cron.d or cron.daily, not that awstats is run twice, once from the system and once from ispconfig.