No module named 'fail2ban.compat'
Description:
fail2ban doesn't run anymore after Python 3.12 rebuild. Starting fail2ban.service fails with the following error:
× fail2ban.service - Fail2Ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2024-04-24 09:22:50 UTC; 516ms ago
Duration: 241ms
Docs: man:fail2ban(1)
Process: 6442 ExecStartPre=/bin/mkdir -p /run/fail2ban (code=exited, status=0/SUCCESS)
Process: 6444 ExecStart=/usr/bin/fail2ban-server -xf start (code=exited, status=255/EXCEPTION)
Main PID: 6444 (code=exited, status=255/EXCEPTION)
CPU: 233ms
Apr 24 09:22:49 vulpix.felixc.at systemd[1]: Starting Fail2Ban Service...
Apr 24 09:22:49 vulpix.felixc.at systemd[1]: Started Fail2Ban Service.
Apr 24 09:22:50 vulpix.felixc.at fail2ban-server[6444]: 2024-04-24 09:22:50,066 fail2ban.configreader [6444]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
Apr 24 09:22:50 vulpix.felixc.at fail2ban-server[6444]: 2024-04-24 09:22:50,105 fail2ban [6444]: ERROR No module named 'fail2ban.compat'
Apr 24 09:22:50 vulpix.felixc.at systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Apr 24 09:22:50 vulpix.felixc.at systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Additional info:
- package version(s): fail2ban 1.0.2-6