Applicable to:
- Plesk for Linux
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 or Banned IP Addresses 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.
PLESK_ERROR: Error: Unable to get the list of jails: f2bmng failed: ERROR:__main__:Failed to get packages by files: package manager returned 4 lines instead of expected 3. Command was ['/usr/bin/dpkg', '-S', '/etc/fail2ban/jail.conf', '/etc/fail2ban/jail.d/plesk.conf', '/etc/fail2ban/jail.local'] and returned exit status 1. Your package system might be inconsistent. Please check it for issues with 'plesk sbin pum --check --full'..
PLESK_ERROR: Could not configure fail2ban to track logs of the domain. Logs will be automatically tracked the next time fail2ban service restarts. f2bmng failed: ERROR:main:Command ['set', 'plesk-apache', 'addlogpath', '/var/www/vhosts/system/example.com/logs/error_log'] failed with error PermissionError(13, 'Permission denied')
PLESK_ERROR: ERR The jail recidive was not found.
- In some cases it is not possible to change the hosting type from "web hosting" to "none" for the domain with the following error:
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
Comments
0 comments
Please sign in to leave a comment.