Applicable to:
- Plesk for Linux
Symptoms
-
When enabling Fail2Ban jails, the operation fails with:
PLESK_ERROR: Unable to switch on the selected jails: f2bmng failed: fail2ban [7690]: ERROR NOK: ("Failed to initialize any backend for Jail 'plesk-roundcube'",)
ERROR:main:Command '['/usr/bin/fail2ban-client', 'reload', '--if-exists', 'plesk-roundcube']' returned non-zero exit status 255
ERROR:main:Failed to reload following jails due to errors in configuration: plesk-roundcube. -
The following error message is logged in
/var/log/fail2ban.log
:CONFIG_TEXT: Backend 'systemd' failed to initialize due to No module named systemd
Cause
systemd
is set as default backend in jail.local file:
CONFIG_TEXT: grep -r 'backend' /etc/fail2ban/jail.local
backend = systemd
Resolution
-
Connect to the Plesk server via SSH.
-
Open the file
/etc/fail2ban/jail.local
in a text editor. In this example, we are using the vi editor:# vi /etc/fail2ban/jail.local
-
Remove or comment the following line:
CONFIG_TEXT: backend = systemd
-
Save the changes and close the file.
-
Restart the Fail2Ban service:
# systemctl restart fail2ban.service
Comments
0 comments
Please sign in to leave a comment.