nextcloud / vm

šŸ’»ā˜šŸ“¦ The Nextcloud VM (virtual machine appliance), Home/SME Server and scripts for RPi (4). Community developed and maintained.
https://download.nextcloudvm.com
GNU General Public License v3.0
1.3k stars 656 forks source link

Fail2ban fails on Ubuntu 24.04 #2634

Closed enoch85 closed 2 weeks ago

enoch85 commented 4 months ago
root@nextcloud:/etc/apache2/sites-available# systemctl status fail2ban
Ɨ fail2ban.service - Fail2Ban Service
     Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-05-14 14:01:40 CEST; 5s ago
   Duration: 105ms
       Docs: man:fail2ban(1)
    Process: 256724 ExecStart=/usr/bin/fail2ban-server -xf start (code=exited, status=255/EXCEPTION)
   Main PID: 256724 (code=exited, status=255/EXCEPTION)
        CPU: 104ms

May 14 14:01:40 nextcloud systemd[1]: Started fail2ban.service - Fail2Ban Service.
May 14 14:01:40 nextcloud fail2ban-server[256724]: 2024-05-14 14:01:40,657 fail2ban.configreader   [256724]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
May 14 14:01:40 nextcloud fail2ban-server[256724]: 2024-05-14 14:01:40,677 fail2ban                [256724]: ERROR   No module named 'asynchat'
May 14 14:01:40 nextcloud systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
May 14 14:01:40 nextcloud systemd[1]: fail2ban.service: Failed with result 'exit-code'.
memesalot commented 3 months ago

This is a bug with fail2ban and Ubuntu 24.04 with the current version off apt. Install the .deb manually from the fail2ban github releases. Issue will go away.

enoch85 commented 3 months ago

Yeah, I'm waiting for a new release. We won't do any special case here. We want it as default as possible.

enoch85 commented 2 weeks ago

Solved it seems!