• 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

Resolved Unable to reinstall modsecurity after upgrade from Onyx to Obsidian

Abernathy

New Pleskian
Server operating system version
CentOS Linux 7.9
Plesk version and microupdate number
18.0.57
In the process of upgrading to Obsidian, I had this conflict ;
Bash:
Exception: Failed to solve dependencies:
plesk-modsecurity-configurator conflicts with mod_security-2.9.2-centos7.19091318.x86_64

I did remove mod_security thinking I would reinstall it after upgrade.
Maybe I should have used the installer to remove the component.
Bash:
Running transaction
  Erasing    : plesk-modsecurity-crs-17.8.11-centos7.18021217.x86_64                                                                          1/2
  Erasing    : mod_security-2.9.2-centos7.19091318.x86_64                                                                                     2/2
warning: /etc/httpd/conf.d/security2.conf saved as /etc/httpd/conf.d/security2.conf.rpmsave
  Verifying  : plesk-modsecurity-crs-17.8.11-centos7.18021217.x86_64                                                                          1/2
  Verifying  : mod_security-2.9.2-centos7.19091318.x86_64                                                                                     2/2

Removed:
  mod_security.x86_64 0:2.9.2-centos7.19091318                                                                                                   

Dependency Removed:
  plesk-modsecurity-crs.x86_64 0:17.8.11-centos7.18021217                                                                                         

Complete!

Upgrade went fine afterwards and I now have Plesk Obsidian v18.0.57

My issue is that I cannot reinstall modsecurity.​

Bash:
plesk installer --select-release-current --install-component modsecurity

Error

Bash:
Failed to install {'release': '2.centos.7+p18.0.57.5+t231218.0957', 'epoch': '1', 'version': '2.9.7', 'arch': 'x86_64', 'name': 'mod_security'}:
Number of retries is exceeded.
InstallError: No package(s) available to install

ERROR: The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Visit https://support.plesk.com/ to search for a solution.
exit status 1

Can someone please help me to reinstall modsecurity ?

 
Found the problem... exclude=mod_security in /etc/yum.conf
I commented out that line and modsecurity install went fine.
 
Last edited by a moderator:
Back
Top