Note: applicable for RedHat-based operating systems only.
Symptoms
-
ModSecurity ruleset update fails with the error below:
WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 1818 66DF 9DAC A40E 5B42 9B08 FFBD 5D0A 4520 AFA9 TERM environment variable not set. Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again Command '/bin/bash < /tmp/tmpsGmerE/aum-plesk-installer' returned non-zero exit status 1 Unable to download tortix rule set
-
Plesk upgrade fails with the following error:
RepoError: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Cause
epel repository cannot be verified.
Resolution
- Connect to the server via SSH.
- Upgrade ca-certificates package.
# yum –disablerepo=epel -y update ca-certificates
- Update ModSecurity rule set manually:
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateModSecurityRuleSet
If it does not help, follow next steps:
- Connect to the server via SSH.
- Disable epel repository inÂ
/etc/yum.repos.d/epel.repo
by switching from 1 to 0:[BEFORE]
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[AFTER]
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 - Update ModSecurity rule set manually:
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateModSecurityRuleSet