imthenachoman / How-To-Secure-A-Linux-Server

An evolving how-to guide for securing a Linux server.
Creative Commons Attribution Share Alike 4.0 International
17.34k stars 1.11k forks source link

[Ubuntu 24.04] Error: fail2ban [5004]: ERROR No module named 'asynchat' #119

Open EggEnormous opened 4 months ago

EggEnormous commented 4 months ago

While setting up fail2ban while following the instructions more or less to the letter, I experienced the following issue.

On using:

sudo fail2ban-client start

I receive the error:

fail2ban [5004]: ERROR   No module named 'asynchat'

This was fixed using the advice found at the resolution of https://github.com/fail2ban/fail2ban/issues/3487:

wget https://launchpad.net/ubuntu/+source/fail2ban/1.1.0-1/+build/28291332/+files/fail2ban_1.1.0-1_all.deb
sudo dpkg -i fail2ban_1.1.0-1_all.deb

systemctl enable fail2ban
service fail2ban start
fail2ban-client status

My apologies for breaking any etiquette. I don't use Github often and figured this would be helpful for future users.