After running a cPanel update, it reports that maintenance is complete, but it did not exit cleanly, and the error is logged for the script at "scripts/modsec_vendor." Within the update log, you may see the following error description relating to modsec_vendor:
[2022-01-01 00:00:00 +0000] E [/usr/local/cpanel/scripts/modsec_vendor] The “/usr/local/cpanel/scripts/modsec_vendor update --auto” command (process 10000) reported error number 1 when it ended.
The log entries that follow will highlight a more specific issue with the Apache configuration that caused the modsec_vendor update to fail.
The modsec_vendor script runs a routine that makes use of the current Apache configuration. If the current configuration has errors due to missing data or other possible inconsistencies, the server may not be able to update the modsec_vendor information successfully.
Rebuilding the Apache configuration will resolve the issues that cause this error: