Plesk

Cannot create Plesk subscription or update hosting settings: f2bmng failed with error UnknownJailException

Symptoms

  1. Unable to migrate data to Plesk or create a domain/subscription.
  2. Domain is migrated without hosting, data is not migrated.
  3. Error in /var/log/fail2ban.log:

    hosting update is failed: f2bmng failed: ERROR:f2bmng:Command ['set', 'plesk-apache-badbot', 'addlogpath', '/var/www/vhosts/system/example.com/logs/error_log'] failed with error UnknownJailException('plesk-apache-badbot',)
    Step failed 'applyCreateSubscription'. hosting update is failed: f2bmng failed: ERROR:f2bmng:Command ['set', 'plesk-apache-badbot', 'addlogpath', '/var/www/vhosts/system/example.com/logs/error_log'] failed with error UnknownJailException('plesk-apache-badbot',)

Cause

Fail2ban rules prevent hosting creation.

Resolution

1. Login to Plesk

2. Find Plesk server IP addresses at Tools & Settings > IP addresses:

3. Add the IP addresses to Tools & Settings > IP Address banning (fail2ban) > Trusted IP Addresses:

Exit mobile version