Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fail2Ban Exim WARNING fail2ban.log (since version 0.9.0) #718
logencoding = ASCII and logencoding= UTF-8 have this problem
Exim filter (exim.conf):
Problem Fail2Ban (/var/log/fail2ban.log):
How can I fix this problem?
I've tried to tidy up the issue text, which I've hopefully broken into the correct blocks
Fail2Ban 0.9.x supports Python 3, and hence the handling of encoding is required due to Python 3 differentiation between bytes and strings. This is why you don't see the issue 0.8.12.
The line is still being processed fully in Python 2, and in Python 3 is merely drops the characters it can't decode. Maybe the warning message should be clearer that this is the case…
The example error from fail2ban.log appears to be valid UTF-8:
referenced this issue
May 15, 2014
@dave670: Just to add, you can set the
If there is an issue with these warnings spamming the Fail2Ban log file, maybe there needs to be an option to suppress these warnings?
I'll close for now and hopefully the clearer message in #723 will help.