modoboa-installer icon indicating copy to clipboard operation
modoboa-installer copied to clipboard

fail2ban error

Open VladislavGatsenko opened this issue 1 year ago • 1 comments

Impacted versions

  • Distribution: Debian 12
  • Arch: 64 Bits
  • Database: PostgreSQL / MySQL
  • Modoboa: 2.3.1

Steps to reproduce

clean install with lets encrypt certs

root@debian:~/modoboa-installer# systemctl status fail2ban.service
× fail2ban.service - Fail2Ban Service
     Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-08-20 17:49:19 MSK; 18min ago
   Duration: 82ms
       Docs: man:fail2ban(1)
   Main PID: 11201 (code=exited, status=255/EXCEPTION)
        CPU: 82ms

Aug 20 17:49:19 debian systemd[1]: Started fail2ban.service - Fail2Ban Service.
Aug 20 17:49:19 debian fail2ban-server[11201]: 2024-08-20 17:49:19,295 fail2ban.configreader   [11201]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
Aug 20 17:49:19 debian fail2ban-server[11201]: 2024-08-20 17:49:19,305 fail2ban                [11201]: ERROR   Failed during configuration: Have not found any log file for sshd jail
Aug 20 17:49:19 debian fail2ban-server[11201]: 2024-08-20 17:49:19,305 fail2ban                [11201]: ERROR   Async configuration of server failed
Aug 20 17:49:19 debian systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Aug 20 17:49:19 debian systemd[1]: fail2ban.service: Failed with result 'exit-code'.

VladislavGatsenko avatar Aug 20 '24 15:08 VladislavGatsenko

Before installing Modoboa on Debian 12, run the following command to install rsyslog:

sudo apt-get install rsyslog

This will install the rsyslog package, which is necessary for log management on your system. After ensuring rsyslog is installed and running, you can proceed with the Modoboa installation.

piensavirtual avatar Oct 09 '24 13:10 piensavirtual

i prefer rsyslog too, but if you'd like to keep debian12 defaults without rsyslog check this bug report : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060386 and references.. installation of python3-systemd and backend = systemd in jails is needed to work..

xinomilo avatar Dec 03 '24 08:12 xinomilo