- Plesk Onyx for Linux
Unable to install Fail2Ban using Plesk installer, the installation got frozen on the following step:
CONFIG_TEXT: (1/2): fail2ban-0.9.2-centos6.15103017.noarch.rpm | 412 kB 00:00
(2/2): plesk-fail2ban-configurator-12.5.30-cos6.build120 | 182 kB 00:00
The following error is found in
Some problems are found during attempt to status service fail2ban - control script doesn't exist or isn't executable(see log file: /var/log/plesk/install/plesk_17.5.3_installation.log)
Trying to upgrade Fail2Ban configuration (bootstrapper-post stage)... Unable to upgrade 'fail2ban' to the latest version, since its configuration is in broken state. Run bootstrapper repair to fix.
Unable to upgrade 'fail2ban' to the latest version, since its configuration is in broken state.
Run bootstrapper repair to fix.
There is fail2ban package already present on a server:
# rpm -qa | grep fail2ban
There are several hung Fail2Ban processes:
# ps aux | grep fail2
root 2573 0.0 0.7 198036 7932 ? S 12:29 0:00 /usr/bin/python /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid -x -b
root 872 0.0 0.3 204192 7128 ? S 0:00 /usr/bin/python /usr/bin/fail2ban-client flushlogs
root 4422 0.0 0.3 204192 6940 ? S 0:00 /usr/bin/python /usr/bin/fail2ban-client flushlogs
Subscriptions in Plesk cannot be synced with the service plan with the following error in:
CONFIG_TEXT: 504 Gateway Time-out
Unable to create a mailbox, it takes a lot of time and then shows error:
Corrupted Fail2ban installation
Connect to the server using SSH.
Create a backup of Fail2ban configuration:
# mkdir fail2ban_backup
# mv /etc/fail2ban/ fail2ban_backup
# mv /var/log/fail2ban.log
Disable any third-party repositories on a server, if any. Set "
enabled=0" using any text editor for third-party repositories:
# grep -r enabled /etc/yum.repos.d/
/etc/yum.repos.d/atomic.repo:enabled = 0
Kill all Fail2ban processes:
# ps auxx | grep fail2ban
root 20177 0.0 0.8 108880 9100 ? S 10:17 0:00 /usr/bin/python /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock
# kill -9 20177
Remove fail2ban package that is already installed on a server using the command line:
For Fail2Ban shipped with Plesk:
# plesk installer remove --components fail2ban
For the custom Fail2Ban version:
# rpm -qa | grep fail2ban
# rpm -e --nodeps fail2ban-0.9.2-centos6.15103017.noarch
Clear yum cache to be sure that installation does not get interrupted the next time:
# rm -rf /var/lib/rpm/__db.*
# rpm --rebuilddb
# yum clean all
# yum makecache
Install Fail2ban in Tools & Settings > Updates & Upgrades.
# plesk installer add --components fail2ban