Awffull complains log file does not exist

Problem Description

I set up stats for a couple of domains. I’ve since disabled it again, but ever since I enabled them, I’ve been getting emailed errors about log file /var/log/apache/access.log.1 not being found.

Any Error Messages

Received by email:

Subject: Cron <root@server> test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; }

/etc/cron.daily/awffull:
ERROR: LogFile not found: /var/log/apache/access.log.1

Environment

  • Sympl Version: 12
  • Debian Version: 12.14
  • Hardware Type: Dedicated server
  • Hosted With: Hetzner

This sounds like it may be something to do with the way the Hetzner images are set up, possibly related to logrotate.

You may be able to work around this by simply doing touch /var/log/apache/access.log.1.

I already tried that :neutral_face: The file exists, and it’s old, so it seems unlikely that it’s anything to do with logrotate:

ls -lh /var/log/apache/
-rw-r----- 1 root adm    0 Jul  9 09:02 access.log
-rw-r----- 1 root adm    0 Jul  9 09:02 access.log.1

But looking at that, I realised that /var/log/apache is a symlink to /var/log/apache2. Could that be relevant?

ls -lh /var/log/apache
lrwxrwxrwx 1 root root 16 Jun 12 10:18 /var/log/apache -> /var/log/apache2