I have today received a yum update of Fail2Ban to 0.8.13-2.el5
However, when restarting there is an error reported in
The error relates to the line:
Code: Select all
except Exception as e:
This requires an update to Python (currently at 2.4.3-56.el5 in the distribution).
For now, I have amended the line to read:
Code: Select all
except Exception, e:
But obviously the better answer would be to push the upgrade to Python which implements this syntax - but that may cause other issues
diff -u to implement suggested fix to syntax error below:
# diff -u /usr/share/fail2ban/server/filterpyinotify.py~ /usr/share/fail2ban/server/filterpyinotify.py
--- /usr/share/fail2ban/server/filterpyinotify.py~ 2014-03-15 01:14:36.000000000 -0700
+++ /usr/share/fail2ban/server/filterpyinotify.py 2014-08-18 19:39:51.000000000 -0700
@@ -211,6 +211,6 @@
def process_default(self, event):
self.__FileFilter.callback(event, origin='Default ')
- except Exception as e:
+ except Exception, e:
logSys.error("Error in FilterPyinotify callback: %s",
e, exc_info=logSys.getEffectiveLevel() <= logging.DEBUG)
fail2ban-0.8.14-1.el5 has been submitted as an update for Fedora EPEL 5.
* should fix your issue,
* was pushed to the Fedora EPEL 5 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing fail2ban-0.8.14-1.el5'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Used 100% CPU and did not work. Gave errors: Starting fail2ban: WARNING 'action' not defined in 'php-url-fopen'. Using default one: ''
WARNING 'action' not defined in 'lighttpd-fastcgi'. Using default one: '' Same config files work fine with fail2ban-0.8.10-4.el5
Nataraj - please attach your jail.conf
fail2ban-0.8.14-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.