Articles in this section

"Jails" tab in Fail2Ban menu in Plesk fails to open: f2bmng failed: ERROR:__main__:No option 'logpath' in section

Plesk for Linux kb: technical

Symptoms

  • On a Plesk for Linux server, the tab Jails in the menu Tools & Settings > IP Address Banning (Fail2Ban) fails to open:

    f2bmng failed: ERROR:__main__:No option 'logpath' in section: 'jail-name'

Cause

The customized Fail2Ban configuration file /etc/fail2ban/jail.local or /etc/fail2ban/jail.d/local.conf does not have the variable logpath in some of jails.

Resolution

  1. Connect to the server using SSH.

  2. Open the customized Fail2Ban configuration file /etc/fail2ban/jail.local or /etc/fail2ban/jail.d/local.conf for editing.

  3. Edit the custom jails so they have the variable logpath and save the changes, for example:

    [ssh]
    enabled = true
    logpath = /var/log/auth.log
    ...
    ...

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.