Fail2ban cannot to enable jail due to errors in configuration.


2016-11-16 13:26:03 UTC


2017-08-08 13:15:59 UTC


Was this article helpful?

Have more questions?

Submit a request

Fail2ban cannot to enable jail due to errors in configuration.

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux


When trying to switch a rule on in jails, the following error appears:

# plesk bin ip_ban --enable-jails 'plesk-roundcube'
[2014-11-11 13:29:00] ERR [util_exec] proc_close() failed
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


Back up jail file ( jail.local ) and reinstall Fail2ban with the following steps:

  1. Back up the jail rules:

    # cp /etc/fail2ban/jail.local ~/
  2. Delete Fail2ban via Plesk GUI ( Tools & Settings > Updates & Upgrades ) or Plesk autoinstaller:

    # plesk installer
  3. Rename Fail2ban directory:

      # mv /etc/fail2ban fail2ban_old
  4. Install Fail2ban back via Plesk or autoinstaller.

  5. Move jail.local file back:

           # mv ~/jail.local /etc/fail2ban/
  6. 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 #213374169 .

Have more questions? Submit a request
Please sign in to leave a comment.