Fail2Ban update to 0.8.13-2.el5 fails

Issues related to software problems.
Post Reply
rwap
Posts: 20
Joined: 2010/10/28 16:49:33
Location: Stone, UK
Contact:

Fail2Ban update to 0.8.13-2.el5 fails

Post by rwap » 2014/08/16 11:33:58

I am running Centos 5.10

I have today received a yum update of Fail2Ban to 0.8.13-2.el5

However, when restarting there is an error reported in

/usr/share/fail2ban/server/filterpyinotify.py

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

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Fail2Ban update to 0.8.13-2.el5 fails

Post by TrevorH » 2014/08/16 11:45:14

An upgrade to python is not going to happen so this is a bug in fail2ban. The system python is used by little things like yum so updating it is not possible. You need to report this upstream as a bug in fail2ban.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rwap
Posts: 20
Joined: 2010/10/28 16:49:33
Location: Stone, UK
Contact:

Re: Fail2Ban update to 0.8.13-2.el5 fails

Post by rwap » 2014/08/16 11:51:59

That's a shame, as it works on another server I have running Centos 6.

Fail2Ban is already well past v0.8.13 - it is currently at 0.9.1, so they are not going to fix an issue in 0.8.13...

So who do you report this to?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Fail2Ban update to 0.8.13-2.el5 fails

Post by gerald_clark » 2014/08/16 13:25:34

You report it to the people you installed it from ( epel? ).

rwap
Posts: 20
Joined: 2010/10/28 16:49:33
Location: Stone, UK
Contact:

Re: Fail2Ban update to 0.8.13-2.el5 fails

Post by rwap » 2014/08/16 13:32:27

Hmm yes, it was installed from EPEL - sorry - thought it was a standard Centos package...

Post Reply