Bobcares

Failed to update the ModSecurity rule set: How resolve?

by | Apr 1, 2023

Let us look at how to remove the error Failed to update the ModSecurity rule set. With the support of our Apache hosting support services at Bobcares we will now learn more about the error.

Error: Failed to update the ModSecurity rule set: Symptoms

Failed to update the ModSecurity rule set

The ModSecurity rule set is an error message that appears when the ModSecurity web application firewall is unable to update its rules. This may be due to an incompatibility between the current version of ModSecurity and the rule set, or due to the rule set being unavailable.

 The ModSecurity rule set is an error that occurs when ModSecurity is unable to download the latest ruleset updates. This can occur due to a variety of reasons, such as a network issue, an issue with the local server, or an issue with the server hosting the update.

Following the unsuccessful ModSecurity upgrade, the Plesk Home page displays the following error:

Error: Failed to update the ModSecurity rule set. Details

The following error may be seen in the Tools & Options > Web Application Firewall (ModSecurity) menu:

Code: [Select]
Error: Failed to update the ModSecurity rule set: modsecurity_ctl failed: gpg: key 4520AFA9: "Atomicorp (Atomicorp Official Signing Key) support@atomicorp.com" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
gpg: Signature made Thu Mar 15 01:24:49 2018 +07 using RSA key ID 4520AFA9
gpg: Good signature from "Atomicorp (Atomicorp Official Signing Key) support@atomicorp.com
gpg: 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.
aum failed with exitcode 3.
stdout:
Checking versions ...
AUM version is current: package asl is not installed[75G[[1;31m[1;32mPASS[0m[0m]
Authorization failed attempting to download an update.
The username or password may be invalid, or your license may be expired.
Please log in to the License Manager at https://www.atomicorp.com/amember/member.php and verify your account.
Further information may be found at: https://www.atomicorp.com/wiki/index.php/ASL_FAQ#HTTP_Error_401:_Authorization_Required.
-------------------------------------------------------------------------------
Errors were encountered:
L CODE SOURCE MESSAGE
- ---- ----------------------------- ------------------------------------------
[1;31m3 303 Core::distributed_update Invalid user credentials
[0m127.0.0.1
127.0.0.1
203.0.113.2
stderr:
Unable to download tortix rule set

Error: Failed to update the ModSecurity rule set: Resolution

To troubleshoot this issue, the user should first check to see if the server can connect to the update server. If it can, then you should check the server logs for any additional errors that may be present. The user should also make sure that the rule set is up to date and that the server is able to download the rule set updates. If all else fails, then the user may need to contact their hosting provider to see if they can provide any additional assistance.

When attempting to login to an Atomicorp account using credentials from the /etc/asl/config file, the following error is displayed:

The user name or password is incorrect

For resolving the ModSecurity rule set error follow the steps given below:

  1. SSH is used to connect to the server.
  2. Manually update the ModSecurity rule set:

# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateModSecurityRuleSet

[Need assistance with similar queries? We are here to help]

Conclusion

To sum up, we have now seen how to remove the error Failed to update the ModSecurity rule set. With the support of our Apache hosting support services at Bobcares, we have now seen how to remove the error easily. We have now gone through the two major troubleshooting steps and the code line necessary to remove the error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF