Package: fail2ban
Version: 0.8.13-1
Severity: normal
Dear Maintainer,
When a log file is moved aside (during log rotation) and new is created in its
place, fail2ban spews the following error:
2016-08-24 18:20:54,697 fail2ban.filter [27758]: ERROR Unable to open
/var/log/apache/access_log
2016-08-24 18:20:54,697 fail2ban.filter [27758]: ERROR [Errno 2] No such file
or directory: '/var/log/apache/access_log'
Traceback (most recent call last):
File "/usr/share/fail2ban/server/filter.py", line 520, in getFailures
has_content = container.open()
File "/usr/share/fail2ban/server/filter.py", line 601, in open
self.__handler = open(self.__filename)
IOError: [Errno 2] No such file or directory: '/var/log/apache/access_log'
This is fixed in upstream 0.8.14 with the following commit:
https://github.com/fail2ban/fail2ban/commit/fdcded262d0ab5d72e484ff2ac5caac09de1b2ac
Please, consider backporting this fix.
Best regards,
Teodor Milkov
-- System Information:
Debian Release: 8.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.14.65
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)
Versions of packages fail2ban depends on:
ii lsb-base 4.1+Debian13+nmu1
Versions of packages fail2ban recommends:
ii python-pyinotify 0.9.4-1
Versions of packages fail2ban suggests:
ii bsd-mailx [mailx] 8.1.2-0.20141216cvs-2
pn python-gamin <none>
ii rsyslog [system-log-daemon] 8.4.2-1+deb8u2
-- Configuration Files:
/etc/init.d/fail2ban changed [not included]
-- no debconf information