Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 282358

Summary: net-analyzer/fail2ban works incorrectly with Python 2.6
Product: Gentoo Linux Reporter: Jon Gerdes <gerdesj>
Component: [OLD] ServerAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: eric.joshua.martin, genzilla, roeland
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jon Gerdes 2009-08-22 20:39:57 UTC
fail2ban (up to 0.8.3) requires Python 2.5.  If 2.6 is used then you will see repeated "fail2ban.server : ERROR  Unexpected communication error" in the logfile.

Reproducible: Always

Steps to Reproduce:
1.Install fail2ban on a system with python 2.6
2.
3.




Workaround:
Install Python 2.5 (if it is not already there)
Change the #! line in /usr/bin/fail2ban-server from "python" to "python2.5". You may have to do this for the other components but I was able to at least do a fail2ban-client status with no errors.

Personally speaking, I think it would be too much to just cause python 2.5 to install.  Instead I think it would be best to test for the existence of 2.5 and if it is not there, then fail the build and warn the user to install it.

Hopefully upstream will fix this requirement.
Comment 1 Tom Hendrikx 2009-08-24 17:37:36 UTC
This is a known issue on other distros too. See https://bugs.launchpad.net/fedora/+source/fail2ban/+bug/372304 for fedora, ubuntu and suse references.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-01 01:53:24 UTC
(In reply to comment #1)
> https://bugs.launchpad.net/fedora/+source/fail2ban/+bug/372304

The last comment suggests that it has been fixed.
Comment 3 Dan Andresan 2009-09-08 10:22:59 UTC
0.8.4 have been released which works with python 2.6. You can get it here:

http://downloads.sourceforge.net/fail2ban/fail2ban-0.8.4.tar.bz2

Comment 4 Eric Martin 2009-09-09 17:47:48 UTC
I opened bug 284279 which is a version bump to fail2ban-0.8.4.  There is an ebuild included in the bug as well as a link to my overlay on github.
Comment 5 Roeland Douma 2009-09-30 13:05:39 UTC
I can confirm that the bug is gone in version 0.8.4.
A little longer and we can stabilize that one, in the mean time it might be a good idea to add appropriate dependencies so 0.8.3 won't install on python-2.6-only systems. 
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2010-11-03 21:45:32 UTC
Fixed