- Plesk 12.0 for Linux
- Plesk 12.5 for Linux
- Plesk Onyx for Linux
When trying to enable jail, the following error appears:
# plesk bin ip_ban --enable-jails 'plesk-roundcube'
f2bmng failed: WARNING Wrong value for 'loglevel' in 'Definition'. Using default one: '1'
ERROR Found no accessible config files for 'action.d/iptables-multiport' under /etc/fail2ban
ERROR Error in action definition iptables-multiport[name="plesk-roundcube", port="http,https,7080,7081"]
ERROR Errors in jail 'plesk-roundcube'. Skipping...
ERROR:f2bmng:Command '['/usr/bin/fail2ban-client', 'reload', 'plesk-roundcube']' returned non-zero exit status 255
ERROR:f2bmng:Failed to reload following jails due to errors in configuration: plesk-roundcube
Misconfiguration between jail rules and existing services.
Connect to the server via SSH and reinstall Fail2ban with the following steps:
Back up the jail rules:
# cp /etc/fail2ban/jail.local /root/jail.local
Delete Fail2ban via Plesk GUI (Tools & Settings > Updates & Upgrades) or Plesk autoinstaller:
# plesk installer
Rename Fail2ban directory:
# mv /etc/fail2ban /etc/fail2ban_old
Install Fail2ban back via Plesk or autoinstaller.
# mv /root/jail.local /etc/fail2ban/
Try to switch the rule on via Plesk on Tools & Settings > IP Address Banning > Jails screen
If solution from above did not help, use article Unable to activate or remove Fail2ban: error reading information on service fail2ban: No such file or directory