• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Update 12.0.18 to 12.5.30 CentOS 7 bail2ban conflict

Username

New Pleskian
Hi, after trying to upgrade plesk, I have error:
Code:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: mirror1.34sp.com
* base: ftp.tudelft.nl
* epel: mirror.serverbeheren.nl
* extras: mirror.amsiohosting.net
* updates: mirror.cj2.nl
perl-JSON-XS-3.01-2.el7.x86_64.rpm                       | 103 kB     00:00
Running Transaction Check
Fatal error during packages installation: Test Transaction Errors:   file /usr/lib/python2.7/site-packages/fail2ban/__init__.py from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /usr/lib/python2.7/site-packages/fail2ban/tests/files/logs/asterisk from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /etc/fail2ban/action.d/badips.py from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /etc/fail2ban/action.d/iptables-allports.conf from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /usr/lib/python2.7/site-packages/fail2ban/server/faildata.pyc from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /usr/lib/python2.7/site-packages/fail2ban/server/faildata.pyo from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /usr/lib/python2.7/site-packages/fail2ban/server/failmanager.py from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /usr/lib/python2.7/site-packages/fail2ban/server/failmanager.pyc from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /usr/lib/python2.7/site-packages/fail2ban/server/failmanager.pyo from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
...
  file /usr/lib/python2.7/site-packages/fail2ban/tests/dummyjail.py from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /usr/lib/python2.7/site-packages/fail2ban/tests/dummyjail.pyc from install of fail2ban-1:0.9.2-centos7.15093018.noarch conflicts with file from package fail2ban-server-0.9.3-1.el7.noarch
  file /usr/lib/python2.7/site-packages/fail2b
ERROR: Failed to run the Yum utility.
The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Please, contact product technical support.

How to resolve this conflict?

http://server:8443/smb/
error:
MySQL query failed: Unknown column 'fp' in 'field list'
 
Thanks,
Code:
# yum remove fail2ban*
# vi /etc/yum.repos.d/epel.repo
add exclude into [epel] section
[epel]
exclude=fail2ban*
run installer
Code:
# /usr/local/psa/admin/sbin/autoinstaller --select-release-latest --upgrade-installed-components
Login into plesk and install fail3ban from GUI
Result: OK

But, in page admin/server-protection/jail-list
error:
Internal error: f2bmng failed: ERROR:f2bmng:No option 'enabled' in section: 'groupoffice'
solution:
edit file
Code:
# vi /etc/fail2ban/jail.local
and add in all empty sections enabled = false like
Code:
[groupoffice]
enabled = false
 
1) copy /etc/fail2ban/jail.local to some other location
2) rpm -q | grep fail2

3) Remove that fail2ban packages.

rpm -e "package name"

4) cd /etc/yum.repos.d/

mv all the repositories except the centos repos to other location.

5) Install microupdate

/usr/local/psa/admin/sbin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base


6) Upgrade Plesk after the above 5 steps :

/usr/local/psa/admin/sbin/autoinstaller
 
Back
Top