Symptoms
Creation of a subscription fails with one of the following errors in Plesk GUI or in the/var/log/plesk/panel.log
file:
PLESK_ERROR: Error: hosting update is failed: f2bmng failed: ERROR:f2bmng:Command ‘[‘/bin/rpm’, ‘-qf’, ‘–queryformat’, ‘%{NAME}n’, ‘/etc/fail2ban/jail.conf’, ‘/etc/fail2ban/jail.d/plesk.conf’, ‘/etc/fail2ban/jail.local’]’ returned non-zero exit status 3
PLESK_ERROR: ERR [panel] Domain Service Web not exists: domain=example.com, id=270
Unable to open Jails menu in Fail2ban:
PLESK_ERROR: Error: Unable to get the list of jails: f2bmng failed: ERROR:__main__:Command ‘[‘/bin/rpm’, ‘-qf’, ‘–queryformat’, ‘%{NAME}n’, ‘/etc/fail2ban/jail.conf’, ‘/etc/fail2ban/jail.d/plesk.conf’, ‘/etc/fail2ban/jail.local’]’ returned non-zero exit status 1.
Cause
Incorrect installation of Fail2Ban.
Resolution
Perform a clean reinstallation of Fail2ban following these steps:
-
Connect to the server via SSH
-
Back up Fail2ban folder:
# cp -a /etc/fail2ban /root/fail2ban_backup
-
Uninstall Fail2ban:
# plesk installer –select-release-current –remove-component fail2ban
-
Move Fail2ban left-over old installation files:
# mv /etc/fail2ban /root/fail2ban_old
-
Install Fail2ban:
# plesk installer –select-release-current –install-component fail2ban
-
Restore Fail2ban configuration:
# mv /root/fail2ban_backup/jail.local /etc/fail2ban/.
-
Restart Fail2Ban service:
# systemctl restart fail2ban.service