Plesk

Unable to create a subscription or open Jails in Fail2Ban: f2bmng failed: ERROR:f2bmng

Symptoms

Cause

Incorrect installation of Fail2Ban.

Resolution

Perform a clean reinstallation of Fail2ban following these steps:

  1. Connect to the server via SSH

  2. Back up Fail2ban folder:

    # cp -a /etc/fail2ban /root/fail2ban_backup

  3. Uninstall Fail2ban:

    # plesk installer --select-release-current --remove-component fail2ban

  4. Move Fail2ban left-over old installation files:

    # mv /etc/fail2ban /root/fail2ban_old

  5. Install Fail2ban:

    # plesk installer --select-release-current --install-component fail2ban

  6. Restore Fail2ban configuration:

    # mv /root/fail2ban_backup/jail.local /etc/fail2ban/.

  7. Restart Fail2Ban service:

    # systemctl restart fail2ban.service