Giter Club home page Giter Club logo

Comments (3)

AndMck avatar AndMck commented on June 4, 2024

I have added backend = systemd and the error i now get is ;
service fail2ban start

  • Starting Authentication failure monitor fail2ban
    2024-02-29 14:07:55,591 fail2ban [348]: ERROR No module named 'asynchat'
    2024-02-29 14:08:25,956 fail2ban [347]: ERROR Could not start server. Maybe an old socket file is still present. Try to remove /var/run/fail2ban/fail2ban.sock. If you used fail2ban-client to start the server, adding the -x option will do it

trying fail2ban client -x start also fails.....

from fail2ban.

sebres avatar sebres commented on June 4, 2024

I saw mention that i should set backend = systemd but not sure as i'm not using systemd.
I have added backend = systemd ...

Well, if your system does not use journal, then sshd wouldn't log to journal and this setting would be wrong in that case.
You have to ensure where sshd basically logging:

  • either to journal (you can also check it with journalctl), then this f2b-backend is correct.
  • or to log-file, then find it out in sshd- or rsyslog-settings, and set backend to auto and logpath to proper path to the log-file.

... and the error i now get is :
No module named 'asynchat'

Is python version 3.12+? (see #3487)

Then it is only possible with newer fail2ban version or if you install that modules manually, e. g, with pip as described in pyasynchat and pyasyncore

Otherwise I don't understand why this must be not found within ubuntu 24.04 (no matter container or not).
How you installed fail2ban there? Manually (from source or deb) or from apt?

from fail2ban.

jmg-duarte avatar jmg-duarte commented on June 4, 2024

I had this issue but installing from the .deb in the releases fixed it for me

from fail2ban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.