Since the change to Python 3.8, py-fail2ban does not work. The port compiles and installs fine, but "service fail2ban start/stop/restart" results in an error ERROR [[Errno 61] Connection refused] Unable to contact server. Is it running? ERROR Fail2ban seems to be in unexpected state (not running but the socket exists) There seems to be a communcation problem between client and server which has also been reported upstream (though I'm not sure this is an upstream issue): https://github.com/fail2ban/fail2ban/issues/3014
I updated python a couple of days before. I noticed that the pid in sock files in /var/run/fail2ban are left over which in my case caused the messages "not running but socket exists" and another error "'str' object does not have property 'args'" (or something like that). Deleting those files solved my problems. I filed it as my error because I didn't followed the update procedure to its full extend and so didn't investigate further. A fresh install of fail2ban on a test machine was successful. So you may try if this resolves your problem: - stop fail2ban - remove the /var/run/fail2ban/fail2ban.pid and .../fail2ban.sock - start fail2ban
(In reply to theis from comment #1) That indeed fixes the issue, thank you! I think there's is something wrong with the cleanup stage of the port, as I did the full "make deinstall; make clean; make install" routine when things didn't work after upgrading python according to the instructions according to UPDATING.
Bug can be closed